[][src]Struct msiz_rustc_ap_syntax::print::pprust::State

pub struct State<'a> {
    pub s: Printer,
    // some fields omitted
}

Fields

s: Printer

Methods

impl<'a> State<'a>[src]

pub fn synth_comment(&mut self, text: String)[src]

Methods from Deref<Target = Printer>

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 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 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]

Trait Implementations

impl<'a> PrintState<'a> for State<'a>[src]

impl<'_> DerefMut for State<'_>[src]

impl<'_> Deref for State<'_>[src]

type Target = Printer

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a> Unpin for State<'a>

impl<'a> !Sync for State<'a>

impl<'a> !Send for State<'a>

impl<'a> !UnwindSafe for State<'a>

impl<'a> !RefUnwindSafe for State<'a>

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<T> Erased for T[src]

impl<E> SpecializationError for E[src]