pub struct Machine { /* private fields */ }Expand description
One compiled node and every call site’s state, run over any span of the grid in order. A span continues exactly where the last ended, so blocks write the samples one run would.
Implementations§
Source§impl Machine
impl Machine
pub fn open( renderer: &NodeRenderer, layout: &Layout, rate: u32, origin_secs: f64, ) -> Result<Machine, SampleError>
pub fn width(&self) -> usize
pub fn run_to( &mut self, to: usize, reads: &[Window<'_>], own: &mut Tape, ) -> Result<(), SampleError>
Sourcepub fn solver(&self, site: usize) -> Option<&dyn Solver>
pub fn solver(&self, site: usize) -> Option<&dyn Solver>
Call site site’s solver as it stands now, where that site is one.
pub fn filter(&self, site: usize) -> Option<&FilterSite>
pub fn state(&self) -> MachineState
Sourcepub fn carry(&mut self, held: &MachineState) -> Result<(), SampleError>
pub fn carry(&mut self, held: &MachineState) -> Result<(), SampleError>
Takes held’s state site by site. A solver whose release alone moved keeps its own
parameters and takes only the motion; any other difference refuses.
Auto Trait Implementations§
impl !RefUnwindSafe for Machine
impl !Send for Machine
impl !Sync for Machine
impl !UnwindSafe for Machine
impl Freeze for Machine
impl Unpin for Machine
impl UnsafeUnpin for Machine
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