[][src]Struct gluon_base::types::pretty_print::TypeFormatter

pub struct TypeFormatter<'a, I, T, A> where
    I: 'a,
    T: 'a,
    A: 'a, 
{ /* fields omitted */ }

Methods

impl<'a, I, T, A> TypeFormatter<'a, I, T, A>[src]

pub fn new(typ: &'a T) -> Self[src]

impl<'a, I, T, A> TypeFormatter<'a, I, T, A>[src]

pub fn width(self, width: usize) -> Self[src]

pub fn filter(self, filter: &'a dyn Fn(&I) -> Filter) -> Self[src]

pub fn annotate_symbol(
    self,
    annotate_symbol: &'a dyn Fn(&I) -> Option<A>
) -> Self
[src]

pub fn pretty(&self, arena: &'a Arena<'a, A>) -> DocBuilder<'a, Arena<'a, A>, A> where
    T: Deref<Target = Type<I, T>> + HasSpan + Commented + 'a,
    I: AsRef<str>,
    A: Clone
[src]

pub fn build(
    &self,
    arena: &'a Arena<'a, A>,
    source: &'a dyn Source
) -> Printer<'a, I, A>
[src]

Trait Implementations

impl<'a, I, T> Display for TypeFormatter<'a, I, T, ()> where
    T: Deref<Target = Type<I, T>> + HasSpan + Commented + 'a,
    I: AsRef<str>, 
[src]

Auto Trait Implementations

impl<'a, I, T, A> !Send for TypeFormatter<'a, I, T, A>

impl<'a, I, T, A> !Sync for TypeFormatter<'a, I, T, A>

Blanket Implementations

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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