Struct DisplayValue
pub struct DisplayValue<T: Display>(/* private field */);
A Value which serializes using fmt::Display.
Uses record_debug in the Value implementation to
avoid an unnecessary evaluation.
Trait Implementations
impl<T> Value for DisplayValue<T>
where
T: Display,
fn record(&self, key: &Field, visitor: &mut dyn Visit)
impl<T: Clone + Display> Clone for DisplayValue<T>
fn clone(&self) -> DisplayValue<T>
impl<T: Display> Debug for DisplayValue<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Display> Display for DisplayValue<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<T> Freeze for DisplayValue<T>
where
T: Freeze,
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> UnsafeUnpin for DisplayValue<T>
where
T: UnsafeUnpin,
impl<T> UnwindSafe for DisplayValue<T>
where
T: UnwindSafe,
Blanket Implementations
impl<T> Any for DisplayValue<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DisplayValue<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DisplayValue<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for DisplayValue<T>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for DisplayValue<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for DisplayValue<T>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for DisplayValue<T>
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for DisplayValue<T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for DisplayValue<T>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for DisplayValue<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>