Struct nannou::mesh::WithNormals [−][src]
pub struct WithNormals<M, N> { /* fields omitted */ }
A Mesh
type with an added channel containing vertex normals.
Trait Implementations
impl<M, N> ClearIndices for WithNormals<M, N> where
M: ClearIndices,
[src]
M: ClearIndices,
fn clear_indices(&mut self)
[src]
impl<M, N> ClearVertices for WithNormals<M, Vec<N>> where
M: ClearVertices,
[src]
M: ClearVertices,
fn clear_vertices(&mut self)
[src]
impl<M: Clone, N: Clone> Clone for WithNormals<M, N>
[src]
fn clone(&self) -> WithNormals<M, N>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<M, N> Colors for WithNormals<M, N> where
M: Colors,
[src]
M: Colors,
type Color = M::Color
The color type stored within the channel.
type Colors = M::Colors
The channel type containing colors.
fn colors(&self) -> &Self::Colors
[src]
impl<M: Copy, N: Copy> Copy for WithNormals<M, N>
[src]
impl<M: Debug, N: Debug> Debug for WithNormals<M, N>
[src]
impl<M, N> Default for WithNormals<M, N> where
M: Default,
N: Default,
[src]
M: Default,
N: Default,
impl<M, N> Deref for WithNormals<M, N>
[src]
impl<M, N> DerefMut for WithNormals<M, N>
[src]
impl<'a, M, N> ExtendFromSlice<'a> for WithNormals<M, Vec<N>> where
M: ExtendFromSlice<'a>,
N: 'a + Clone,
[src]
M: ExtendFromSlice<'a>,
N: 'a + Clone,
type Slice = (&'a [N], M::Slice)
The slice type expected via the mesh. Read more
fn extend_from_slice(&mut self, slice: Self::Slice)
[src]
impl<M, N, I> GetVertex<I> for WithNormals<M, N> where
M: GetVertex<I>,
N: Channel,
N::Element: Clone,
I: Copy + TryInto<usize>,
[src]
M: GetVertex<I>,
N: Channel,
N::Element: Clone,
I: Copy + TryInto<usize>,
type Vertex = WithNormal<M::Vertex, N::Element>
The vertex type representing all channels of data within the mesh at a single index.
fn get_vertex(&self, index: I) -> Option<Self::Vertex>
[src]
impl<M, N> Indices for WithNormals<M, N> where
M: Indices,
[src]
M: Indices,
type Index = M::Index
The type used to index into the vertex buffer.
type Indices = M::Indices
The channel type containing indices.
fn indices(&self) -> &Self::Indices
[src]
impl<M, N> Normals for WithNormals<M, N> where
M: Points,
N: Channel,
[src]
M: Points,
N: Channel,
type Normal = N::Element
The vector type used to represent the normal.
type Normals = N
The channel type containing vertex normals.
fn normals(&self) -> &Self::Normals
[src]
impl<M: PartialEq, N: PartialEq> PartialEq<WithNormals<M, N>> for WithNormals<M, N>
[src]
fn eq(&self, other: &WithNormals<M, N>) -> bool
[src]
fn ne(&self, other: &WithNormals<M, N>) -> bool
[src]
impl<M, N> Points for WithNormals<M, N> where
M: Points,
[src]
M: Points,
type Point = M::Point
The vertex type used to represent the location of a vertex.
type Points = M::Points
The channel type containing points.
fn points(&self) -> &Self::Points
[src]
impl<M, N> PushIndex for WithNormals<M, N> where
M: PushIndex,
[src]
M: PushIndex,
type Index = M::Index
The inner index type.
fn push_index(&mut self, index: M::Index)
[src]
fn extend_indices<I>(&mut self, indices: I) where
I: IntoIterator<Item = M::Index>,
[src]
I: IntoIterator<Item = M::Index>,
impl<M, V, N> PushVertex<WithNormal<V, N>> for WithNormals<M, Vec<N>> where
M: PushVertex<V>,
[src]
M: PushVertex<V>,
fn push_vertex(&mut self, v: WithNormal<V, N>)
[src]
impl<M, N> StructuralPartialEq for WithNormals<M, N>
[src]
impl<M, N> TexCoords for WithNormals<M, N> where
M: TexCoords,
[src]
M: TexCoords,
Auto Trait Implementations
impl<M, N> RefUnwindSafe for WithNormals<M, N> where
M: RefUnwindSafe,
N: RefUnwindSafe,
M: RefUnwindSafe,
N: RefUnwindSafe,
impl<M, N> Send for WithNormals<M, N> where
M: Send,
N: Send,
M: Send,
N: Send,
impl<M, N> Sync for WithNormals<M, N> where
M: Sync,
N: Sync,
M: Sync,
N: Sync,
impl<M, N> Unpin for WithNormals<M, N> where
M: Unpin,
N: Unpin,
M: Unpin,
N: Unpin,
impl<M, N> UnwindSafe for WithNormals<M, N> where
M: UnwindSafe,
N: UnwindSafe,
M: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
[src]
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
pub fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
pub fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Clear for T where
T: ClearIndices + ClearVertices,
[src]
T: ClearIndices + ClearVertices,
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
pub fn convert_into(self) -> U
[src]
pub fn convert_unclamped_into(self) -> U
[src]
pub fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> Downcast<T> for T
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> SetParameter for T
pub fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> Style for T where
T: Any + Debug + PartialEq<T>,
[src]
T: Any + Debug + PartialEq<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Upcast<T> for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,