pub struct NodeInfo {
    node_id: NodeId,
    inputs: Vec<&'static str>,
    atoms: Vec<&'static str>,
    outputs: Vec<&'static str>,
    input_help: Vec<&'static str>,
    output_help: Vec<&'static str>,
    node_help: &'static str,
    node_desc: &'static str,
    node_name: &'static str,
    norm_v: Rc<dyn Fn(usize, f32) -> f32>,
    denorm_v: Rc<dyn Fn(usize, f32) -> f32>,
}
Expand description

Holds information about the node type that was allocated. It stores the names of inputs, output and atoms for uniform access.

The crate::NodeConfigurator allocates and holds instances of this type for access by NodeId. See also crate::NodeConfigurator::node_by_id and crate::Matrix::info_for.

Fields

node_id: NodeIdinputs: Vec<&'static str>atoms: Vec<&'static str>outputs: Vec<&'static str>input_help: Vec<&'static str>output_help: Vec<&'static str>node_help: &'static strnode_desc: &'static strnode_name: &'static strnorm_v: Rc<dyn Fn(usize, f32) -> f32>denorm_v: Rc<dyn Fn(usize, f32) -> f32>

Implementations

Allocates a new NodeInfo from a NodeId. Usually you access NodeInfo in the UI thread via crate::NodeConfigurator::node_by_id or crate::Matrix::info_for.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.