[−][src]Struct syntex_syntax2::print::pp::Printer
Fields
out: Box<dyn Write + 'a>
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 pretty_print(&mut self, token: Token) -> Result<()>
[src]
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_str(&mut self, s: &str) -> Result<()>
[src]
pub fn print(&mut self, token: Token, l: isize) -> Result<()>
[src]
Auto Trait Implementations
impl<'a> !Send for Printer<'a>
impl<'a> Unpin for Printer<'a>
impl<'a> !Sync for Printer<'a>
impl<'a> !UnwindSafe for Printer<'a>
impl<'a> !RefUnwindSafe for Printer<'a>
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,