pub struct ScalaBackend { /* private fields */ }Expand description
The Scala code generation backend.
Implementations§
Source§impl ScalaBackend
impl ScalaBackend
Sourcepub fn new(package: Option<impl Into<String>>) -> Self
pub fn new(package: Option<impl Into<String>>) -> Self
Create a new backend for the given package.
Sourcepub fn compile_decl(&mut self, decl: &LcnfFunDecl)
pub fn compile_decl(&mut self, decl: &LcnfFunDecl)
Compile a single LCNF function declaration and add it to the module.
Sourcepub fn emit_module(&self) -> String
pub fn emit_module(&self) -> String
Emit the complete Scala module source.
Auto Trait Implementations§
impl Freeze for ScalaBackend
impl RefUnwindSafe for ScalaBackend
impl Send for ScalaBackend
impl Sync for ScalaBackend
impl Unpin for ScalaBackend
impl UnsafeUnpin for ScalaBackend
impl UnwindSafe for ScalaBackend
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