pub struct NodeInstance {
Show 13 fields id: NodeId, node: Node, in_use: bool, prog_idx: usize, out_start: usize, out_end: usize, in_start: usize, in_end: usize, at_start: usize, at_end: usize, mod_start: usize, mod_end: usize, in2mod_map: [Option<usize>; 32],
}
Expand description

A NodeInstance describes the input/output/atom ports of a Node and holds other important house keeping information for the NodeConfigurator.

Fields

id: NodeIdnode: Nodein_use: boolprog_idx: usizeout_start: usizeout_end: usizein_start: usizein_end: usizeat_start: usizeat_end: usizemod_start: usizemod_end: usizein2mod_map: [Option<usize>; 32]

A mapping array, to map from input index of the node to the modulator index. Because not every input has an associated modulator. This is used later to send GraphMessage::ModamtUpdate. The input index into this array is the index returned from routines like NodeId::inp_param.

Implementations

Sets the modulator index mapping: idx is the index of the parameter like in NodeId::inp_param_by_idx, and i is the absolute index of the modulator that belongs to this parameter.

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.