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: Option<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 ==
.impl Eq for DisplayHint
impl StructuralEq for DisplayHint
impl StructuralPartialEq for DisplayHint
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more