pub struct AnchorId(/* private fields */);Expand description
Stable identifier for a slot in the slot table.
Anchors provide positional stability: they maintain their identity even when the slot table is reorganized (e.g., during conditional rendering or group moves). This prevents effect states from being prematurely removed during recomposition.
Implementations§
Trait Implementations§
impl Copy for AnchorId
impl Eq for AnchorId
impl StructuralPartialEq for AnchorId
Auto Trait Implementations§
impl Freeze for AnchorId
impl RefUnwindSafe for AnchorId
impl Send for AnchorId
impl Sync for AnchorId
impl Unpin for AnchorId
impl UnwindSafe for AnchorId
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