pub struct Set {
pub path: String,
pub change: Change,
pub origin: Origin,
pub force: bool,
pub gesture: Option<GestureId>,
pub if_seq: Option<u64>,
pub untracked: bool,
pub by: Option<OwnerId>,
pub merge: Option<String>,
pub history: Option<ScopeId>,
}Expand description
A write.
Fields§
§path: String§change: Change§origin: Origin§force: boolPast the soft range, up to the hard one.
gesture: Option<GestureId>§if_seq: Option<u64>Only if the value has not changed since this sequence number.
untracked: boolNot an undo step (state the application keeps for itself, such as the window’s place).
by: Option<OwnerId>The scope issuing it (a plugin, the plugin whose command runs, the
framework); None: the one enter_scope set, else the
application’s own code, not checked.
merge: Option<String>Repeats with the same key are one undo step while they come less
than a second apart (crate::history::merges).
history: Option<ScopeId>The history its step goes to; None: the one enter_history
set, else APP.
Implementations§
Source§impl Set
impl Set
pub fn new(path: &str, change: Change, origin: Origin) -> Self
Sourcepub fn merge(self, key: &str) -> Self
pub fn merge(self, key: &str) -> Self
Merged with the previous step when it carries the same key, comes from the same origin less than a second before, and the history was not sealed since (a held arrow, a wheel’s notches).
Sourcepub fn by(self, scope: &OwnerId) -> Self
pub fn by(self, scope: &OwnerId) -> Self
Issued by this scope (checked against the path’s writers).