pub struct IndexedSlot {
pub value: Option<AnyElement>,
pub index: usize,
}Expand description
A value for Element.slot used for children of MultiChildRenderObjectElements.
A slot for a MultiChildRenderObjectElement consists of an index
identifying where the child occurring at this slot is located in the
MultiChildRenderObjectElement’s child list and an arbitrary value that
can further define where the child occurring at this slot fits in its parent’s child list.
Fields§
§value: Option<AnyElement>Information to define where the child occurring at this slot fits in its parent’s child list.
index: usizeThe index of this slot in the parent’s child list.
Trait Implementations§
Source§impl Clone for IndexedSlot
impl Clone for IndexedSlot
Source§impl Debug for IndexedSlot
impl Debug for IndexedSlot
impl Eq for IndexedSlot
Source§impl PartialEq for IndexedSlot
impl PartialEq for IndexedSlot
impl StructuralPartialEq for IndexedSlot
Auto Trait Implementations§
impl Forget for IndexedSlot
impl Freeze for IndexedSlot
impl Move for IndexedSlot
impl RefUnwindSafe for IndexedSlot
impl Send for IndexedSlot
impl Sync for IndexedSlot
impl Unpin for IndexedSlot
impl UnsafeUnpin for IndexedSlotwhere
NonZeroU32Inner: UnsafeUnpin,
&'static ElementVTable: UnsafeUnpin,
impl UnwindSafe for IndexedSlot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.