pub struct Entry<E> { /* private fields */ }Expand description
Wrapper around an Edit command that contains additional metadata.
Implementations§
Source§impl<E> Entry<E>
impl<E> Entry<E>
Sourcepub fn st_of_edit(&self) -> SystemTime
pub fn st_of_edit(&self) -> SystemTime
Returns the time the edit method was called.
Sourcepub fn st_of_undo(&self) -> SystemTime
pub fn st_of_undo(&self) -> SystemTime
Returns the last time the undo method was called.
Returns UNIX_EPOCH if it has never been called.
Sourcepub fn st_of_redo(&self) -> SystemTime
pub fn st_of_redo(&self) -> SystemTime
Returns the last time the redo method was called.
Returns UNIX_EPOCH if it has never been called.
Sourcepub fn st_of_latest(&self) -> SystemTime
pub fn st_of_latest(&self) -> SystemTime
Returns the largest of the edit, undo, and redo times.
Trait Implementations§
Source§impl<'de, E> Deserialize<'de> for Entry<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for Entry<E>where
E: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<E> Freeze for Entry<E>where
E: Freeze,
impl<E> RefUnwindSafe for Entry<E>where
E: RefUnwindSafe,
impl<E> Send for Entry<E>where
E: Send,
impl<E> Sync for Entry<E>where
E: Sync,
impl<E> Unpin for Entry<E>where
E: Unpin,
impl<E> UnwindSafe for Entry<E>where
E: UnwindSafe,
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