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§
source§impl<'a, I, T, A> TypeFormatter<'a, I, T, A>where
I: AsRef<str>,
impl<'a, I, T, A> TypeFormatter<'a, I, T, A>where I: AsRef<str>,
source§impl<'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 symbol_text(self, symbol_text: &'a dyn Fn(&I) -> &str) -> Self
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>, T::SpannedId: AsRef<str> + AsId<I>, 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more