Struct nx::Node [-]  [+] [src]

pub struct Node<'a> {
    // some fields omitted
}

A node in an NX file.

Methods

impl<'a> Node<'a>

unsafe fn construct(data: &'a Data, file: &'a File) -> Node<'a>

Creates a Node from the data representing it and the file the data is from.

fn is_empty(&self) -> bool

Gets whether or not the node is empty.

fn name(&self) -> &'a str

Gets the name of this node from the string table.

fn iter(&self) -> Nodes<'a>

Gets an iterator over this node's children.

Trait Implementations

impl<'a> GenericNode<'a> for Node<'a>

fn get(&self, name: &str) -> Option<Node<'a>>

fn dtype(&self) -> Type

fn string(&self) -> Option<&'a str>

fn integer(&self) -> Option<i64>

fn float(&self) -> Option<f64>

fn vector(&self) -> Option<(i32, i32)>

impl<'a> PartialEq for Node<'a>

fn eq(&self, other: &Node) -> bool

fn ne(&self, other: &Rhs) -> bool

impl<'a> Eq for Node<'a>

fn assert_receiver_is_total_eq(&self)

Derived Implementations

impl<'a> Copy for Node<'a>