#[non_exhaustive]pub enum FixityTarget {
Operator(Operator),
Backtick(Identifier),
}Expand description
Operator or backtick-quoted name in a fixity declaration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Operator(Operator)
Symbolic operator such as === or >=>.
Backtick(Identifier)
Backtick-quoted identifier such as `Pair`.
Trait Implementations§
Source§impl Clone for FixityTarget
impl Clone for FixityTarget
Source§fn clone(&self) -> FixityTarget
fn clone(&self) -> FixityTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FixityTarget
impl Debug for FixityTarget
impl Eq for FixityTarget
Source§impl PartialEq for FixityTarget
impl PartialEq for FixityTarget
Source§fn eq(&self, other: &FixityTarget) -> bool
fn eq(&self, other: &FixityTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FixityTarget
Auto Trait Implementations§
impl Freeze for FixityTarget
impl RefUnwindSafe for FixityTarget
impl Send for FixityTarget
impl Sync for FixityTarget
impl Unpin for FixityTarget
impl UnsafeUnpin for FixityTarget
impl UnwindSafe for FixityTarget
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