pub struct ContextKey<T: AnyValueSpec> { /* private fields */ }Expand description
A key for accessing values in an Context.
Trait Implementations§
Source§impl<T: AnyValueSpec> Clone for ContextKey<T>
impl<T: AnyValueSpec> Clone for ContextKey<T>
Source§impl<T: Debug + AnyValueSpec> Debug for ContextKey<T>
impl<T: Debug + AnyValueSpec> Debug for ContextKey<T>
Source§impl<T: AnyValueSpec> PartialEq for ContextKey<T>
impl<T: AnyValueSpec> PartialEq for ContextKey<T>
impl<T: AnyValueSpec> Copy for ContextKey<T>
impl<T: AnyValueSpec> Eq for ContextKey<T>
Auto Trait Implementations§
impl<T> Freeze for ContextKey<T>
impl<T> RefUnwindSafe for ContextKey<T>where
T: RefUnwindSafe,
impl<T> !Send for ContextKey<T>
impl<T> !Sync for ContextKey<T>
impl<T> Unpin for ContextKey<T>
impl<T> UnsafeUnpin for ContextKey<T>
impl<T> UnwindSafe for ContextKey<T>where
T: RefUnwindSafe,
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