pub enum Value<'a> {
SignedInt(i64),
UnsignedInt(u64),
Floating(f64),
Boolean(bool),
Text(Cow<'a, str>),
}
Expand description
The value of a logging argument.
Variants§
SignedInt(i64)
A signed integer value for a logging argument.
UnsignedInt(u64)
An unsigned integer value for a logging argument.
Floating(f64)
A floating point value for a logging argument.
Boolean(bool)
A boolean value for a logging argument.
Text(Cow<'a, str>)
A string value for a logging argument.
Trait Implementations§
Source§impl<B: MutableBuffer> WriteArgumentValue<B> for Value<'_>
impl<B: MutableBuffer> WriteArgumentValue<B> for Value<'_>
Source§fn write_value(
&self,
header: &mut Header,
encoder: &mut Encoder<B>,
) -> Result<(), EncodingError>
fn write_value( &self, header: &mut Header, encoder: &mut Encoder<B>, ) -> Result<(), EncodingError>
Writes the value of the argument.
impl<'a> StructuralPartialEq for Value<'a>
Auto Trait Implementations§
impl<'a> Freeze for Value<'a>
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> Send for Value<'a>
impl<'a> Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnwindSafe for Value<'a>
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