[][src]Struct syntax::print::pp::Printer

pub struct Printer<'a> { /* fields omitted */ }

Methods

impl<'a> Printer<'a>[src]

pub fn last_token(&mut self) -> Token[src]

pub fn replace_last_token(&mut self, t: Token)[src]

Be very careful with this!

pub fn check_stream(&mut self) -> Result<()>[src]

pub fn scan_push(&mut self, x: usize)[src]

pub fn scan_pop(&mut self) -> usize[src]

pub fn scan_top(&mut self) -> usize[src]

pub fn scan_pop_bottom(&mut self) -> usize[src]

pub fn advance_right(&mut self)[src]

pub fn advance_left(&mut self) -> Result<()>[src]

pub fn check_stack(&mut self, k: isize)[src]

pub fn print_newline(&mut self, amount: isize) -> Result<()>[src]

pub fn indent(&mut self, amount: isize)[src]

pub fn get_top(&mut self) -> PrintStackElem[src]

pub fn print_begin(&mut self, b: BeginToken, l: isize) -> Result<()>[src]

pub fn print_end(&mut self) -> Result<()>[src]

pub fn print_break(&mut self, b: BreakToken, l: isize) -> Result<()>[src]

pub fn print_string(&mut self, s: Cow<'static, str>, len: isize) -> Result<()>[src]

pub fn print(&mut self, token: Token, l: isize) -> Result<()>[src]

pub fn rbox(&mut self, indent: usize, b: Breaks) -> Result<()>[src]

"raw box"

pub fn ibox(&mut self, indent: usize) -> Result<()>[src]

Inconsistent breaking box

pub fn cbox(&mut self, indent: usize) -> Result<()>[src]

Consistent breaking box

pub fn break_offset(&mut self, n: usize, off: isize) -> Result<()>[src]

pub fn end(&mut self) -> Result<()>[src]

pub fn eof(&mut self) -> Result<()>[src]

pub fn word<S: Into<Cow<'static, str>>>(&mut self, wrd: S) -> Result<()>[src]

pub fn zerobreak(&mut self) -> Result<()>[src]

pub fn space(&mut self) -> Result<()>[src]

pub fn hardbreak(&mut self) -> Result<()>[src]

pub fn hardbreak_tok_offset(off: isize) -> Token[src]

pub fn hardbreak_tok() -> Token[src]

Auto Trait Implementations

impl<'a> !Send for Printer<'a>

impl<'a> !Sync for Printer<'a>

Blanket Implementations

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.

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

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

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

impl<E> SpecializationError for E[src]

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

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

impl<T> Erased for T[src]