Struct nannou::mesh::MeshPoints
source · pub struct MeshPoints<P> { /* private fields */ }
Expand description
The base mesh type with only a single vertex channel.
Extra channels can be added to the mesh via the WithIndices
, WithColors
, WithTexCoords
and WithNormals
adaptor types.
Trait Implementations§
source§impl<V> ClearVertices for MeshPoints<Vec<V>>
impl<V> ClearVertices for MeshPoints<Vec<V>>
source§fn clear_vertices(&mut self)
fn clear_vertices(&mut self)
Clear all vertices from the mesh.
source§impl<P> Clone for MeshPoints<P>where
P: Clone,
impl<P> Clone for MeshPoints<P>where
P: Clone,
source§fn clone(&self) -> MeshPoints<P>
fn clone(&self) -> MeshPoints<P>
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<P> Debug for MeshPoints<P>where
P: Debug,
impl<P> Debug for MeshPoints<P>where
P: Debug,
source§impl<P> Default for MeshPoints<P>where
P: Default,
impl<P> Default for MeshPoints<P>where
P: Default,
source§fn default() -> MeshPoints<P>
fn default() -> MeshPoints<P>
Returns the “default value” for a type. Read more
source§impl<'a, P> ExtendFromSlice<'a> for MeshPoints<Vec<P>>where
P: 'a + Clone,
impl<'a, P> ExtendFromSlice<'a> for MeshPoints<Vec<P>>where
P: 'a + Clone,
source§fn extend_from_slice(
&mut self,
slice: <MeshPoints<Vec<P>> as ExtendFromSlice<'a>>::Slice
)
fn extend_from_slice( &mut self, slice: <MeshPoints<Vec<P>> as ExtendFromSlice<'a>>::Slice )
Extend the mesh.
source§impl<P, I> GetVertex<I> for MeshPoints<P>
impl<P, I> GetVertex<I> for MeshPoints<P>
source§impl<P> PartialEq for MeshPoints<P>where
P: PartialEq,
impl<P> PartialEq for MeshPoints<P>where
P: PartialEq,
source§fn eq(&self, other: &MeshPoints<P>) -> bool
fn eq(&self, other: &MeshPoints<P>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<P> Points for MeshPoints<P>where
P: Channel,
impl<P> Points for MeshPoints<P>where
P: Channel,
source§impl<V> PushVertex<V> for MeshPoints<Vec<V>>
impl<V> PushVertex<V> for MeshPoints<Vec<V>>
source§fn push_vertex(&mut self, v: V)
fn push_vertex(&mut self, v: V)
Push the given vertex onto the mesh. Read more
impl<P> Copy for MeshPoints<P>where
P: Copy,
impl<P> StructuralPartialEq for MeshPoints<P>
Auto Trait Implementations§
impl<P> RefUnwindSafe for MeshPoints<P>where
P: RefUnwindSafe,
impl<P> Send for MeshPoints<P>where
P: Send,
impl<P> Sync for MeshPoints<P>where
P: Sync,
impl<P> Unpin for MeshPoints<P>where
P: Unpin,
impl<P> UnwindSafe for MeshPoints<P>where
P: 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