pub enum Slot {
Indexed(IndexedSlot),
Index(i32),
Custom(Rc<dyn Any>),
}Expand description
Dart’s Object? slot on an element: how the parent tells its children apart.
Variants§
Indexed(IndexedSlot)
A child of a multi-child render object element.
Index(i32)
The index of a child of a lazily built sliver (SliverMultiBoxAdaptorElement).
Custom(Rc<dyn Any>)
A parent-defined value, compared by identity as an arbitrary Dart object would be.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Slot
impl !Send for Slot
impl !Sync for Slot
impl !UnwindSafe for Slot
impl Forget for Slot
impl Freeze for Slot
impl Move for Slot
impl Unpin for Slot
impl UnsafeUnpin for Slotwhere
NonZeroU32Inner: UnsafeUnpin,
&'static ElementVTable: UnsafeUnpin,
*const RcInner<dyn Any> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Any>>: UnsafeUnpin,
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