Struct fmt_macros::FormatSpec
[−]
[src]
pub struct FormatSpec<'a> { pub fill: Option<char>, pub align: Alignment, pub flags: u32, pub precision: Count<'a>, pub width: Count<'a>, pub ty: &'a str, }
Unstable (
rustc_private
)Specification for the formatting of an argument in the format string.
Fields
fill: Option<char>
Unstable (
rustc_private
)Optionally specified character to fill alignment with
align: Alignment
Unstable (
rustc_private
)Optionally specified alignment
flags: u32
Unstable (
rustc_private
)Packed version of various flags provided
precision: Count<'a>
Unstable (
rustc_private
)The integer precision to use
width: Count<'a>
Unstable (
rustc_private
)The string width requested for the resulting format
ty: &'a str
Unstable (
rustc_private
)The descriptor string representing the name of the format desired for this argument, this can be empty or any number of characters, although it is required to be one word.
Trait Implementations
Derived Implementations
impl<'a> PartialEq for FormatSpec<'a>
[src]
fn eq(&self, __arg_0: &FormatSpec<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FormatSpec<'a>) -> bool
This method tests for !=
.
impl<'a> Clone for FormatSpec<'a>
[src]
fn clone(&self) -> FormatSpec<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more