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,
}
🔬 This is a nightly-only experimental API. (rustc_private)

Specification for the formatting of an argument in the format string.

Fields

🔬 This is a nightly-only experimental API. (rustc_private)

Optionally specified character to fill alignment with

🔬 This is a nightly-only experimental API. (rustc_private)

Optionally specified alignment

🔬 This is a nightly-only experimental API. (rustc_private)

Packed version of various flags provided

🔬 This is a nightly-only experimental API. (rustc_private)

The integer precision to use

🔬 This is a nightly-only experimental API. (rustc_private)

The string width requested for the resulting format

🔬 This is a nightly-only experimental API. (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

impl<'a> Copy for FormatSpec<'a>
[src]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.