Enum gluon_base::types::Prec [−][src]
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)
.
Methods
impl Prec
[src]
impl Prec
pub fn enclose<'a>(
&self,
limit: Prec,
arena: &'a Arena<'a>,
doc: DocBuilder<'a, Arena<'a>>
) -> DocBuilder<'a, Arena<'a>>
[src]
pub fn enclose<'a>(
&self,
limit: Prec,
arena: &'a Arena<'a>,
doc: DocBuilder<'a, Arena<'a>>
) -> DocBuilder<'a, Arena<'a>>
Trait Implementations
impl PartialEq for Prec
[src]
impl PartialEq for Prec
fn eq(&self, other: &Prec) -> bool
[src]
fn eq(&self, other: &Prec) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Copy for Prec
[src]
impl Copy for Prec
impl Clone for Prec
[src]
impl Clone for Prec
fn clone(&self) -> Prec
[src]
fn clone(&self) -> Prec
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialOrd for Prec
[src]
impl PartialOrd for Prec
fn partial_cmp(&self, other: &Prec) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Prec) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
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 more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more