pub struct Display<V: ?Sized>(/* private fields */);Expand description
Adapt a fmt::Display into an [sval::Value].
Implementations§
Source§impl<V: Display> Display<V>
impl<V: Display> Display<V>
Sourcepub fn new(value: V) -> Display<V>
pub fn new(value: V) -> Display<V>
Adapt a fmt::Display into an [sval::Value].
Sourcepub fn into_inner(self) -> V
pub fn into_inner(self) -> V
Convert into the inner value.
Source§impl<V: Display + ?Sized> Display<V>
impl<V: Display + ?Sized> Display<V>
Sourcepub fn new_borrowed<'a>(value: &'a V) -> &'a Display<V>
pub fn new_borrowed<'a>(value: &'a V) -> &'a Display<V>
Adapt a reference to a fmt::Display into an [sval::Value].
Trait Implementations§
Source§impl<V: Display> Value for Display<V>
impl<V: Display> Value for Display<V>
Source§fn stream<'sval, S: Stream<'sval> + ?Sized>(
&'sval self,
stream: &mut S,
) -> Result
fn stream<'sval, S: Stream<'sval> + ?Sized>( &'sval self, stream: &mut S, ) -> Result
Stream this value through a
Stream.Source§fn to_f32(&self) -> Option<f32>
fn to_f32(&self) -> Option<f32>
Try convert this value into a 32bit binary floating point number.
Auto Trait Implementations§
impl<V> Freeze for Display<V>
impl<V> RefUnwindSafe for Display<V>where
V: RefUnwindSafe + ?Sized,
impl<V> Send for Display<V>
impl<V> Sync for Display<V>
impl<V> Unpin for Display<V>
impl<V> UnwindSafe for Display<V>where
V: UnwindSafe + ?Sized,
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