Enum fmt_macros::FlagUnstable [-] [+] [src]

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

Various flags which can be applied to format strings. The meaning of these flags is defined by the formatters themselves.

Variants

FlagSignPlus

A + will be used to denote positive numbers.

FlagSignMinus

A - will be used to denote negative numbers. This is the default.

FlagAlternate

An alternate form will be used for the value. In the case of numbers, this means that the number will be prefixed with the supplied string.

FlagSignAwareZeroPad

For numbers, this means that the number will be padded with zeroes, and the sign (+ or -) will precede them.

Trait Implementations

Derived Implementations

impl PartialEq for Flag

fn eq(&self, __arg_0: &Flag) -> bool

fn ne(&self, __arg_0: &Flag) -> bool

impl Clone for Flag

fn clone(&self) -> Flag

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

impl Copy for Flag