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,
Seconds(TimePrecision),
Time(TimePrecision),
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
:?
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.
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 for DisplayHint
impl PartialEq for DisplayHint
impl Eq for DisplayHint
impl StructuralPartialEq for DisplayHint
Auto Trait Implementations§
impl Freeze for DisplayHint
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)