Enum defmt_parser::DisplayHint
source · 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,
crate_name: String,
},
Unknown(String),
}
Available on
unstable
only.Expand description
All display hints
Variants§
NoHint
Hexadecimal
:x
OR :X
Binary
:b
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
Bitflags
__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
Trait Implementations§
source§impl Clone for DisplayHint
impl Clone for DisplayHint
source§fn clone(&self) -> DisplayHint
fn clone(&self) -> DisplayHint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DisplayHint
impl Debug for DisplayHint
source§impl PartialEq<DisplayHint> for DisplayHint
impl PartialEq<DisplayHint> for DisplayHint
source§fn eq(&self, other: &DisplayHint) -> bool
fn eq(&self, other: &DisplayHint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.