pub struct Compiler { /* private fields */ }Expand description
The compiler used by the Koto language
Implementations§
Source§impl Compiler
impl Compiler
Sourcepub fn compile(
script: &str,
script_path: Option<KString>,
settings: CompilerSettings,
) -> Result<Chunk, CompilerError>
pub fn compile( script: &str, script_path: Option<KString>, settings: CompilerSettings, ) -> Result<Chunk, CompilerError>
Compiles a script using the provided settings, returning a compiled Chunk
Sourcepub fn compile_ast(
ast: Ast,
script_path: Option<KString>,
settings: CompilerSettings,
) -> Result<Chunk, CompilerError>
pub fn compile_ast( ast: Ast, script_path: Option<KString>, settings: CompilerSettings, ) -> Result<Chunk, CompilerError>
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