pub enum MarkKind {
Dot {
radius: f32,
},
Cross {
size: f32,
},
Icon {
name: String,
size: f32,
},
}Expand description
What a Mark draws.
A package builds these, so a variant keeps its fields for as long as
the contract’s minor version holds: a new option comes as a new
variant, or as a new struct that derives Default.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MarkKind
impl<'de> Deserialize<'de> for MarkKind
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
impl StructuralPartialEq for MarkKind
Auto Trait Implementations§
impl Forget for MarkKind
impl Freeze for MarkKind
impl Move for MarkKind
impl RefUnwindSafe for MarkKind
impl Send for MarkKind
impl Sync for MarkKind
impl Unpin for MarkKind
impl UnsafeUnpin for MarkKind
impl UnwindSafe for MarkKind
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