[−][src]Struct gluon_base::types::pretty_print::Printer
Fields
arena: &'a Arena<'a, A>
source: &'a dyn Source
Implementations
impl<'a, I, A> Printer<'a, I, A>
[src]
pub fn new(arena: &'a Arena<'a, A>, source: &'a dyn Source) -> Self where
I: AsRef<str>,
[src]
I: AsRef<str>,
pub fn filter(&self, field: &I) -> Filter
[src]
pub fn symbol(&self, symbol: &'a I) -> DocBuilder<'a, Arena<'a, A>, A>
[src]
pub fn symbol_with(
&self,
symbol: &'a I,
text: &'a str
) -> DocBuilder<'a, Arena<'a, A>, A>
[src]
&self,
symbol: &'a I,
text: &'a str
) -> DocBuilder<'a, Arena<'a, A>, A>
pub fn space_before(&self, pos: BytePos) -> DocBuilder<'a, Arena<'a, A>, A>
[src]
pub fn space_after(&self, end: BytePos) -> DocBuilder<'a, Arena<'a, A>, A>
[src]
pub fn nilline_before(&self, pos: BytePos) -> DocBuilder<'a, Arena<'a, A>, A>
[src]
pub fn nilline_after(&self, end: BytePos) -> DocBuilder<'a, Arena<'a, A>, A>
[src]
pub fn comments_before(&self, pos: BytePos) -> DocBuilder<'a, Arena<'a, A>, A>
[src]
pub fn comments_after(&self, end: BytePos) -> DocBuilder<'a, Arena<'a, A>, A>
[src]
pub fn comments_count(
&self,
span: Span<BytePos>
) -> (DocBuilder<'a, Arena<'a, A>, A>, usize)
[src]
&self,
span: Span<BytePos>
) -> (DocBuilder<'a, Arena<'a, A>, A>, usize)
Auto Trait Implementations
impl<'a, I, A> !RefUnwindSafe for Printer<'a, I, A>
impl<'a, I, A> !Send for Printer<'a, I, A>
impl<'a, I, A> !Sync for Printer<'a, I, A>
impl<'a, I, A> Unpin for Printer<'a, I, A>
impl<'a, I, A> !UnwindSafe for Printer<'a, I, A>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Id> AsId<Id> for Id where
Id: ?Sized,
[src]
Id: ?Sized,
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, 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>,