#[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.