[−][src]Struct gluon_base::types::pretty_print::TypeFormatter
Methods
impl<'a, I, T, A> TypeFormatter<'a, I, T, A>
[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]
self,
annotate_symbol: &'a dyn Fn(&I) -> Option<A>
) -> Self
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]
T: Deref<Target = Type<I, T>> + HasSpan + Commented + 'a,
I: AsRef<str>,
A: Clone,
pub fn build(
&self,
arena: &'a Arena<'a, A>,
source: &'a dyn Source
) -> Printer<'a, I, A>
[src]
&self,
arena: &'a Arena<'a, A>,
source: &'a dyn Source
) -> Printer<'a, I, A>
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]
T: Deref<Target = Type<I, T>> + HasSpan + Commented + 'a,
I: AsRef<str>,
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]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,