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§
Source§impl<T: Clone + 'static> Clone for ContextProvider<T>
impl<T: Clone + 'static> Clone for ContextProvider<T>
Source§fn clone(&self) -> ContextProvider<T>
fn clone(&self) -> ContextProvider<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: 'static> Component for ContextProvider<T>
impl<T: 'static> Component for ContextProvider<T>
Auto Trait Implementations§
impl<T> Freeze for ContextProvider<T>
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§
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