[−][src]Struct syntax::print::pp::Printer
Methods
impl<'a> Printer<'a>
[src]
impl<'a> Printer<'a>
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 for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<E> SpecializationError for E
[src]
impl<E> SpecializationError for E
impl<T> Erased for T
[src]
impl<T> Erased for T
impl<T> Send for T where
T: ?Sized,
[src]
impl<T> Send for T where
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
impl<T> Sync for T where
T: ?Sized,
impl<T> Erased for T
impl<T> Erased for T