#[non_exhaustive]pub enum DisplayHint {
NoHint {
zero_pad: usize,
},
Hexadecimal {
alternate: bool,
uppercase: bool,
zero_pad: usize,
},
Octal {
alternate: bool,
zero_pad: usize,
},
Binary {
alternate: bool,
zero_pad: usize,
},
Ascii,
Debug,
Seconds(TimePrecision),
Time(TimePrecision),
ISO8601(TimePrecision),
Bitflags {
name: String,
package: String,
disambiguator: String,
crate_name: Option<String>,
},
Cbor,
Unknown(String),
}
Expand description
All display hints
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NoHint
Hexadecimal
:x
OR :X
Octal
:o
Binary
:b
Ascii
:a
Debug
:?
Seconds(TimePrecision)
:us
:ms
, formats integers as timestamps in seconds
Time(TimePrecision)
:tus
:tms
:ts
, formats integers as human-readable time
ISO8601(TimePrecision)
:iso8601{ms,s}
, formats integers as timestamp in ISO8601 date time format
Bitflags
__internal_bitflags_NAME
instructs the decoder to print the flags that are set, instead of
the raw value.
Cbor
:cbor
: There is CBOR data encoded in those bytes, to be shown in diagnostic notation.
Technically, the byte string interpreted as a CBOR sequence, and shown in the diagnostic notation of a sequence. That is identical to processing a single CBOR item if there is just one present, but also allows reporting multiple items from consecutive memory; diagnostic notation turns those into comma separated items.
Unknown(String)
Display hints currently not supported / understood
Trait Implementations§
Source§impl Clone for DisplayHint
impl Clone for DisplayHint
Source§fn clone(&self) -> DisplayHint
fn clone(&self) -> DisplayHint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more