Enum fmt_macros::Flag
[−]
[src]
pub enum Flag { FlagSignPlus, FlagSignMinus, FlagAlternate, FlagSignAwareZeroPad, FlagDebugLowerHex, FlagDebugUpperHex, }
🔬 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?
Various flags which can be applied to format strings. The meaning of these flags is defined by the formatters themselves.
Variants
FlagSignPlus
🔬 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 +
will be used to denote positive numbers.
FlagSignMinus
🔬 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 -
will be used to denote negative numbers. This is the default.
FlagAlternate
🔬 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?
An alternate form will be used for the value. In the case of numbers, this means that the number will be prefixed with the supplied string.
FlagSignAwareZeroPad
🔬 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?
For numbers, this means that the number will be padded with zeroes,
and the sign (+
or -
) will precede them.
FlagDebugLowerHex
🔬 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?
For Debug / ?
, format integers in lower-case hexadecimal.
FlagDebugUpperHex
🔬 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?
For Debug / ?
, format integers in upper-case hexadecimal.
Trait Implementations
impl Copy for Flag
[src]
impl Copy for Flag
impl Clone for Flag
[src]
impl Clone for Flag
fn clone(&self) -> Flag
[src]
fn clone(&self) -> Flag
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 PartialEq for Flag
[src]
impl PartialEq for Flag