pub trait SlotsControl:
NativeControl
+ SlotIndex<Self::Slot>
+ Sized {
type Slot: Copy;
// Provided methods
fn slot(self, slot: Self::Slot, view: impl Into<View>) -> View { ... }
fn collection_slot<T>(
self,
slot: Self::Slot,
children: impl IntoIterator<Item = T>,
) -> View
where T: Into<KeyedView> { ... }
fn slots(
self,
slots: impl IntoIterator<Item = SlotView<Self::Slot>>,
) -> View { ... }
}Expand description
Assigns single views or keyed collections to a control’s typed slots.
Required Associated Types§
Provided Methods§
fn slot(self, slot: Self::Slot, view: impl Into<View>) -> View
fn collection_slot<T>( self, slot: Self::Slot, children: impl IntoIterator<Item = T>, ) -> View
fn slots(self, slots: impl IntoIterator<Item = SlotView<Self::Slot>>) -> View
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".