[−][src]Enum rustc_builtin_macros::format_foreign::shell::Substitution

pub enum Substitution<'a> {
    Ordinal(u8, (usize, usize)),
    Name(&'a str, (usize, usize)),
    Escape((usize, usize)),
}

Variants

Ordinal(u8, (usize, usize))
Name(&'a str, (usize, usize))
Escape((usize, usize))

Implementations

impl<'_> Substitution<'_>[src]

pub fn as_str(&self) -> String[src]

pub fn position(&self) -> Option<InnerSpan>[src]

pub fn set_position(&mut self, start: usize, end: usize)[src]

pub fn translate(&self) -> Option<String>[src]

Trait Implementations

impl<'a> Clone for Substitution<'a>[src]

impl<'a> Debug for Substitution<'a>[src]

impl<'a> PartialEq<Substitution<'a>> for Substitution<'a>[src]

impl<'a> StructuralPartialEq for Substitution<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Substitution<'a>

impl<'a> Send for Substitution<'a>

impl<'a> Sync for Substitution<'a>

impl<'a> Unpin for Substitution<'a>

impl<'a> UnwindSafe for Substitution<'a>

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

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.