[−][src]Enum undo::Signal
The signal sent when the record, the history, or the target changes.
When one of these states changes, they will send a corresponding signal to the user.
For example, if the record can no longer redo any commands, it sends a Redo(false)
signal to tell the user.
Variants
Undo(bool)
Says if the record can undo.
This signal will be emitted when the records ability to undo changes.
Redo(bool)
Says if the record can redo.
This signal will be emitted when the records ability to redo changes.
Saved(bool)
Says if the target is in a saved state.
This signal will be emitted when the record enters or leaves its targets saved state.
Says if the current command has changed.
This signal will be emitted when the current command has changed. This includes
when two commands have been merged, in which case old == new
.
Says if the current branch has changed.
This is currently only emitted from History
.
Trait Implementations
impl Clone for Signal
[src]
impl Copy for Signal
[src]
impl Eq for Signal
[src]
impl Ord for Signal
[src]
fn cmp(&self, other: &Signal) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Signal> for Signal
[src]
impl PartialOrd<Signal> for Signal
[src]
fn partial_cmp(&self, other: &Signal) -> Option<Ordering>
[src]
fn lt(&self, other: &Signal) -> bool
[src]
fn le(&self, other: &Signal) -> bool
[src]
fn gt(&self, other: &Signal) -> bool
[src]
fn ge(&self, other: &Signal) -> bool
[src]
impl Debug for Signal
[src]
impl Hash for Signal
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl StructuralPartialEq for Signal
[src]
impl StructuralEq for Signal
[src]
Auto Trait Implementations
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnwindSafe for Signal
impl RefUnwindSafe for Signal
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,