pub struct OperatorTable { /* private fields */ }Expand description
A registry of notation entries indexed by symbol.
Implementations§
Source§impl OperatorTable
impl OperatorTable
Sourcepub fn register(&mut self, entry: NotationEntry)
pub fn register(&mut self, entry: NotationEntry)
Register a notation entry.
Sourcepub fn lookup(&self, symbol: &str) -> Vec<&NotationEntry>
pub fn lookup(&self, symbol: &str) -> Vec<&NotationEntry>
Look up entries for a given symbol.
Sourcepub fn infix_entries(&self) -> Vec<&NotationEntry>
pub fn infix_entries(&self) -> Vec<&NotationEntry>
Infix entries.
Trait Implementations§
Source§impl Clone for OperatorTable
impl Clone for OperatorTable
Source§fn clone(&self) -> OperatorTable
fn clone(&self) -> OperatorTable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperatorTable
impl Debug for OperatorTable
Source§impl Default for OperatorTable
impl Default for OperatorTable
Source§fn default() -> OperatorTable
fn default() -> OperatorTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OperatorTable
impl RefUnwindSafe for OperatorTable
impl Send for OperatorTable
impl Sync for OperatorTable
impl Unpin for OperatorTable
impl UnsafeUnpin for OperatorTable
impl UnwindSafe for OperatorTable
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