ChildrenExt

Trait ChildrenExt 

Source
pub trait ChildrenExt: Sized {
    // Required method
    fn get_children(&mut self) -> &mut Vec<Element>;

    // Provided methods
    fn children(self, children: impl IntoIterator<Item = Element>) -> Self { ... }
    fn maybe_child<C: IntoElement>(self, child: Option<C>) -> Self { ... }
    fn child<C: IntoElement>(self, child: C) -> Self { ... }
}

Required Methods§

Source

fn get_children(&mut self) -> &mut Vec<Element>

Provided Methods§

Source

fn children(self, children: impl IntoIterator<Item = Element>) -> Self

Source

fn maybe_child<C: IntoElement>(self, child: Option<C>) -> Self

Source

fn child<C: IntoElement>(self, child: C) -> Self

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.

Implementors§