ChildrenExt

Trait ChildrenExt 

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>(self, child: Option<C>) -> Self
       where C: IntoElement { ... }
    fn child<C>(self, child: C) -> Self
       where C: IntoElement { ... }
}

Required Methods§

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

Provided Methods§

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

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

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.

Implementations on Foreign Types§

§

impl ChildrenExt for Accordion

§

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

§

impl ChildrenExt for Button

§

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

§

impl ChildrenExt for ButtonSegment

§

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

§

impl ChildrenExt for Canvas

§

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

§

impl ChildrenExt for Card

§

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

§

impl ChildrenExt for Chip

§

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

§

impl ChildrenExt for CursorArea

§

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

§

impl ChildrenExt for Draggable

§

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

§

impl ChildrenExt for DraggableCanvas

§

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

§

impl ChildrenExt for FloatingTab

§

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

§

impl ChildrenExt for ImageViewer

§

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

§

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

§

impl ChildrenExt for Menu

§

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

§

impl ChildrenExt for MenuButton

§

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

§

impl ChildrenExt for MenuContainer

§

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

§

impl ChildrenExt for MenuItem

§

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

§

impl ChildrenExt for NativeRouter

§

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

§

impl ChildrenExt for OverflowedContent

§

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

§

impl ChildrenExt for Popup

§

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

§

impl ChildrenExt for PopupButtons

§

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

§

impl ChildrenExt for PopupContent

§

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

§

impl ChildrenExt for ResizablePanel

§

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

§

impl ChildrenExt for ScrollView

§

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

§

impl ChildrenExt for SegmentedButton

§

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

§

impl ChildrenExt for Select

§

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

§

impl ChildrenExt for SideBarItem

§

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

§

impl ChildrenExt for SubMenu

§

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

§

impl ChildrenExt for Table

§

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

§

impl ChildrenExt for TableBody

§

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

§

impl ChildrenExt for TableCell

§

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

§

impl ChildrenExt for TableHead

§

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

§

impl ChildrenExt for TableRow

§

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

§

impl ChildrenExt for Tile

§

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

§

impl ChildrenExt for TooltipContainer

§

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

§

impl<T> ChildrenExt for Portal<T>

§

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

Implementors§

§

impl ChildrenExt for Rect

§

impl ChildrenExt for Image