Enum solstice_2d::MeshVariant [−][src]
pub enum MeshVariant<'a, V> where
V: Vertex, { Data(Geometry<'a, V>), VertexMesh(Geometry<&'a VertexMesh<V>>), IndexedMesh(Geometry<&'a IndexedMesh<V, u32>>), IndexedMeshU16(Geometry<&'a IndexedMesh<V, u16>>), MultiMesh(Geometry<&'a MultiMesh<'a>>), }
Variants
Data(Geometry<'a, V>)VertexMesh(Geometry<&'a VertexMesh<V>>)IndexedMesh(Geometry<&'a IndexedMesh<V, u32>>)IndexedMeshU16(Geometry<&'a IndexedMesh<V, u16>>)Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<'a, V> RefUnwindSafe for MeshVariant<'a, V> where
V: RefUnwindSafe, impl<'a, V> Send for MeshVariant<'a, V> where
V: Send + Sync, impl<'a, V> Sync for MeshVariant<'a, V> where
V: Sync, impl<'a, V> Unpin for MeshVariant<'a, V> where
V: Unpin, impl<'a, V> UnwindSafe for MeshVariant<'a, V> where
V: RefUnwindSafe + UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> boolChecks if self is actually part of its subset T (and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SSUse with care! Same as self.to_subset but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SPThe inclusion map: converts self to the equivalent element of its superset.
pub fn vzip(self) -> V