Struct Context
struct Context<X, E>(0, 1)
Generic context type
Used mostly as a transport for ResultExt::context method
Implementations
impl<T> Any for Context<X, E>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Context<X, E>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Context<X, E>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for Context<X, E>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for Context<X, E>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Context<X, E>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Context<X, E>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<X, E> Freeze for Context<X, E>
impl<X, E> RefUnwindSafe for Context<X, E>
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> UnsafeUnpin for Context<X, E>
impl<X, E> UnwindSafe for Context<X, E>
impl<X: $crate::fmt::Debug, E: $crate::fmt::Debug> Debug for Context<X, E>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result