Trait ChildrenExt

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

    // Provided methods
    fn children_iter<I>(self, children_iter: I) -> Self
       where I: Iterator<Item = Element> { ... }
    fn children<V>(self, children: V) -> Self
       where V: Into<Vec<Element>> { ... }
    fn maybe_child<C>(self, child: Option<C>) -> Self
       where C: IntoElement { ... }
    fn child<C>(self, child: C) -> Self
       where C: IntoElement { ... }
}

Required Methods§

Source

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

Provided Methods§

Source

fn children_iter<I>(self, children_iter: I) -> Self
where I: Iterator<Item = Element>,

Source

fn children<V>(self, children: V) -> Self
where V: Into<Vec<Element>>,

Source

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

Source

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

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§