pub struct WithContext<T> {
pub context: Option<Context>,
pub value: T,
}Fields§
§context: Option<Context>§value: TImplementations§
Source§impl<T> WithContext<T>
impl<T> WithContext<T>
pub fn map<U>(self, f: impl FnOnce(T) -> U) -> WithContext<U>
Auto Trait Implementations§
impl<T> Freeze for WithContext<T>where
T: Freeze,
impl<T> RefUnwindSafe for WithContext<T>where
T: RefUnwindSafe,
impl<T> Send for WithContext<T>where
T: Send,
impl<T> Sync for WithContext<T>where
T: Sync,
impl<T> Unpin for WithContext<T>where
T: Unpin,
impl<T> UnwindSafe for WithContext<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