Enum defmt_parser::DisplayHint [−][src]
pub enum DisplayHint {
NoHint {
zero_pad: usize,
},
Hexadecimal {
uppercase: bool,
zero_pad: usize,
},
Binary {
zero_pad: usize,
},
Ascii,
Debug,
Microseconds,
Unknown(String),
}This is supported on
unstable only.Expand description
All display hints
Variants
Show fields
Fields of NoHint
zero_pad: usize:x OR :X
:b
Show fields
Fields of Binary
zero_pad: usize:a
:?
:µs, formats integers as timestamps in microseconds
Unknown(String)Display hints currently not supported / understood
Trait Implementations
impl Clone for DisplayHint[src]
impl Clone for DisplayHint[src]fn clone(&self) -> DisplayHint[src]
fn clone(&self) -> DisplayHint[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for DisplayHint[src]
impl Debug for DisplayHint[src]impl PartialEq<DisplayHint> for DisplayHint[src]
impl PartialEq<DisplayHint> for DisplayHint[src]fn eq(&self, other: &DisplayHint) -> bool[src]
fn eq(&self, other: &DisplayHint) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &DisplayHint) -> bool[src]
fn ne(&self, other: &DisplayHint) -> bool[src]This method tests for !=.
impl StructuralPartialEq for DisplayHint[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more