Trait gpui2::ParentElement

source ·
pub trait ParentElement {
    // Required method
    fn children_mut(&mut self) -> &mut SmallVec<[AnyElement; 2]>;

    // Provided methods
    fn child(self, child: impl RenderOnce) -> Self
       where Self: Sized { ... }
    fn children(
        self,
        children: impl IntoIterator<Item = impl RenderOnce>
    ) -> Self
       where Self: Sized { ... }
}

Required Methods§

source

fn children_mut(&mut self) -> &mut SmallVec<[AnyElement; 2]>

Provided Methods§

source

fn child(self, child: impl RenderOnce) -> Selfwhere Self: Sized,

source

fn children(self, children: impl IntoIterator<Item = impl RenderOnce>) -> Selfwhere Self: Sized,

Implementors§