pub struct Node { /* private fields */ }
Expand description
Node struct represents a pair of label (String) and content (rsjson::NodeContent) implements a getter for both label and content
Implementations§
Source§impl Node
impl Node
pub fn new<T: ToString>(label: T, content: NodeContent) -> Node
pub fn getLabel(&self) -> String
pub fn getContent(&self) -> NodeContent
Trait Implementations§
impl StructuralPartialEq for Node
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