pub enum Node {
Text(TextNode),
File(FileNode),
Link(LinkNode),
Group(GroupNode),
}Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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 GenericNodeInfo for Node
impl GenericNodeInfo for Node
fn id(&self) -> &NodeId
fn get_x(&self) -> PixelCoordinate
fn get_y(&self) -> PixelCoordinate
fn get_width(&self) -> PixelDimension
fn get_height(&self) -> PixelDimension
fn color(&self) -> &Option<Color>
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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