pub enum PrimitiveKind {
Box,
Sphere,
Cylinder,
Cone,
Capsule,
Torus,
Plane,
Rect,
Circle,
}Expand description
Available generated shapes. 2D shapes lie on the XY plane facing +Z.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PrimitiveKind
impl Clone for PrimitiveKind
Source§fn clone(&self) -> PrimitiveKind
fn clone(&self) -> PrimitiveKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PrimitiveKind
Source§impl Debug for PrimitiveKind
impl Debug for PrimitiveKind
Source§impl<'de> Deserialize<'de> for PrimitiveKind
impl<'de> Deserialize<'de> for PrimitiveKind
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 for PrimitiveKind
impl PartialEq for PrimitiveKind
Source§fn eq(&self, other: &PrimitiveKind) -> bool
fn eq(&self, other: &PrimitiveKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PrimitiveKind
impl Serialize for PrimitiveKind
impl StructuralPartialEq for PrimitiveKind
Auto Trait Implementations§
impl Freeze for PrimitiveKind
impl RefUnwindSafe for PrimitiveKind
impl Send for PrimitiveKind
impl Sync for PrimitiveKind
impl Unpin for PrimitiveKind
impl UnsafeUnpin for PrimitiveKind
impl UnwindSafe for PrimitiveKind
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