Struct gluon_base::types::pretty_print::TypeFormatter
source · pub struct TypeFormatter<'a, I, T, A>where
I: 'a,
T: 'a,
A: 'a,{ /* private fields */ }
Implementations
sourceimpl<'a, I, T, A> TypeFormatter<'a, I, T, A>
impl<'a, I, T, A> TypeFormatter<'a, I, T, A>
sourceimpl<'a, I, T, A> TypeFormatter<'a, I, T, A>
impl<'a, I, T, A> TypeFormatter<'a, I, T, A>
pub fn width(self, width: usize) -> Self
pub fn filter(self, filter: &'a dyn Fn(&I) -> Filter) -> Self
pub fn annotate_symbol(
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,
pub fn build(
&self,
arena: &'a Arena<'a, A>,
source: &'a dyn Source
) -> Printer<'a, I, A>
Trait Implementations
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,
impl<'a, I, T, A> !UnwindSafe for TypeFormatter<'a, I, T, A>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more