pub struct UpdateListenerPayload {
pub dirty_elements: Vec<(NodeKey, bool)>,
pub dirty_leaves: Vec<NodeKey>,
pub normalized_nodes: Vec<NodeKey>,
pub tags: Vec<String>,
pub editor_state: EditorState,
pub prev_editor_state: EditorState,
pub mutated_nodes: Option<MutatedNodes>,
}Expand description
What an update listener receives (UpdateListenerPayload). The dirty
nodes are in the order they were marked; each dirty element says whether
it was marked itself (true) or only because a descendant was.
Fields§
§dirty_elements: Vec<(NodeKey, bool)>§dirty_leaves: Vec<NodeKey>§normalized_nodes: Vec<NodeKey>§editor_state: EditorState§prev_editor_state: EditorState§mutated_nodes: Option<MutatedNodes>mutatedNodes: what the reconciler did to the nodes, by node type,
when it ran (the editor has a root element and something was
dirty), or None. Empty unless a mutation listener is registered.
Trait Implementations§
Source§impl Clone for UpdateListenerPayload
impl Clone for UpdateListenerPayload
Auto Trait Implementations§
impl !RefUnwindSafe for UpdateListenerPayload
impl !Send for UpdateListenerPayload
impl !Sync for UpdateListenerPayload
impl !UnwindSafe for UpdateListenerPayload
impl Forget for UpdateListenerPayload
impl Freeze for UpdateListenerPayload
impl Move for UpdateListenerPayload
impl Unpin for UpdateListenerPayload
impl UnsafeUnpin for UpdateListenerPayload
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