pub struct BuiltinInstance {
pub name: String,
pub params: Vec<f64>,
pub kind: BuiltinKind,
pub param_bindings: Vec<(usize, usize)>,
}Expand description
A resolved built-in call site: its name, folded constant params, and kind.
Runtime instances are built from these by RillProgram::new_with.
Fields§
§name: StringRegistered built-in name.
params: Vec<f64>Folded constant params.
kind: BuiltinKindSample vs block.
param_bindings: Vec<(usize, usize)>(arg_position, param_idx) dynamic param drivers.
Trait Implementations§
Source§impl Clone for BuiltinInstance
impl Clone for BuiltinInstance
Source§fn clone(&self) -> BuiltinInstance
fn clone(&self) -> BuiltinInstance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuiltinInstance
impl Debug for BuiltinInstance
Source§impl PartialEq for BuiltinInstance
impl PartialEq for BuiltinInstance
Source§fn eq(&self, other: &BuiltinInstance) -> bool
fn eq(&self, other: &BuiltinInstance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BuiltinInstance
Auto Trait Implementations§
impl Freeze for BuiltinInstance
impl RefUnwindSafe for BuiltinInstance
impl Send for BuiltinInstance
impl Sync for BuiltinInstance
impl Unpin for BuiltinInstance
impl UnsafeUnpin for BuiltinInstance
impl UnwindSafe for BuiltinInstance
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