Struct dummy_xml::node::Node
[−]
[src]
pub struct Node<'a> { /* fields omitted */ }
Methods
impl<'a> Node<'a>
[src]
pub fn new<S: Into<String>>(name: S) -> Box<Self>
[src]
pub fn new_by_type(node_type: NodeType) -> Box<Self>
[src]
pub fn name(&self) -> &str
[src]
pub fn set_name<S: Into<String>>(&mut self, name: S) -> &mut Self
[src]
pub fn value(&self) -> &str
[src]
pub fn set_value<S: Into<String>>(&mut self, value: S) -> &mut Self
[src]
pub fn node_type(&self) -> &NodeType
[src]
pub fn set_node_type(&mut self, node_type: NodeType) -> &mut Self
[src]
pub fn next_sibling(&self) -> Option<&Self>
[src]
pub fn next_sibling_mut(&mut self) -> Option<&mut Self>
[src]
pub fn previous_sibling(&self) -> Option<&Self>
[src]
pub fn previous_sibling_mut(&mut self) -> Option<&mut Self>
[src]
pub fn parent(&self) -> Option<&Self>
[src]
pub fn parent_mut(&mut self) -> Option<&mut Self>
[src]
pub fn first_child(&self) -> Option<&Self>
[src]
pub fn first_child_mut(&mut self) -> Option<&mut Self>
[src]
pub fn last_child(&self) -> Option<&Self>
[src]
pub fn last_child_mut(&mut self) -> Option<&mut Self>
[src]
pub fn first_attribute(&self) -> Option<&Attribute>
[src]
pub fn first_attribute_mut(&mut self) -> Option<&mut Attribute>
[src]
pub fn last_attribute(&self) -> Option<&Attribute>
[src]
pub fn last_attribute_mut(&mut self) -> Option<&mut Attribute>
[src]
pub fn append_child<S: Into<String>>(&mut self, name: S) -> &mut Self
[src]
pub fn prepend_child<S: Into<String>>(&mut self, name: S) -> &mut Self
[src]
pub fn append_child_by_type(&mut self, node_type: NodeType) -> &mut Self
[src]
pub fn prepend_child_by_type(&mut self, node_type: NodeType) -> &mut Self
[src]
pub fn insert_child_after<S: Into<String>>(
&mut self,
name: S,
child: &mut Self
) -> &mut Self
[src]
&mut self,
name: S,
child: &mut Self
) -> &mut Self
pub fn insert_child_before<S: Into<String>>(
&mut self,
name: S,
child: &mut Self
) -> &mut Self
[src]
&mut self,
name: S,
child: &mut Self
) -> &mut Self
pub fn append_attribute<S: Into<String>>(
&mut self,
name: S,
value: S
) -> &mut Attribute
[src]
&mut self,
name: S,
value: S
) -> &mut Attribute
pub fn prepend_attribute<S: Into<String>>(
&mut self,
name: S,
value: S
) -> &mut Attribute
[src]
&mut self,
name: S,
value: S
) -> &mut Attribute