pub struct Context<T>where
T: Clone + 'static,{ /* private fields */ }Expand description
Typed context handle created by create_context.
Provide values to descendant components either via provide_context (scoped to the
enclosing #[component]) or Context::provide (scoped to an explicit closure).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Send for Context<T>
impl<T> !Sync for Context<T>
impl<T> Forget for Context<T>
impl<T> Freeze for Context<T>
impl<T> Move for Context<T>
impl<T> RefUnwindSafe for Context<T>where
Rc<T>: RefUnwindSafe,
impl<T> Unpin for Context<T>
impl<T> UnsafeUnpin for Context<T>where
Rc<T>: UnsafeUnpin,
impl<T> UnwindSafe for Context<T>where
Rc<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