Struct nannou_mesh::vertex::WithNormal
source · pub struct WithNormal<V, N = Default> {
pub vertex: V,
pub normal: N,
}
Expand description
A vertex with its normal vector.
Fields§
§vertex: V
§normal: N
Trait Implementations§
source§impl<V: Clone, N: Clone> Clone for WithNormal<V, N>
impl<V: Clone, N: Clone> Clone for WithNormal<V, N>
source§fn clone(&self) -> WithNormal<V, N>
fn clone(&self) -> WithNormal<V, N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<V: Default, N: Default> Default for WithNormal<V, N>
impl<V: Default, N: Default> Default for WithNormal<V, N>
source§fn default() -> WithNormal<V, N>
fn default() -> WithNormal<V, N>
Returns the “default value” for a type. Read more
source§impl<V, N> Deref for WithNormal<V, N>
impl<V, N> Deref for WithNormal<V, N>
source§impl<V, N> DerefMut for WithNormal<V, N>
impl<V, N> DerefMut for WithNormal<V, N>
source§impl<'de, V, N> Deserialize<'de> for WithNormal<V, N>where
V: Deserialize<'de>,
N: Deserialize<'de>,
impl<'de, V, N> Deserialize<'de> for WithNormal<V, N>where
V: Deserialize<'de>,
N: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<V: PartialEq, N: PartialEq> PartialEq for WithNormal<V, N>
impl<V: PartialEq, N: PartialEq> PartialEq for WithNormal<V, N>
source§fn eq(&self, other: &WithNormal<V, N>) -> bool
fn eq(&self, other: &WithNormal<V, N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<M, V, N> PushVertex<WithNormal<V, N>> for WithNormals<M, Vec<N>>where
M: PushVertex<V>,
impl<M, V, N> PushVertex<WithNormal<V, N>> for WithNormals<M, Vec<N>>where
M: PushVertex<V>,
source§fn push_vertex(&mut self, v: WithNormal<V, N>)
fn push_vertex(&mut self, v: WithNormal<V, N>)
Push the given vertex onto the mesh. Read more
source§impl<V, N> Serialize for WithNormal<V, N>
impl<V, N> Serialize for WithNormal<V, N>
source§impl<V, N> Vertex for WithNormal<V, N>
impl<V, N> Vertex for WithNormal<V, N>
source§impl<V, N> Vertex2d for WithNormal<V, N>
impl<V, N> Vertex2d for WithNormal<V, N>
source§impl<V, N> Vertex3d for WithNormal<V, N>
impl<V, N> Vertex3d for WithNormal<V, N>
impl<V: Copy, N: Copy> Copy for WithNormal<V, N>
impl<V, N> StructuralPartialEq for WithNormal<V, N>
Auto Trait Implementations§
impl<V, N> RefUnwindSafe for WithNormal<V, N>where
N: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, N> Send for WithNormal<V, N>
impl<V, N> Sync for WithNormal<V, N>
impl<V, N> Unpin for WithNormal<V, N>
impl<V, N> UnwindSafe for WithNormal<V, N>where
N: 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