Struct wasm_react::ContextProvider
source · [−]pub struct ContextProvider<T: 'static> { /* private fields */ }
Expand description
A component that can make the given context available for its subtrees.
See create_context()
for usage.
Implementations
Trait Implementations
sourceimpl<T: Clone + 'static> Clone for ContextProvider<T>
impl<T: Clone + 'static> Clone for ContextProvider<T>
sourcefn clone(&self) -> ContextProvider<T>
fn clone(&self) -> ContextProvider<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for ContextProvider<T> where
T: RefUnwindSafe,
impl<T> !Send for ContextProvider<T>
impl<T> !Sync for ContextProvider<T>
impl<T> Unpin for ContextProvider<T>
impl<T> UnwindSafe for ContextProvider<T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more