pub enum TermDamage {
Full,
Partial(Vec<LineDamage>),
}Expand description
What changed since the last reset_damage().
Deliberately exhaustive (#843). A consumer that ignored a new damage kind would render stale content with no error anywhere, so a new member is one the compiler must make it look at. Left exhaustive on purpose, not by omission.
Variants§
Full
The whole screen must be redrawn (flood / resize / alt-screen clear).
Partial(Vec<LineDamage>)
Only these lines changed, each carrying its damaged column span.
Trait Implementations§
Source§impl Clone for TermDamage
impl Clone for TermDamage
Source§fn clone(&self) -> TermDamage
fn clone(&self) -> TermDamage
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 moreSource§impl Debug for TermDamage
impl Debug for TermDamage
impl Eq for TermDamage
Source§impl PartialEq for TermDamage
impl PartialEq for TermDamage
impl StructuralPartialEq for TermDamage
Auto Trait Implementations§
impl Freeze for TermDamage
impl RefUnwindSafe for TermDamage
impl Send for TermDamage
impl Sync for TermDamage
impl Unpin for TermDamage
impl UnsafeUnpin for TermDamage
impl UnwindSafe for TermDamage
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