pub struct OperDefTab { /* private fields */ }Expand description
Container for operator definitions indexed by Fixity.
Each entry in the internal array corresponds to one fixity variant (function, prefix, infix, or postfix).
Implementations§
Source§impl OperDefTab
impl OperDefTab
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new, empty OperDefTab with all fixity slots unset.
Each entry in the table corresponds to a Fixity variant
(fun, prefix, infix, or postfix), all initialized to None.
Trait Implementations§
Source§impl Clone for OperDefTab
impl Clone for OperDefTab
Source§fn clone(&self) -> OperDefTab
fn clone(&self) -> OperDefTab
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 OperDefTab
impl Debug for OperDefTab
Source§impl Index<Fixity> for OperDefTab
impl Index<Fixity> for OperDefTab
Auto Trait Implementations§
impl Freeze for OperDefTab
impl RefUnwindSafe for OperDefTab
impl Send for OperDefTab
impl Sync for OperDefTab
impl Unpin for OperDefTab
impl UnwindSafe for OperDefTab
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