pub struct HistoryChange {
pub created: Vec<u64>,
pub removed: Vec<u64>,
pub modified: Vec<u64>,
pub header: bool,
}Expand description
What an undo or redo restores (or would restore): ids in order of first occurrence in the change.
Fields§
§created: Vec<u64>Entities absent before the application, present after it.
removed: Vec<u64>Entities present before the application, absent after it.
modified: Vec<u64>Entities present both times whose content changed.
header: boolWhether the file header changed.
Trait Implementations§
Source§impl Clone for HistoryChange
impl Clone for HistoryChange
Source§fn clone(&self) -> HistoryChange
fn clone(&self) -> HistoryChange
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 HistoryChange
impl Debug for HistoryChange
impl Eq for HistoryChange
Source§impl From<Restored> for HistoryChange
impl From<Restored> for HistoryChange
Source§impl PartialEq for HistoryChange
impl PartialEq for HistoryChange
impl StructuralPartialEq for HistoryChange
Auto Trait Implementations§
impl Freeze for HistoryChange
impl RefUnwindSafe for HistoryChange
impl Send for HistoryChange
impl Sync for HistoryChange
impl Unpin for HistoryChange
impl UnsafeUnpin for HistoryChange
impl UnwindSafe for HistoryChange
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.