pub struct DefaultSlotReusePolicy;Expand description
Default reuse policy that mirrors Jetpack Compose behaviour: dispose everything from the tail so that the next measurement can decide which content to keep alive. Compatibility defaults to exact slot matches.
Trait Implementations§
Source§impl Debug for DefaultSlotReusePolicy
impl Debug for DefaultSlotReusePolicy
Source§impl Default for DefaultSlotReusePolicy
impl Default for DefaultSlotReusePolicy
Source§impl SlotReusePolicy for DefaultSlotReusePolicy
impl SlotReusePolicy for DefaultSlotReusePolicy
Source§fn are_compatible(&self, existing: TypedSlot, requested: TypedSlot) -> bool
fn are_compatible(&self, existing: TypedSlot, requested: TypedSlot) -> bool
Determines whether a node that previously rendered the slot
existing
can be reused when the caller requests requested. Each slot comes
with the content type SubcomposeState holds for it. Read moreAuto Trait Implementations§
impl Freeze for DefaultSlotReusePolicy
impl RefUnwindSafe for DefaultSlotReusePolicy
impl Send for DefaultSlotReusePolicy
impl Sync for DefaultSlotReusePolicy
impl Unpin for DefaultSlotReusePolicy
impl UnsafeUnpin for DefaultSlotReusePolicy
impl UnwindSafe for DefaultSlotReusePolicy
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