pub struct Context { /* private fields */ }
Implementations§
Source§impl Context
impl Context
pub fn new() -> Context
pub fn set_save_previous_result(&mut self, value: bool)
pub fn set_time(&mut self, date: Date)
pub fn load_currency(&mut self, live_defs: String) -> Result<(), JsValue>
pub fn eval(&mut self, expr: &Query) -> JsValue
pub fn eval_tokens(&mut self, expr: &Query) -> JsValue
Trait Implementations§
Source§impl FromWasmAbi for Context
impl FromWasmAbi for Context
Source§impl IntoWasmAbi for Context
impl IntoWasmAbi for Context
Source§impl LongRefFromWasmAbi for Context
impl LongRefFromWasmAbi for Context
Source§impl OptionFromWasmAbi for Context
impl OptionFromWasmAbi for Context
Source§impl OptionIntoWasmAbi for Context
impl OptionIntoWasmAbi for Context
Source§impl RefFromWasmAbi for Context
impl RefFromWasmAbi for Context
Source§impl RefMutFromWasmAbi for Context
impl RefMutFromWasmAbi for Context
Source§impl TryFromJsValue for Context
impl TryFromJsValue for Context
Source§impl VectorFromWasmAbi for Context
impl VectorFromWasmAbi for Context
Source§impl VectorIntoWasmAbi for Context
impl VectorIntoWasmAbi for Context
impl SupportsConstructor for Context
impl SupportsInstanceProperty for Context
impl SupportsStaticProperty for Context
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
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.