pub struct WithColor<V, C = Alpha<Rgb<Linear<Srgb>>, f32>> {
pub vertex: V,
pub color: C,
}
Expand description
A vertex with a specified color.
Fields§
§vertex: V
§color: C
Trait Implementations§
source§impl<'de, V, C> Deserialize<'de> for WithColor<V, C>where
V: Deserialize<'de>,
C: Deserialize<'de>,
impl<'de, V, C> Deserialize<'de> for WithColor<V, C>where
V: Deserialize<'de>,
C: Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<WithColor<V, C>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<WithColor<V, C>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<V, C> PartialEq for WithColor<V, C>
impl<V, C> PartialEq for WithColor<V, C>
source§impl<M, V, C> PushVertex<WithColor<V, C>> for WithColors<M, Vec<C>>where
M: PushVertex<V>,
impl<M, V, C> PushVertex<WithColor<V, C>> for WithColors<M, Vec<C>>where
M: PushVertex<V>,
source§fn push_vertex(&mut self, v: WithColor<V, C>)
fn push_vertex(&mut self, v: WithColor<V, C>)
Push the given vertex onto the mesh. Read more
source§impl<V, C> Serialize for WithColor<V, C>
impl<V, C> Serialize for WithColor<V, C>
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<V, C> Copy for WithColor<V, C>
impl<V, C> StructuralPartialEq for WithColor<V, C>
Auto Trait Implementations§
impl<V, C> RefUnwindSafe for WithColor<V, C>where
C: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, C> Send for WithColor<V, C>
impl<V, C> Sync for WithColor<V, C>
impl<V, C> Unpin for WithColor<V, C>
impl<V, C> UnwindSafe for WithColor<V, C>where
C: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
source§fn convert_into(self) -> U
fn convert_into(self) -> U
Convert into T with values clamped to the color defined bounds Read more
source§fn convert_unclamped_into(self) -> U
fn convert_unclamped_into(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
source§fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined range,
otherwise an
OutOfBounds
error is returned which contains the unclamped color. Read more