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>,
},
Unknown(String),
}
Expand description
All display hints
Variants§
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.
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