pub struct Decorated<T> { /* private fields */ }
Expand description
A wrapper type for attaching a Decor
and span information to a value.
Implementations§
Source§impl<T> Decorated<T>
impl<T> Decorated<T>
Sourcepub fn into_value(self) -> T
pub fn into_value(self) -> T
Consumes the Decorated<T>
and returns the wrapped value.
Sourcepub fn value_into<U>(self) -> Uwhere
T: Into<U>,
pub fn value_into<U>(self) -> Uwhere
T: Into<U>,
Consumes the Decorated<T>
and converts the inner value into another type.
Trait Implementations§
impl<T: Eq> Eq for Decorated<T>
Auto Trait Implementations§
impl<T> Freeze for Decorated<T>where
T: Freeze,
impl<T> RefUnwindSafe for Decorated<T>where
T: RefUnwindSafe,
impl<T> Send for Decorated<T>where
T: Send,
impl<T> Sync for Decorated<T>where
T: Sync,
impl<T> Unpin for Decorated<T>where
T: Unpin,
impl<T> UnwindSafe for Decorated<T>where
T: UnwindSafe,
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