Enum rustc_builtin_macros::format_foreign::printf::Substitution [−][src]
pub enum Substitution<'a> {
Format(Format<'a>),
Escape,
}Expand description
Represents a single printf-style substitution.
Variants
Format(Format<'a>)Expand description
A formatted output substitution with its internal byte offset.
Expand description
A literal %% escape.
Implementations
impl<'a> Substitution<'a>[src]
impl<'a> Substitution<'a>[src]Trait Implementations
impl<'a> Clone for Substitution<'a>[src]
impl<'a> Clone for Substitution<'a>[src]fn clone(&self) -> Substitution<'a>[src]
fn clone(&self) -> Substitution<'a>[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl<'a> Debug for Substitution<'a>[src]
impl<'a> Debug for Substitution<'a>[src]impl<'a> PartialEq<Substitution<'a>> for Substitution<'a>[src]
impl<'a> PartialEq<Substitution<'a>> for Substitution<'a>[src]fn eq(&self, other: &Substitution<'a>) -> bool[src]
fn eq(&self, other: &Substitution<'a>) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &Substitution<'a>) -> bool[src]
fn ne(&self, other: &Substitution<'a>) -> bool[src]This method tests for !=.
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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more