pub struct Clover { /* private fields */ }
Implementations
sourceimpl Clover
impl Clover
pub fn new_with_file_loader(storage: Box<dyn Storage>) -> Clover
pub fn new() -> Clover
pub fn compile_file(&self, filename: &str) -> Result<Program, CompileErrorList>
pub fn save_program(
&self,
filename: &str,
program: &Program
) -> Result<(), CompileErrorList>
pub fn load_program(&self, filename: &str) -> Result<Program, CompileErrorList>
pub fn create_state_by_filename(
&self,
filename: &str
) -> Result<State, CompileErrorList>
pub fn run(&self, program: Program) -> Result<Object, RuntimeError>
Auto Trait Implementations
impl !RefUnwindSafe for Clover
impl !Send for Clover
impl !Sync for Clover
impl Unpin for Clover
impl !UnwindSafe for Clover
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more