Trait xrust::item::SequenceTrait[][src]

pub trait SequenceTrait<'a> {
    fn to_string(&self) -> String;
fn to_xml(&self) -> String;
fn to_json(&self) -> String;
fn to_bool(&self) -> bool;
fn to_int(&self) -> Result<i64, Error>;
fn new_node(&mut self, n: RcNode<NodeDefn>);
fn new_xnode(&mut self, n: Node<'a, 'a>);
fn new_value(&mut self, v: Value);
fn new_jvalue(&mut self, j: JsonValue);
fn add(&mut self, i: &Rc<Item<'a>>); }

Required methods

Return the string value of the Sequence.

Return a XML formatted representation of the Sequence.

Return a JSON formatted representation of the Sequence.

Return the Effective Boolean Value of the Sequence.

Convert the Sequence to an integer. The Sequence must be a singleton value.

Push a Node (tree-based) to the Sequence

Push a roxmltree Node to the Sequence

Push a Value to the Sequence

Push a JsonValue to the Sequence

Push an Item to the Sequence

Implementors

Returns the string value of the Sequence.

Renders the Sequence as XML

Renders the Sequence as JSON

Push a Node on to the Sequence

Push a roxmltree node on to the Sequence

Push a Value on to the Sequence

Push a JsonValue on to the Sequence

Push an Item on to the Sequence. This clones the Item.

Calculate the effective boolean value of the Sequence

Convenience routine for integer value of the Sequence. The Sequence must be a singleton; i.e. be a single item.