pub enum Primitive {
SolidQuad(SolidQuadPrimitive),
GradientQuad(GradientQuadPrimitive),
SolidMesh(SolidMeshPrimitive),
GradientMesh(GradientMeshPrimitive),
Text(TextPrimitive),
Image(ImagePrimitive),
Custom(CustomPrimitive),
}Variants§
SolidQuad(SolidQuadPrimitive)
GradientQuad(GradientQuadPrimitive)
SolidMesh(SolidMeshPrimitive)
GradientMesh(GradientMeshPrimitive)
Text(TextPrimitive)
Image(ImagePrimitive)
Custom(CustomPrimitive)
Trait Implementations§
Source§impl From<CustomPrimitive> for Primitive
Available on crate feature custom-primitive only.
impl From<CustomPrimitive> for Primitive
Available on crate feature
custom-primitive only.Source§fn from(p: CustomPrimitive) -> Self
fn from(p: CustomPrimitive) -> Self
Converts to this type from the input type.
Source§impl From<GradientMeshPrimitive> for Primitive
Available on (crate features mesh or tessellation) and crate feature gradient only.
impl From<GradientMeshPrimitive> for Primitive
Available on (crate features
mesh or tessellation) and crate feature gradient only.Source§fn from(p: GradientMeshPrimitive) -> Self
fn from(p: GradientMeshPrimitive) -> Self
Converts to this type from the input type.
Source§impl From<GradientQuad> for Primitive
Available on crate features quad and gradient only.
impl From<GradientQuad> for Primitive
Available on crate features
quad and gradient only.Source§fn from(p: GradientQuad) -> Self
fn from(p: GradientQuad) -> Self
Converts to this type from the input type.
Source§impl From<GradientQuadPrimitive> for Primitive
Available on crate features quad and gradient only.
impl From<GradientQuadPrimitive> for Primitive
Available on crate features
quad and gradient only.Source§fn from(p: GradientQuadPrimitive) -> Self
fn from(p: GradientQuadPrimitive) -> Self
Converts to this type from the input type.
Source§impl From<ImagePrimitive> for Primitive
Available on crate feature image only.
impl From<ImagePrimitive> for Primitive
Available on crate feature
image only.Source§fn from(p: ImagePrimitive) -> Self
fn from(p: ImagePrimitive) -> Self
Converts to this type from the input type.
Source§impl From<MeshPrimitive> for Primitive
Available on crate features mesh or tessellation only.
impl From<MeshPrimitive> for Primitive
Available on crate features
mesh or tessellation only.Source§fn from(p: MeshPrimitive) -> Self
fn from(p: MeshPrimitive) -> Self
Converts to this type from the input type.
Source§impl From<QuadPrimitive> for Primitive
Available on crate feature quad only.
impl From<QuadPrimitive> for Primitive
Available on crate feature
quad only.Source§fn from(p: QuadPrimitive) -> Self
fn from(p: QuadPrimitive) -> Self
Converts to this type from the input type.
Source§impl From<SolidMeshPrimitive> for Primitive
Available on crate features mesh or tessellation only.
impl From<SolidMeshPrimitive> for Primitive
Available on crate features
mesh or tessellation only.Source§fn from(p: SolidMeshPrimitive) -> Self
fn from(p: SolidMeshPrimitive) -> Self
Converts to this type from the input type.
Source§impl From<SolidQuadPrimitive> for Primitive
Available on crate feature quad only.
impl From<SolidQuadPrimitive> for Primitive
Available on crate feature
quad only.Source§fn from(p: SolidQuadPrimitive) -> Self
fn from(p: SolidQuadPrimitive) -> Self
Converts to this type from the input type.
Source§impl From<TextPrimitive> for Primitive
Available on crate feature text only.
impl From<TextPrimitive> for Primitive
Available on crate feature
text only.Source§fn from(p: TextPrimitive) -> Self
fn from(p: TextPrimitive) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Primitive
Auto Trait Implementations§
impl Freeze for Primitive
impl !RefUnwindSafe for Primitive
impl !Send for Primitive
impl !Sync for Primitive
impl Unpin for Primitive
impl !UnwindSafe for Primitive
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