pub struct CapturedCompositionLocals(/* private fields */);Expand description
An opaque snapshot of the composition-local values in scope at the point it
was captured (see Composer::capture_composition_locals). Cheap to clone
(an Rc internally); replayed by Composer::subcompose_slot_with_locals.
Trait Implementations§
Source§impl Clone for CapturedCompositionLocals
impl Clone for CapturedCompositionLocals
Source§fn clone(&self) -> CapturedCompositionLocals
fn clone(&self) -> CapturedCompositionLocals
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for CapturedCompositionLocals
impl !Send for CapturedCompositionLocals
impl !Sync for CapturedCompositionLocals
impl !UnwindSafe for CapturedCompositionLocals
impl Freeze for CapturedCompositionLocals
impl Unpin for CapturedCompositionLocals
impl UnsafeUnpin for CapturedCompositionLocals
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