Skip to main content

ChildrenControl

Trait ChildrenControl 

Source
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§

Source

fn children(self, children: impl IntoViews) -> View

Source

fn keyed_children<T>(self, children: impl IntoIterator<Item = T>) -> View
where T: Into<KeyedView>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§