pub struct PatchNode {
pub id: String,
pub object_name: String,
pub args: Vec<String>,
pub num_inlets: u32,
pub num_outlets: u32,
pub is_signal: bool,
pub varname: Option<String>,
pub hot_inlets: Vec<bool>,
pub purity: NodePurity,
pub attrs: Vec<(String, String)>,
pub code: Option<String>,
}Expand description
A single node (Max object) in the patch graph.
Fields§
§id: String§object_name: String§args: Vec<String>§num_inlets: u32§num_outlets: u32§is_signal: boolWhether this is a Signal object (name ends with ~).
Signal object fanouts don’t need trigger insertion.
varname: Option<String>flutmax wire name. Output as Max’s varname attribute. None for inlets/outlets and auto-inserted triggers.
hot_inlets: Vec<bool>Whether each inlet is hot. hot_inlets[i] = true means inlet i is hot. Empty means unset (default: inlet 0 is hot, others are cold).
purity: NodePurityPurity classification of the object.
attrs: Vec<(String, String)>Attributes specified via .attr() chain. Vector of key-value pairs.
Added as @key value to newobj text in codegen,
or output as top-level fields in box JSON for UI objects.
code: Option<String>Inline code for codebox. Used by v8.codebox / codebox (gen~).
Output as the code field in .maxpat JSON.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatchNode
impl RefUnwindSafe for PatchNode
impl Send for PatchNode
impl Sync for PatchNode
impl Unpin for PatchNode
impl UnsafeUnpin for PatchNode
impl UnwindSafe for PatchNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more