pub struct CompositionLocal<T: Clone + 'static> { /* private fields */ }Implementations§
Source§impl<T: Clone + 'static> CompositionLocal<T>
impl<T: Clone + 'static> CompositionLocal<T>
pub fn provides(&self, value: T) -> ProvidedValue
pub fn current(&self) -> T
pub fn default_value(&self) -> T
Trait Implementations§
Source§impl<T: Clone + Clone + 'static> Clone for CompositionLocal<T>
impl<T: Clone + Clone + 'static> Clone for CompositionLocal<T>
Source§fn clone(&self) -> CompositionLocal<T>
fn clone(&self) -> CompositionLocal<T>
Returns a duplicate 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: Clone + 'static> PartialEq for CompositionLocal<T>
impl<T: Clone + 'static> PartialEq for CompositionLocal<T>
impl<T: Clone + 'static> Eq for CompositionLocal<T>
Auto Trait Implementations§
impl<T> Freeze for CompositionLocal<T>
impl<T> !RefUnwindSafe for CompositionLocal<T>
impl<T> !Send for CompositionLocal<T>
impl<T> !Sync for CompositionLocal<T>
impl<T> Unpin for CompositionLocal<T>
impl<T> !UnwindSafe for CompositionLocal<T>
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