Struct nx::node::Node
[−]
[src]
pub struct Node<'a> { /* fields omitted */ }
A node in an NX file.
Methods
impl<'a> Node<'a>
[src]
pub unsafe fn construct(data: &'a Node, file: &'a File) -> Node<'a>
[src]
Creates a Node from the data representing it and the file the data is from.
pub fn is_empty(&self) -> bool
[src]
Gets whether or not the node is empty.
pub fn name(&self) -> &'a str
[src]
Gets the name of this node from the string table.
ⓘImportant traits for Nodes<'a>pub fn iter(&self) -> Nodes<'a>
[src]
Gets an iterator over this node's children.
Trait Implementations
impl<'a> Clone for Node<'a>
[src]
fn clone(&self) -> Node<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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>>
[src]
Gets the child node of the specified name.
fn dtype(&self) -> Type
[src]
Gets the type of this node.
fn string(&self) -> Option<&'a str>
[src]
Gets the string value of this node. This will be None
if the node is not a string node.
fn integer(&self) -> Option<i64>
[src]
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>
[src]
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)>
[src]
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>>
[src]
Gets the audio value of thise node. This will be None
if the node is not an audio node.
fn bitmap(&self) -> Option<Bitmap<'a>>
[src]
Gets the bitmap value of thise node. This will be None
if the node is not a bitmap node.
impl<'a> PartialEq for Node<'a>
[src]
fn eq(&self, other: &Node) -> bool
[src]
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[src]
This method tests for !=
.