[−][src]Struct gluon_base::types::pretty_print::TypeFormatter
Implementations
impl<'a, I, T, A> TypeFormatter<'a, I, T, A> where
I: AsRef<str>,
[src]
I: AsRef<str>,
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 symbol_text(self, symbol_text: &'a dyn Fn(&I) -> &str) -> Self
[src]
pub fn pretty(&self, arena: &'a Arena<'a, A>) -> DocBuilder<'a, Arena<'a, A>, A> where
T: TypePtr<Id = I> + HasSpan + HasMetadata + 'a,
I: AsRef<str>,
A: Clone,
[src]
T: TypePtr<Id = I> + HasSpan + HasMetadata + '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: TypePtr<Id = I> + HasSpan + HasMetadata + 'a,
I: AsRef<str>,
[src]
T: TypePtr<Id = I> + HasSpan + HasMetadata + 'a,
I: AsRef<str>,
Auto Trait Implementations
impl<'a, I, T, A> !RefUnwindSafe for TypeFormatter<'a, I, T, A>
impl<'a, I, T, A> !Send for TypeFormatter<'a, I, T, A>
impl<'a, I, T, A> !Sync for TypeFormatter<'a, I, T, A>
impl<'a, I, T, A> Unpin for TypeFormatter<'a, I, T, A> where
I: Unpin,
I: Unpin,
impl<'a, I, T, A> !UnwindSafe for TypeFormatter<'a, I, T, A>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> 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, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,