pub enum NodeType {
RootNode = -1,
RoundedSegment = 0,
Segment = 1,
Circle = 2,
Triangle = 3,
FilledCircle = 4,
Ellipse = 5,
Trapezoid = 6,
Polygon = 7,
}
Variants§
RootNode = -1
Should only be one RootNode per Stickfigure
, and it should be the first node.
RoundedSegment = 0
Segment = 1
Circle = 2
Triangle = 3
FilledCircle = 4
Ellipse = 5
Trapezoid = 6
Polygon = 7
Implementations§
Source§impl NodeType
impl NodeType
pub fn from_integer(int: i8) -> Option<Self>
pub fn to_integer(&self) -> i8
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeType
impl<'de> Deserialize<'de> for NodeType
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
Auto Trait Implementations§
impl Freeze for NodeType
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnwindSafe for NodeType
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