pub trait CollectionWidget<'a, Message: 'a>: Widget<Message, Theme, Renderer>where
    Self: Sized,{
    // Required methods
    fn append<E>(self, other: &mut Vec<E>) -> Self
       where E: Into<Element<'a, Message>>;
    fn push(self, element: impl Into<Element<'a, Message>>) -> Self;
    // Provided methods
    fn extend<E>(self, iterator: impl Iterator<Item = E>) -> Self
       where E: Into<Element<'a, Message>> { ... }
    fn push_maybe(
        self,
        element: Option<impl Into<Element<'a, Message>>>,
    ) -> Self { ... }
}Expand description
Additional methods for the [Column] and [Row] widgets.
Required Methods§
Provided Methods§
Sourcefn extend<E>(self, iterator: impl Iterator<Item = E>) -> Self
 
fn extend<E>(self, iterator: impl Iterator<Item = E>) -> Self
Appends all elements in an iterator to the widget.
Sourcefn push_maybe(self, element: Option<impl Into<Element<'a, Message>>>) -> Self
 
fn push_maybe(self, element: Option<impl Into<Element<'a, Message>>>) -> Self
Conditionally pushes an element to the widget.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.