[−][src]Struct syntax::print::pp::Printer
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
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,
impl<E> SpecializationError for E
[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
[src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,