pub struct Node {
pub name: String,
pub values: IndexMap<String, Value>,
pub nodes: Vec<Node>,
}
Fields§
§name: String
§values: IndexMap<String, Value>
§nodes: Vec<Node>
Implementations§
Source§impl Node
impl Node
pub fn new( name: String, values: IndexMap<String, Value>, nodes: Vec<Node>, ) -> Node
pub fn nodes(&self) -> impl Iterator<Item = &Node>
pub fn nodes_mut(&mut self) -> impl Iterator<Item = &mut Node>
pub fn get_node(&self, k: &str) -> Option<&Node>
pub fn get_node_mut(&mut self, k: &str) -> Option<&mut Node>
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