pub enum Invalidation {
None,
Overlay,
Layout(Diff),
Widgets,
}Expand description
The most severe invalidation requested by a Shell while
processing an event.
Variants are ordered by severity and Shell::invalidate
accumulates the maximum: a higher variant subsumes the lower ones.
Variants§
None
Nothing needs to be rebuilt.
Overlay
The application overlays need to be recreated.
Layout(Diff)
The application layout needs to be recomputed, following the
given Diff strategy.
Widgets
The entire application widget tree needs to be rebuilt and relaid out.
Trait Implementations§
Source§impl Clone for Invalidation
impl Clone for Invalidation
Source§fn clone(&self) -> Invalidation
fn clone(&self) -> Invalidation
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 Debug for Invalidation
impl Debug for Invalidation
Source§impl Ord for Invalidation
impl Ord for Invalidation
Source§fn cmp(&self, other: &Invalidation) -> Ordering
fn cmp(&self, other: &Invalidation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Invalidation
impl PartialEq for Invalidation
Source§impl PartialOrd for Invalidation
impl PartialOrd for Invalidation
impl Copy for Invalidation
impl Eq for Invalidation
impl StructuralPartialEq for Invalidation
Auto Trait Implementations§
impl Freeze for Invalidation
impl RefUnwindSafe for Invalidation
impl Send for Invalidation
impl Sync for Invalidation
impl Unpin for Invalidation
impl UnsafeUnpin for Invalidation
impl UnwindSafe for Invalidation
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