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>)
Tuple Fields
0: Geometry<'a, V>VertexMesh(Geometry<&'a VertexMesh<V>>)
Tuple Fields
0: Geometry<&'a VertexMesh<V>>IndexedMesh(Geometry<&'a IndexedMesh<V, u32>>)
Tuple Fields
0: Geometry<&'a IndexedMesh<V, u32>>IndexedMeshU16(Geometry<&'a IndexedMesh<V, u16>>)
Tuple Fields
0: Geometry<&'a IndexedMesh<V, u16>>MultiMesh(Geometry<&'a MultiMesh<'a>>)
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: UnwindSafe + RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
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) -> bool
Checks 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) -> SS
Use 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) -> SP
The inclusion map: converts self to the equivalent element of its superset.
