[][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

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]

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 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]

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]

impl<Id> AsId<Id> for Id where
    Id: ?Sized
[src]

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.