pub struct Step {
pub id: u64,
pub label: String,
pub origin: Origin,
pub changes: Vec<(String, Value, Value)>,
pub at: f64,
pub place: Vec<Entry>,
pub merge: Option<String>,
pub group: Option<u64>,
}Expand description
One undo step.
Fields§
§id: u64Unique in the store, from 1.
label: String§origin: Origin§changes: Vec<(String, Value, Value)>Path, old value, new value, in the order written.
at: f64When it was made (its last merged write), on the store’s clock.
place: Vec<Entry>The place of the context stack it was made in.
Experimental: may change in any release
(docs/stability.md).
merge: Option<String>Its merge key, when its writes merge with the next.
group: Option<u64>The gesture or group it was made of.
Trait Implementations§
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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