Struct gazpatcho::config::NodeTemplate [−][src]
The structure specifying format of a node.
This includes node’s appearance, all input and output pins that are to be connected through patches, and various widgets that can be used to record per-node values.
See the module documentation to see an example of a fully
defined NodeTemplate
inside a config.
Fields
label: String
Label showing on top of each node.
class: String
Class serves as an identificator marking all node instances created from the given template.
display_heading: bool
Whether the label should be shown on the top of the node.
pins: Vec<Pin>
Input and output Pins
serve as contact points for inter-node patches.
widgets: Vec<Widget>
Widgets can be manipulated by users to select or record values.
Auto Trait Implementations
impl RefUnwindSafe for NodeTemplate
impl Send for NodeTemplate
impl Sync for NodeTemplate
impl Unpin for NodeTemplate
impl UnwindSafe for NodeTemplate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,