pub trait Node:
'static
+ Debug
+ Display
+ NodeClone
+ NodeDefaultHash
+ Send
+ Sync {
// Required method
fn get_name(&self) -> &str;
// Provided methods
fn append<T>(&mut self, _: T)
where Self: Sized,
T: Into<Box<dyn Node>> { ... }
fn assign<T, U>(&mut self, _: T, _: U)
where Self: Sized,
T: Into<String>,
U: Into<Value> { ... }
fn get_attributes(&self) -> Option<&HashMap<String, Value>> { ... }
fn get_attributes_mut(&mut self) -> Option<&mut HashMap<String, Value>> { ... }
fn get_children(&self) -> Option<&Vec<Box<dyn Node>>> { ... }
fn get_children_mut(&mut self) -> Option<&mut Vec<Box<dyn Node>>> { ... }
}
Expand description
Re-exported from svg
for convenience
A node.