[][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 indent(&mut self, amount: isize)
[src]

pub fn get_top(&mut self) -> PrintStackElem
[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 for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<E> SpecializationError for E
[src]

impl<T> Erased for T
[src]

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

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

impl<T> Erased for T