Enum defmt_parser::DisplayHint[][src]

pub enum DisplayHint {
    NoHint {
        zero_pad: usize,
    },
    Hexadecimal {
        alternate: bool,
        uppercase: bool,
        zero_pad: usize,
    },
    Binary {
        alternate: bool,
        zero_pad: usize,
    },
    Ascii,
    Debug,
    Microseconds,
    ISO8601(TimePrecision),
    Bitflags {
        name: String,
        package: String,
        disambiguator: String,
    },
    Unknown(String),
}
This is supported on unstable only.
Expand description

All display hints

Variants

NoHint

Fields of NoHint

zero_pad: usize
Hexadecimal

:x OR :X

Fields of Hexadecimal

alternate: booluppercase: boolzero_pad: usize
Binary

:b

Fields of Binary

alternate: boolzero_pad: usize
Ascii

:a

Debug

:?

Microseconds

:us, formats integers as timestamps in microseconds

ISO8601(TimePrecision)

:iso8601{ms,s}, formats integers as timestamp in ISO8601 date time format

Tuple Fields of ISO8601

0: TimePrecision
Bitflags

__internal_bitflags_NAME instructs the decoder to print the flags that are set, instead of the raw value.

Fields of Bitflags

name: Stringpackage: Stringdisambiguator: String
Unknown(String)

Display hints currently not supported / understood

Tuple Fields of Unknown

0: String

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.