pub struct Eval<'str> { /* private fields */ }Implementations§
Source§impl<'str> Eval<'str>
impl<'str> Eval<'str>
pub fn new(string: &'str str) -> Self
pub fn new_from_source(source: &'str Source<'str>) -> Self
pub fn new_from_file(path: PathBuf) -> Self
pub fn with_table(&mut self, table: SymTable)
pub fn run(&mut self) -> Result<Decimal, String>
pub fn compile_to_file(&mut self, path: &PathBuf) -> Result<(), String>
pub fn build_program(&mut self) -> Result<Program<'_>, String>
Trait Implementations§
Auto Trait Implementations§
impl<'str> Freeze for Eval<'str>
impl<'str> RefUnwindSafe for Eval<'str>
impl<'str> Send for Eval<'str>
impl<'str> Sync for Eval<'str>
impl<'str> Unpin for Eval<'str>
impl<'str> UnwindSafe for Eval<'str>
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