Struct treexml::Element [] [src]

pub struct Element {
    pub prefix: Option<String>,
    pub name: String,
    pub attributes: HashMap<StringString>,
    pub children: Vec<Element>,
    pub contents: Option<String>,
}

An XML element

Fields

prefix: Option<String> name: String attributes: HashMap<StringString> children: Vec<Element> contents: Option<String>

Methods

impl Element
[src]

fn new<S>(name: S) -> Element where S: Into<String>

Trait Implementations

impl Eq for Element
[src]

impl PartialEq for Element
[src]

fn eq(&self, __arg_0: &Element) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Element) -> bool

This method tests for !=.

impl Clone for Element
[src]

fn clone(&self) -> Element

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Element
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Default for Element
[src]

fn default() -> Self

Returns the "default value" for a type. Read more