pub enum GeometryPrimitives {
Triangles(GeometryTriangles),
Lines(GeometryLines),
Points(GeometryPoints),
}Variants§
Implementations§
source§impl GeometryPrimitives
impl GeometryPrimitives
pub fn triangles(triangles: impl Into<GeometryTriangles>) -> Self
pub fn lines(lines: impl Into<GeometryLines>) -> Self
pub fn points(points: impl Into<GeometryPoints>) -> Self
pub fn as_triangles(&self) -> Result<&GeometryTriangles, MeshError>
pub fn as_lines(&self) -> Result<&GeometryLines, MeshError>
pub fn as_points(&self) -> Result<&GeometryPoints, MeshError>
Trait Implementations§
source§impl Clone for GeometryPrimitives
impl Clone for GeometryPrimitives
source§fn clone(&self) -> GeometryPrimitives
fn clone(&self) -> GeometryPrimitives
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 Debug for GeometryPrimitives
impl Debug for GeometryPrimitives
source§impl<'de> Deserialize<'de> for GeometryPrimitives
impl<'de> Deserialize<'de> for GeometryPrimitives
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<GeometryPrimitives> for GeometryPrimitives
impl PartialEq<GeometryPrimitives> for GeometryPrimitives
source§fn eq(&self, other: &GeometryPrimitives) -> bool
fn eq(&self, other: &GeometryPrimitives) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for GeometryPrimitives
impl Serialize for GeometryPrimitives
impl StructuralPartialEq for GeometryPrimitives
Auto Trait Implementations§
impl RefUnwindSafe for GeometryPrimitives
impl Send for GeometryPrimitives
impl Sync for GeometryPrimitives
impl Unpin for GeometryPrimitives
impl UnwindSafe for GeometryPrimitives
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