pub enum ShapePrimitiveType {
Primitive(PrimitiveShape),
NestedPrimitive(BTreeMap<String, PrimitiveShape>),
}Expand description
Arrays may contain either a primitive or an object whose values are primitives
Variants§
Primitive(PrimitiveShape)
Primitive type
NestedPrimitive(BTreeMap<String, PrimitiveShape>)
Nested shape that can only contain primitives
Trait Implementations§
Source§impl Clone for ShapePrimitiveType
impl Clone for ShapePrimitiveType
Source§fn clone(&self) -> ShapePrimitiveType
fn clone(&self) -> ShapePrimitiveType
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 ShapePrimitiveType
impl Debug for ShapePrimitiveType
Source§impl<'de> Deserialize<'de> for ShapePrimitiveType
impl<'de> Deserialize<'de> for ShapePrimitiveType
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 ShapePrimitiveType
impl PartialEq for ShapePrimitiveType
Source§impl Serialize for ShapePrimitiveType
impl Serialize for ShapePrimitiveType
impl StructuralPartialEq for ShapePrimitiveType
Auto Trait Implementations§
impl Freeze for ShapePrimitiveType
impl RefUnwindSafe for ShapePrimitiveType
impl Send for ShapePrimitiveType
impl Sync for ShapePrimitiveType
impl Unpin for ShapePrimitiveType
impl UnwindSafe for ShapePrimitiveType
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