Enum interpolator::Trait
source · #[non_exhaustive]
pub enum Trait {
Binary,
Debug,
Display,
LowerExp,
LowerHex,
Octal,
Pointer,
UpperExp,
UpperHex,
Iter,
}
Expand description
The trait used to format.
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.
Binary
Available on crate feature
number
only.Debug
Available on crate feature
debug
only.Display
LowerExp
Available on crate feature
number
only.LowerHex
Available on crate feature
number
only.Octal
Available on crate feature
number
only.Pointer
Available on crate feature
pointer
only.UpperExp
Available on crate feature
number
only.UpperHex
Available on crate feature
number
only.Iter
Available on crate feature
iter
only.Custom “trait” that allows iterating over lists i.e. &[Formattable]