pub enum FormatValue {
None,
Bool(bool),
Int(i64),
Float(f64),
Str(String),
}Expand description
A value a replacement field resolves to.
Variants§
Trait Implementations§
Source§impl Clone for FormatValue
impl Clone for FormatValue
Source§impl Debug for FormatValue
impl Debug for FormatValue
Source§impl From<&str> for FormatValue
impl From<&str> for FormatValue
Source§impl<T: Into<FormatValue>> From<Option<T>> for FormatValue
impl<T: Into<FormatValue>> From<Option<T>> for FormatValue
Source§impl From<String> for FormatValue
impl From<String> for FormatValue
Source§impl From<bool> for FormatValue
impl From<bool> for FormatValue
Source§impl From<f64> for FormatValue
impl From<f64> for FormatValue
Source§impl From<i32> for FormatValue
impl From<i32> for FormatValue
Source§impl From<i64> for FormatValue
impl From<i64> for FormatValue
Source§impl From<usize> for FormatValue
impl From<usize> for FormatValue
Source§impl PartialEq for FormatValue
impl PartialEq for FormatValue
impl StructuralPartialEq for FormatValue
Auto Trait Implementations§
impl Freeze for FormatValue
impl RefUnwindSafe for FormatValue
impl Send for FormatValue
impl Sync for FormatValue
impl Unpin for FormatValue
impl UnsafeUnpin for FormatValue
impl UnwindSafe for FormatValue
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