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

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

Fields

fill
Unstable

Optionally specified character to fill alignment with

align
Unstable

Optionally specified alignment

flags
Unstable

Packed version of various flags provided

precision
Unstable

The integer precision to use

width
Unstable

The string width requested for the resulting format

ty
Unstable

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>