pub struct Contextual<T, C>(pub T, pub C);
Tuple Fields§
§0: T
§1: C
Implementations§
Source§impl<'a, T: AsRefWithContext<str, C> + ?Sized, C: ?Sized> Contextual<&'a T, &'a C>
impl<'a, T: AsRefWithContext<str, C> + ?Sized, C: ?Sized> Contextual<&'a T, &'a C>
Source§impl<'a, T: AsRefWithContext<str, C> + ?Sized, C: ?Sized> Contextual<&'a T, &'a mut C>
impl<'a, T: AsRefWithContext<str, C> + ?Sized, C: ?Sized> Contextual<&'a T, &'a mut C>
Source§impl<'a, T: IntoRefWithContext<'a, str, C>, C: ?Sized> Contextual<T, &'a C>
impl<'a, T: IntoRefWithContext<'a, str, C>, C: ?Sized> Contextual<T, &'a C>
Source§impl<'a, T: IntoRefWithContext<'a, str, C>, C: ?Sized> Contextual<T, &'a mut C>
impl<'a, T: IntoRefWithContext<'a, str, C>, C: ?Sized> Contextual<T, &'a mut C>
Trait Implementations§
Source§impl<'t, 'c, T: AsRefWithContext<U, C> + ?Sized, U: ?Sized, C> AsRef<U> for Contextual<&'t T, &'c C>
impl<'t, 'c, T: AsRefWithContext<U, C> + ?Sized, U: ?Sized, C> AsRef<U> for Contextual<&'t T, &'c C>
Source§impl<'t, 'c, T: AsRefWithContext<U, C> + ?Sized, U: ?Sized, C> AsRef<U> for Contextual<&'t T, &'c mut C>
impl<'t, 'c, T: AsRefWithContext<U, C> + ?Sized, U: ?Sized, C> AsRef<U> for Contextual<&'t T, &'c mut C>
Source§impl<T, C> Deref for Contextual<T, C>
impl<T, C> Deref for Contextual<T, C>
Source§impl<T, C> DerefMut for Contextual<T, C>
impl<T, C> DerefMut for Contextual<T, C>
Auto Trait Implementations§
impl<T, C> Freeze for Contextual<T, C>
impl<T, C> RefUnwindSafe for Contextual<T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<T, C> Send for Contextual<T, C>
impl<T, C> Sync for Contextual<T, C>
impl<T, C> Unpin for Contextual<T, C>
impl<T, C> UnwindSafe for Contextual<T, C>where
T: UnwindSafe,
C: 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