pub struct Context<X, E>(pub X, pub E);
Expand description
Generic context type
Used mostly as a transport for ResultExt::context
method
Tuple Fields§
§0: X
§1: E
Trait Implementations§
Auto Trait Implementations§
impl<X, E> Freeze for Context<X, E>
impl<X, E> RefUnwindSafe for Context<X, E>where
X: RefUnwindSafe,
E: RefUnwindSafe,
impl<X, E> Send for Context<X, E>
impl<X, E> Sync for Context<X, E>
impl<X, E> Unpin for Context<X, E>
impl<X, E> UnwindSafe for Context<X, E>where
X: UnwindSafe,
E: 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
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.