pub struct Compiler(/* private fields */);Expand description
Convenience struct for the whole compilation phase.
Implementations§
Source§impl Compiler
impl Compiler
Sourcepub fn step(self, token: impl Token) -> Result<Self, CompilerError>
pub fn step(self, token: impl Token) -> Result<Self, CompilerError>
Applies a single token on the underlying Context.
Sourcepub fn compile_all(
self,
tokens: impl IntoIterator<Item = impl Token>,
) -> Result<Vec<f64>, CompilerError>
pub fn compile_all( self, tokens: impl IntoIterator<Item = impl Token>, ) -> Result<Vec<f64>, CompilerError>
Applies every token on the underlying Context and returns the resulting samples as an iterator.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Compiler
impl RefUnwindSafe for Compiler
impl Send for Compiler
impl Sync for Compiler
impl Unpin for Compiler
impl UnwindSafe for Compiler
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