pub struct Context { /* private fields */ }Expand description
Expression context, links variables and their values(currently only floats).
Implementations§
Source§impl Context
impl Context
pub fn new() -> Self
Sourcepub fn init(&mut self)
pub fn init(&mut self)
Initializes Context with some builtin variables, you should call this one before using
it. Of course if you don’t need some constants from f64… well, don’t call it?
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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