Enum syntax_ext::format_foreign::printf::Substitution [−][src]
pub enum Substitution<'a> {
Format(Format<'a>),
Escape,
}🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Represents a single printf-style substitution.
Variants
Format(Format<'a>)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
A formatted output substitution.
Escape🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
A literal %% escape.
Methods
impl<'a> Substitution<'a>[src]
impl<'a> Substitution<'a>pub fn as_str(&self) -> &str[src]
pub fn as_str(&self) -> &str🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn translate(&self) -> Option<String>[src]
pub fn translate(&self) -> Option<String>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Translate this substitution into an equivalent Rust formatting directive.
This ignores cases where the substitution does not have an exact equivalent, or where the substitution would be unnecessary.
Trait Implementations
impl<'a> Clone for Substitution<'a>[src]
impl<'a> Clone for Substitution<'a>fn clone(&self) -> Substitution<'a>[src]
fn clone(&self) -> Substitution<'a>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)Performs copy-assignment from source. Read more
impl<'a> Eq for Substitution<'a>[src]
impl<'a> Eq for Substitution<'a>fn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl<'a> PartialEq for Substitution<'a>[src]
impl<'a> PartialEq for Substitution<'a>fn eq(&self, other: &Substitution<'a>) -> bool[src]
fn eq(&self, other: &Substitution<'a>) -> boolThis 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>) -> boolThis method tests for !=.
impl<'a> Debug for Substitution<'a>[src]
impl<'a> Debug for Substitution<'a>Auto Trait Implementations
impl<'a> Send for Substitution<'a>
impl<'a> Send for Substitution<'a>impl<'a> Sync for Substitution<'a>
impl<'a> Sync for Substitution<'a>