pub struct RustCodegen { /* private fields */ }Expand description
Rust code generator (placeholder).
Implementations§
Source§impl RustCodegen
impl RustCodegen
Sourcepub fn formula_to_type(&self, formula: &Formula) -> String
pub fn formula_to_type(&self, formula: &Formula) -> String
Generate a Rust type from a linear logic formula.
Sourcepub fn term_to_code(&mut self, term: &Term) -> String
pub fn term_to_code(&mut self, term: &Term) -> String
Generate Rust code from an extracted term.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RustCodegen
impl RefUnwindSafe for RustCodegen
impl Send for RustCodegen
impl Sync for RustCodegen
impl Unpin for RustCodegen
impl UnwindSafe for RustCodegen
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