pub struct Compiler { /* private fields */ }
Expand description
Main compiler interface
Implementations§
Source§impl Compiler
impl Compiler
Sourcepub fn with_optimization(self, optimize: bool) -> Self
pub fn with_optimization(self, optimize: bool) -> Self
Enable code optimization
Sourcepub fn with_runtime(self, runtime: bool) -> Self
pub fn with_runtime(self, runtime: bool) -> Self
Enable runtime for TypeScript semantics
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