Struct nx::node::Node
[−]
[src]
pub struct Node<'a> { /* fields omitted */ }
A node in an NX file.
Methods
impl<'a> Node<'a>
[src]
unsafe fn construct(data: &'a Node, 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> Clone for Node<'a>
[src]
fn clone(&self) -> Node<'a>
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<'a> Copy for Node<'a>
[src]
impl<'a> GenericNode<'a> for Node<'a>
[src]
fn get(&self, name: &str) -> Option<Node<'a>>
Gets the child node of the specified name.
fn dtype(&self) -> Type
Gets the type of this node.
fn string(&self) -> Option<&'a str>
Gets the string value of this node. This will be None
if the node is not a string node.
fn integer(&self) -> Option<i64>
Gets the integer value of this node. This will be None
if the node is not an integer node. Read more
fn float(&self) -> Option<f64>
Gets the float value of this node. This will be None
if the node is not a float node.
fn vector(&self) -> Option<(i32, i32)>
Gets the vector value of this node. This will be None
if the node is not a vector node.
fn audio(&self) -> Option<Audio<'a>>
Gets the audio value of thise node. This will be None
if the node is not an audio node.
impl<'a> PartialEq for Node<'a>
[src]
fn eq(&self, other: &Node) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.