pub struct CompositionLocalAccessorScope { /* private fields */ }Expand description
What a computed composition local’s value reads other locals through:
their values where the computed local is read, not where it was
provided. Compose’s CompositionLocalAccessorScope.
Implementations§
Source§impl CompositionLocalAccessorScope
impl CompositionLocalAccessorScope
Sourcepub fn current_value<T>(&self, local: &impl ReadableCompositionLocal<T>) -> T
pub fn current_value<T>(&self, local: &impl ReadableCompositionLocal<T>) -> T
The value local has where the computed local is read. Compose’s
CompositionLocal.currentValue in this scope.
Auto Trait Implementations§
impl Freeze for CompositionLocalAccessorScope
impl RefUnwindSafe for CompositionLocalAccessorScope
impl Send for CompositionLocalAccessorScope
impl Sync for CompositionLocalAccessorScope
impl Unpin for CompositionLocalAccessorScope
impl UnsafeUnpin for CompositionLocalAccessorScope
impl UnwindSafe for CompositionLocalAccessorScope
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