Enum std::fmt::rt::FlagExperimental [-]  [+] [src]

pub enum Flag {
    FlagSignPlus,
    FlagSignMinus,
    FlagAlternate,
    FlagSignAwareZeroPad,
}

Flags which can be passed to formatting via a directive.

These flags are discovered through the flags field of the Formatter structure. The flag in that structure is a union of these flags into a uint where each flag's discriminant is the corresponding bit.

Variants

FlagSignPlus

A flag which enables number formatting to always print the sign of a number.

FlagSignMinus

Currently not a used flag

FlagAlternate

Indicates that the "alternate formatting" for a type should be used.

The meaning of this flag is type-specific.

FlagSignAwareZeroPad

Indicates that padding should be done with a 0 character as well as being aware of the sign to be printed.

Trait Implementations

Derived Implementations

impl Copy for Flag