[−][src]Struct rustc_ap_rustc_ast_pretty::pp::Printer
Methods
impl Printer
[src]
pub fn word_space<W: Into<Cow<'static, str>>>(&mut self, w: W)
[src]
pub fn popen(&mut self)
[src]
pub fn pclose(&mut self)
[src]
pub fn hardbreak_if_not_bol(&mut self)
[src]
pub fn space_if_not_bol(&mut self)
[src]
pub fn nbsp(&mut self)
[src]
pub fn word_nbsp<S: Into<Cow<'static, str>>>(&mut self, w: S)
[src]
impl Printer
[src]
pub fn last_token(&self) -> Token
[src]
pub fn replace_last_token(&mut self, t: Token)
[src]
Be very careful with this!
pub fn rbox(&mut self, indent: usize, b: Breaks)
[src]
"raw box"
pub fn ibox(&mut self, indent: usize)
[src]
Inconsistent breaking box
pub fn cbox(&mut self, indent: usize)
[src]
Consistent breaking box
pub fn break_offset(&mut self, n: usize, off: isize)
[src]
pub fn end(&mut self)
[src]
pub fn eof(self) -> String
[src]
pub fn word<S: Into<Cow<'static, str>>>(&mut self, wrd: S)
[src]
pub fn space(&mut self)
[src]
pub fn hardbreak(&mut self)
[src]
pub fn is_beginning_of_line(&self) -> bool
[src]
pub fn hardbreak_tok_offset(off: isize) -> Token
[src]
Auto Trait Implementations
impl RefUnwindSafe for Printer
impl Send for Printer
impl Sync for Printer
impl Unpin for Printer
impl UnwindSafe for Printer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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, 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>,