Struct tracing_core::field::DisplayValue
source · [−]pub struct DisplayValue<T: Display>(_);
Expand description
A Value
which serializes using fmt::Display
.
Uses record_debug
in the Value
implementation to
avoid an unnecessary evaluation.
Trait Implementations
sourceimpl<T: Clone + Display> Clone for DisplayValue<T>
impl<T: Clone + Display> Clone for DisplayValue<T>
sourcefn clone(&self) -> DisplayValue<T>
fn clone(&self) -> DisplayValue<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Display> Debug for DisplayValue<T>
impl<T: Display> Debug for DisplayValue<T>
sourceimpl<T: Display> Display for DisplayValue<T>
impl<T: Display> Display for DisplayValue<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for DisplayValue<T> where
T: RefUnwindSafe,
impl<T> Send for DisplayValue<T> where
T: Send,
impl<T> Sync for DisplayValue<T> where
T: Sync,
impl<T> Unpin for DisplayValue<T> where
T: Unpin,
impl<T> UnwindSafe for DisplayValue<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more