pub struct ProgramSteps { /* private fields */ }Expand description
A program flattened for the engine: Copy, fixed capacity, no allocation.
Implementations§
Source§impl ProgramSteps
impl ProgramSteps
Sourcepub fn from_model(p: &VoiceProgram) -> (Self, usize)
pub fn from_model(p: &VoiceProgram) -> (Self, usize)
Flatten a model VoiceProgram. Returns the flattened program and the
number of steps that did NOT fit, so a caller can report the truncation
instead of it passing unnoticed.
Trait Implementations§
Source§impl Clone for ProgramSteps
impl Clone for ProgramSteps
Source§fn clone(&self) -> ProgramSteps
fn clone(&self) -> ProgramSteps
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 moreimpl Copy for ProgramSteps
Auto Trait Implementations§
impl Freeze for ProgramSteps
impl RefUnwindSafe for ProgramSteps
impl Send for ProgramSteps
impl Sync for ProgramSteps
impl Unpin for ProgramSteps
impl UnsafeUnpin for ProgramSteps
impl UnwindSafe for ProgramSteps
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