pub trait ChildrenControl: NativeControl + Sized {
// Provided methods
fn children(self, children: impl IntoViews) -> View { ... }
fn keyed_children<T>(self, children: impl IntoIterator<Item = T>) -> View
where T: Into<KeyedView> { ... }
}Expand description
Assigns children to a native container.
children uses positional identity for static shapes.
keyed_children preserves identity by key for dynamic collections.
Provided Methods§
fn children(self, children: impl IntoViews) -> View
fn keyed_children<T>(self, children: impl IntoIterator<Item = T>) -> View
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".