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
Fields of NoHint
zero_pad: usize
:x
OR :X
:b
:a
:?
: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
__internal_bitflags_NAME
instructs the decoder to print the flags that are set, instead of
the raw value.
Unknown(String)
Display hints currently not supported / understood
Tuple Fields of Unknown
0: String
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DisplayHint
impl Send for DisplayHint
impl Sync for DisplayHint
impl Unpin for DisplayHint
impl UnwindSafe for DisplayHint
Blanket Implementations
Mutably borrows from an owned value. Read more