Trait nx::node::GenericNode [] [src]

pub trait GenericNode<'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)>;
    fn audio(&self) -> Option<Audio<'a>>;
}

The basic functionality for all nodes.

Required Methods

Gets the child node of the specified name.

Gets the type of this node.

Gets the string value of this node. This will be None if the node is not a string node.

Gets the integer value of this node. This will be None if the node is not an integer node.

Gets the float value of this node. This will be None if the node is not a float node.

Gets the vector value of this node. This will be None if the node is not a vector node.

Gets the audio value of thise node. This will be None if the node is not an audio node.

Implementors