pub struct LifecycleEventResult {
pub events: Vec<SyntheticEvent>,
pub node_id_mapping: FastHashMap<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: FastHashMap<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 · 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more