pub struct StateSlot {
pub element_id: ElementId,
pub slot_index: usize,
}Expand description
Public legacy slot identity within the root tree namespace.
Slot indices are caller-assigned usize values with no reserved sentinel.
The same element and index must always be requested with the same concrete
value type while mounted.
§Examples
use ailloli_ui_core::ElementId;
use ailloli_ui_runtime::app::StateSlot;
let slot = StateSlot { element_id: ElementId(3), slot_index: 1 };
assert_eq!(slot.slot_index, 1);Fields§
§element_id: ElementIdTree-local retained element identity.
slot_index: usizePositional state-hook slot within that element.
Trait Implementations§
impl Copy for StateSlot
impl Eq for StateSlot
impl StructuralPartialEq for StateSlot
Auto Trait Implementations§
impl Freeze for StateSlot
impl RefUnwindSafe for StateSlot
impl Send for StateSlot
impl Sync for StateSlot
impl Unpin for StateSlot
impl UnwindSafe for StateSlot
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.