[][src]Enum gluon_base::types::Prec

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

impl Prec[src]

pub fn enclose<'a, A>(
    &self,
    limit: Prec,
    arena: &'a Arena<'a, A>,
    doc: DocBuilder<'a, Arena<'a, A>, A>
) -> DocBuilder<'a, Arena<'a, A>, A>
[src]

Trait Implementations

impl Clone for Prec[src]

impl Copy for Prec[src]

impl PartialEq<Prec> for Prec[src]

impl PartialOrd<Prec> for Prec[src]

impl StructuralPartialEq for Prec[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Id> AsId<Id> for Id where
    Id: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.