pub enum RetentionMode {
DisposeWhenInactive,
RetainWhenInactive,
}Expand description
What a group’s content becomes when the group leaves the composition.
Variants§
DisposeWhenInactive
Disposes the group’s content as soon as the group leaves the composition.
RetainWhenInactive
Detaches the group and keeps its content, so the group returns with its nodes and state when
its key is composed again. The RetentionPolicy budget can still evict it.
Trait Implementations§
Source§impl Clone for RetentionMode
impl Clone for RetentionMode
impl Copy for RetentionMode
Source§impl Debug for RetentionMode
impl Debug for RetentionMode
Source§impl Default for RetentionMode
impl Default for RetentionMode
impl Eq for RetentionMode
Source§impl PartialEq for RetentionMode
impl PartialEq for RetentionMode
impl StructuralPartialEq for RetentionMode
Auto Trait Implementations§
impl Freeze for RetentionMode
impl RefUnwindSafe for RetentionMode
impl Send for RetentionMode
impl Sync for RetentionMode
impl Unpin for RetentionMode
impl UnsafeUnpin for RetentionMode
impl UnwindSafe for RetentionMode
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