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,
},
Unknown(String),
}
This is supported on
unstable
only.Expand description
All display hints
Variants
NoHint
Fields
zero_pad: usize
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
sourceimpl Clone for DisplayHint
impl Clone for DisplayHint
sourcefn clone(&self) -> DisplayHint
fn clone(&self) -> DisplayHint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DisplayHint
impl Debug for DisplayHint
sourceimpl PartialEq<DisplayHint> for DisplayHint
impl PartialEq<DisplayHint> for DisplayHint
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &DisplayHint) -> bool
fn ne(&self, other: &DisplayHint) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more