pub struct ColoredVerts<'a, V> {
pub points: &'a Vec<V>,
pub colors: &'a Vec<V>,
}Fields§
§points: &'a Vec<V>§colors: &'a Vec<V>Trait Implementations§
Source§impl<'a, V, S> WaveFrontCompatible<'a> for ColoredVerts<'a, V>
impl<'a, V, S> WaveFrontCompatible<'a> for ColoredVerts<'a, V>
type Scalar = S
fn pos_iterator(&'a self) -> impl Iterator<Item = [Self::Scalar; 3]>
fn point_color_iterator(&'a self) -> impl Iterator<Item = [Self::Scalar; 3]>
fn uv_iterator(&'a self) -> impl Iterator<Item = [Self::Scalar; 2]>
fn norm_iterator(&'a self) -> impl Iterator<Item = [Self::Scalar; 3]>
fn segment_iterator(&'a self) -> impl Iterator<Item = [usize; 2]>
fn pos_index_iterator( &'a self, ) -> impl Iterator<Item = impl Iterator<Item = usize>>
fn uv_index_iterator( &'a self, ) -> impl Iterator<Item = impl Iterator<Item = usize>>
fn norm_index_iterator( &'a self, ) -> impl Iterator<Item = impl Iterator<Item = usize>>
Auto Trait Implementations§
impl<'a, V> Freeze for ColoredVerts<'a, V>
impl<'a, V> RefUnwindSafe for ColoredVerts<'a, V>where
V: RefUnwindSafe,
impl<'a, V> Send for ColoredVerts<'a, V>where
V: Sync,
impl<'a, V> Sync for ColoredVerts<'a, V>where
V: Sync,
impl<'a, V> Unpin for ColoredVerts<'a, V>
impl<'a, V> UnwindSafe for ColoredVerts<'a, V>where
V: RefUnwindSafe,
Blanket Implementations§
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.