pub enum Op {
Add {
parent: String,
before: Option<String>,
node: WireNode,
},
Set {
id: String,
props: Map<String, Value>,
},
Text {
id: String,
mode: TextMode,
text: String,
},
Splice {
id: String,
at: usize,
del: usize,
text: String,
},
Move {
id: String,
parent: String,
before: Option<String>,
},
Del {
id: String,
},
Settle {
id: String,
},
Focus {
id: Option<String>,
},
Reveal {
id: String,
at: RevealAt,
},
Scroll {
id: String,
by: ScrollBy,
},
Suspend,
Resume,
}Expand description
One frame op.
Variants§
Add
["add", id, parent, before|null, node].
Fields
Set
["set", id, props]: merge props shallowly; null deletes.
Text
["text", id, mode, string].
Splice
["splice", id, at, del, string] in UTF-16 units.
Fields
Move
["move", id, parent, before|null].
Fields
Del
["del", id].
Settle
["settle", id]: a hint that the subtree won’t change soon.
Focus
["focus", id|null]: the field owning the caret.
Reveal
["reveal", id, at].
Scroll
["scroll", id, by].
Suspend
["suspend"]: hand the pane back to the grid.
Resume
["resume"]: take the pane again.
Trait Implementations§
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnsafeUnpin for Op
impl UnwindSafe for Op
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