pub struct LingCompiler { /* private fields */ }Implementations§
Source§impl LingCompiler
impl LingCompiler
pub fn new(config: CompilerConfig) -> Self
pub fn compile<P: AsRef<Path>>(&self, input: P, output: P) -> LingResult<()>
pub fn compile_and_run<P: AsRef<Path>>(&self, input: P) -> LingResult<()>
Sourcepub fn compile_and_run_jit<P: AsRef<Path>>(&self, input: P) -> LingResult<()>
pub fn compile_and_run_jit<P: AsRef<Path>>(&self, input: P) -> LingResult<()>
Compile and run using the Cranelift JIT backend.
Sourcepub fn compile_and_run_jit_source(
&self,
source: &str,
source_dir: Option<PathBuf>,
) -> LingResult<()>
pub fn compile_and_run_jit_source( &self, source: &str, source_dir: Option<PathBuf>, ) -> LingResult<()>
Compile and run concatenated source (resolving its use imports against
source_dir) on the Cranelift JIT backend. The host launcher pastes its
.ling files together and calls this; duplicate definitions are resolved
in mir::flatten_source.
pub fn dump_mir<P: AsRef<Path>>(&self, input: P) -> LingResult<()>
Auto Trait Implementations§
impl Freeze for LingCompiler
impl RefUnwindSafe for LingCompiler
impl Send for LingCompiler
impl Sync for LingCompiler
impl Unpin for LingCompiler
impl UnsafeUnpin for LingCompiler
impl UnwindSafe for LingCompiler
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more