[][src]Struct gluon_base::types::pretty_print::Printer

pub struct Printer<'a, I: 'a, A: 'a> {
    pub arena: &'a Arena<'a, A>,
    pub source: &'a dyn Source,
    // some fields omitted
}

Fields

arena: &'a Arena<'a, A>source: &'a dyn Source

Methods

impl<'a, I, A> Printer<'a, I, A>[src]

pub fn new(arena: &'a Arena<'a, A>, source: &'a dyn Source) -> Printer<'a, I, A> where
    I: AsRef<str>, 
[src]

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]

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 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, bool)
[src]

Auto Trait Implementations

impl<'a, I, A> !Send for Printer<'a, I, A>

impl<'a, I, A> !Sync for Printer<'a, I, A>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]