Enum mm0_util::Prec [−][src]
pub enum Prec {
Prec(u32),
Max,
}
Expand description
A precedence literal, such as 123
or max
. These are used in notations like
notation add = ($+$:23)
or infix add: $+$ prec 23;
.
Variants
A finite precedence, an unsigned integer like 23
.
Tuple Fields of Prec
0: u32
The maximum precedence, the precedence class containing atomic literals and parentheses.
Trait Implementations
Returns an estimation of the heap-managed storage of this object. This does not include the size of the object itself. Read more
Returns an estimation of a total size of memory owned by the object, including heap-managed storage. Read more
Returns an estimation of a total size of memory owned by the object, including heap-managed storage. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Prec
impl UnwindSafe for Prec
Blanket Implementations
Mutably borrows from an owned value. Read more