#[non_exhaustive]pub enum Argument {
Precision(u8),
TruncateEnd(usize),
TruncateStart(usize),
}Expand description
Formatting arguments.
Arguments can be used to specify additional formatting options for the log message. Note that types might not support all arguments.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Precision(u8)
Number of decimal places to display for numbers.
This is only applicable for numeric types.
TruncateEnd(usize)
Truncate the output at the end when the specified maximum number of characters is exceeded.
This is only applicable for str types.
TruncateStart(usize)
Truncate the output at the start when the specified maximum number of characters is exceeded.
This is only applicable for str types.
Auto Trait Implementations§
impl Freeze for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnwindSafe for Argument
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