Trait rdom::node::NodeBehavior[][src]

pub trait NodeBehavior {
    fn first_child(&self) -> Option<AnyNodeArc>;
fn last_child(&self) -> Option<AnyNodeArc>;
fn append_child(&self, other: AnyNodeArc);
fn child_nodes(&self) -> Arc<NodeList>;
fn clone_node(&self) -> AnyNodeArc;
fn get_node_type(&self) -> isize; }

Trait for main functions connected to node behaviour

Required methods

fn first_child(&self) -> Option<AnyNodeArc>[src]

Returns first child

fn last_child(&self) -> Option<AnyNodeArc>[src]

Returns last child

fn append_child(&self, other: AnyNodeArc)[src]

Adds child to child list

fn child_nodes(&self) -> Arc<NodeList>[src]

Gets live list of all child nodes

fn clone_node(&self) -> AnyNodeArc[src]

Clones node

fn get_node_type(&self) -> isize[src]

Loading content...

Implementors

impl NodeBehavior for ConcreteNodeArc<ElementNodeStorage>[src]

impl NodeBehavior for ConcreteNodeArc<AttributeNodeStorage>[src]

impl NodeBehavior for ConcreteNodeArc<CDataSectionNodeStorage>[src]

impl NodeBehavior for ConcreteNodeArc<CommentNodeStorage>[src]

impl NodeBehavior for ConcreteNodeArc<DocumentFragmentNodeStorage>[src]

impl NodeBehavior for ConcreteNodeArc<DocumentNodeStorage>[src]

impl NodeBehavior for ConcreteNodeArc<DocumentTypeNodeStorage>[src]

impl NodeBehavior for ConcreteNodeArc<ProcessingInstructionNodeStorage>[src]

impl NodeBehavior for ConcreteNodeArc<TextNodeStorage>[src]

impl NodeBehavior for AnyNodeArc[src]

Loading content...