pub struct ObjectDef {
pub name: String,
pub module: Module,
pub category: String,
pub digest: String,
pub inlets: InletSpec,
pub outlets: OutletSpec,
pub args: Vec<ArgDef>,
}Expand description
Object definition
Fields§
§name: StringObject name (e.g., “cycle~”, “pack”, “trigger”)
module: ModuleModule (max, msp, etc.)
category: StringCategory (e.g., “MSP Synthesis”, “Lists”)
digest: StringShort description
inlets: InletSpecInlet definitions
outlets: OutletSpecOutlet definitions
args: Vec<ArgDef>Argument definitions
Implementations§
Source§impl ObjectDef
impl ObjectDef
Sourcepub fn has_variable_inlets(&self) -> bool
pub fn has_variable_inlets(&self) -> bool
Whether this ObjectDef has variable inlets
Sourcepub fn has_variable_outlets(&self) -> bool
pub fn has_variable_outlets(&self) -> bool
Whether this ObjectDef has variable outlets
Sourcepub fn default_inlet_count(&self) -> usize
pub fn default_inlet_count(&self) -> usize
Returns the inlet count in the default configuration
Sourcepub fn default_outlet_count(&self) -> usize
pub fn default_outlet_count(&self) -> usize
Returns the outlet count in the default configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ObjectDef
impl RefUnwindSafe for ObjectDef
impl Send for ObjectDef
impl Sync for ObjectDef
impl Unpin for ObjectDef
impl UnsafeUnpin for ObjectDef
impl UnwindSafe for ObjectDef
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