pub enum FormatType {
Display,
Debug,
Object,
Octal,
LowerHex,
UpperHex,
Pointer,
Binary,
LowerExp,
UpperExp,
Literal(&'static str),
}
Expand description
Formatting types for arguments.
Variants§
Display
Print the display representation of the argument.
Debug
Print the debug representation of the argument.
This is not yet implemented!
Object
Print a structured representation of the argument.
This will serialize the argument as JSON. If the json
feature is turned off, an argument
like this will result in an error.
Octal
Print the octal representation of the argument.
LowerHex
Print the lower hex representation of the argument.
UpperHex
Print the upper hex representation of the argument.
Pointer
Print the pointer representation of the argument.
Binary
Print the binary representation of the argument.
LowerExp
Print the lower exponential representation of the argument.
UpperExp
Print the upper exponential representation of the argument.
Literal(&'static str)
Print an escaped literal from the format string.
Implementations§
Trait Implementations§
Source§impl Clone for FormatType
impl Clone for FormatType
Source§fn clone(&self) -> FormatType
fn clone(&self) -> FormatType
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 FormatType
impl Debug for FormatType
Source§impl Default for FormatType
impl Default for FormatType
Source§impl Display for FormatType
impl Display for FormatType
Source§impl PartialEq for FormatType
impl PartialEq for FormatType
impl Copy for FormatType
impl Eq for FormatType
impl StructuralPartialEq for FormatType
Auto Trait Implementations§
impl Freeze for FormatType
impl RefUnwindSafe for FormatType
impl Send for FormatType
impl Sync for FormatType
impl Unpin for FormatType
impl UnwindSafe for FormatType
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.