pub struct Context<T, U> { /* private fields */ }
Expand description
Struct for interacting with variable store and function store.
Implementations§
Trait Implementations§
Source§impl<'a, T, U> GetFunction<'a> for Context<T, U>where
U: GetFunction<'a>,
impl<'a, T, U> GetFunction<'a> for Context<T, U>where
U: GetFunction<'a>,
Source§type Iter = <U as GetFunction<'a>>::Iter
type Iter = <U as GetFunction<'a>>::Iter
Type of iterator for iterating over function names present in function store.
Source§fn function_parser<'b>(
&'b self,
formula_name: &str,
) -> Option<(Box<Parser<'b>>, ArgumentBounds)>
fn function_parser<'b>( &'b self, formula_name: &str, ) -> Option<(Box<Parser<'b>>, ArgumentBounds)>
Returns a function parser and
ArgumentBounds
for function name.Source§impl<T: GetVariable, U> GetVariable for Context<T, U>
impl<T: GetVariable, U> GetVariable for Context<T, U>
Source§impl<T: PopVariable, U> PopVariable for Context<T, U>
impl<T: PopVariable, U> PopVariable for Context<T, U>
Source§impl<T, U: RegisterParser> RegisterParser for Context<T, U>
impl<T, U: RegisterParser> RegisterParser for Context<T, U>
Source§impl<T: SetVariable, U> SetVariable for Context<T, U>
impl<T: SetVariable, U> SetVariable for Context<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for Context<T, U>
impl<T, U> RefUnwindSafe for Context<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for Context<T, U>
impl<T, U> Sync for Context<T, U>
impl<T, U> Unpin for Context<T, U>
impl<T, U> UnwindSafe for Context<T, U>where
T: UnwindSafe,
U: UnwindSafe,
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