Struct kalk::parser::Context [−][src]
pub struct Context { /* fields omitted */ }
Expand description
Struct containing the current state of the parser. It stores user-defined functions and variables.
Implementations
impl Context
[src]
impl Context
[src]pub fn new() -> Self
[src]
pub fn set_angle_unit(self, unit: &str) -> Self
[src]
pub fn set_timeout(self, timeout: Option<u32>) -> Self
[src]
pub fn set_timeout(self, timeout: Option<u32>) -> Self
[src]Set the timeout in milliseconds. The calculation will stop after this amount of time has passed.
Trait Implementations
impl FromWasmAbi for Context
[src]
impl FromWasmAbi for Context
[src]impl IntoWasmAbi for Context
[src]
impl IntoWasmAbi for Context
[src]impl OptionFromWasmAbi for Context
[src]
impl OptionFromWasmAbi for Context
[src]impl OptionIntoWasmAbi for Context
[src]
impl OptionIntoWasmAbi for Context
[src]impl RefFromWasmAbi for Context
[src]
impl RefFromWasmAbi for Context
[src]type Anchor = Ref<'static, Context>
type Anchor = Ref<'static, Context>
The type that holds the reference to Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read more
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
[src]
unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
[src]Recover a Self::Anchor
from Self::Abi
. Read more
impl RefMutFromWasmAbi for Context
[src]
impl RefMutFromWasmAbi for Context
[src]Auto Trait Implementations
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> CheckedAs for T
[src]
impl<T> CheckedAs for T
[src]pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]Casts the value.
impl<T> OverflowingAs for T
[src]
impl<T> OverflowingAs for T
[src]pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]Casts the value.
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src]
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src]type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
pub fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
[src]
pub fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
[src]Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more
impl<T> SaturatingAs for T
[src]
impl<T> SaturatingAs for T
[src]pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
[src]
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
[src]Casts the value.
impl<T> UnwrappedAs for T
[src]
impl<T> UnwrappedAs for T
[src]pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
[src]
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
[src]Casts the value.
impl<T> WrappingAs for T
[src]
impl<T> WrappingAs for T
[src]pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
[src]
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
[src]Casts the value.