pub struct LifecycleEventResult {
pub events: Vec<SyntheticEvent>,
pub node_id_mapping: OrderedMap<NodeId, NodeId>,
}Expand description
Result of lifecycle event detection with reconciliation.
Contains both the generated lifecycle events and a mapping from old to new node IDs for state migration (focus, scroll, etc.).
Fields§
§events: Vec<SyntheticEvent>Lifecycle events (Mount, Unmount, Resize, Update)
node_id_mapping: OrderedMap<NodeId, NodeId>Maps old NodeId -> new NodeId for matched nodes. Use this to migrate focus, scroll state, and other node-specific state.
Trait Implementations§
Source§impl Clone for LifecycleEventResult
impl Clone for LifecycleEventResult
Source§fn clone(&self) -> LifecycleEventResult
fn clone(&self) -> LifecycleEventResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LifecycleEventResult
impl Debug for LifecycleEventResult
Source§impl Default for LifecycleEventResult
impl Default for LifecycleEventResult
Source§fn default() -> LifecycleEventResult
fn default() -> LifecycleEventResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LifecycleEventResult
impl RefUnwindSafe for LifecycleEventResult
impl Send for LifecycleEventResult
impl Sync for LifecycleEventResult
impl Unpin for LifecycleEventResult
impl UnsafeUnpin for LifecycleEventResult
impl UnwindSafe for LifecycleEventResult
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