Enum gluon_base::types::Prec
source · pub enum Prec {
Top,
Function,
Constructor,
}
Variants§
Top
The type exists in the top context, no parentheses needed.
Function
The type exists in a function argument Type -> a
, parentheses are
needed if the type is a function (b -> c) -> a
.
Constructor
The type exists in a constructor argument Option Type
, parentheses
are needed for functions or other constructors Option (a -> b)
Option (Result a b)
.
Implementations§
Trait Implementations§
source§impl PartialEq for Prec
impl PartialEq for Prec
source§impl PartialOrd for Prec
impl PartialOrd for Prec
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Prec
impl StructuralPartialEq for Prec
Auto Trait Implementations§
impl RefUnwindSafe for Prec
impl Send for Prec
impl Sync for Prec
impl Unpin for Prec
impl UnwindSafe for Prec
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