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§
source§impl<T> PartialEq<Decorated<T>> for Decorated<T>where
T: PartialEq,
impl<T> PartialEq<Decorated<T>> for Decorated<T>where T: PartialEq,
impl<T: Eq> Eq for Decorated<T>
impl<T> StructuralEq for Decorated<T>
Auto Trait Implementations§
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