Struct fmt_macros::FormatSpecUnstable [-] [+] [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,
}

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

Fields

fill

Optionally specified character to fill alignment with

align

Optionally specified alignment

flags

Packed version of various flags provided

precision

The integer precision to use

width

The string width requested for the resulting format

ty

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>

fn eq(&self, __arg_0: &FormatSpec<'a>) -> bool

fn ne(&self, __arg_0: &FormatSpec<'a>) -> bool

impl<'a> Clone for FormatSpec<'a>

fn clone(&self) -> FormatSpec<'a>

fn clone_from(&mut self, source: &Self)

impl<'a> Copy for FormatSpec<'a>