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 { ... }
}Expand description
Trait for composing child elements.
Required Methods§
fn get_children(&mut self) -> &mut Vec<Element>
fn get_children(&mut self) -> &mut Vec<Element>
Provided Methods§
fn children(self, children: impl IntoIterator<Item = Element>) -> Self
fn children(self, children: impl IntoIterator<Item = Element>) -> Self
fn maybe_child<C>(self, child: Option<C>) -> Selfwhere
C: IntoElement,
fn maybe_child<C>(self, child: Option<C>) -> Selfwhere
C: IntoElement,
fn child<C>(self, child: C) -> Selfwhere
C: IntoElement,
fn child<C>(self, child: C) -> Selfwhere
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§
impl ChildrenExt for CameraViewer
impl ChildrenExt for Accordion
impl ChildrenExt for Attached
impl ChildrenExt for Button
impl ChildrenExt for ButtonSegment
impl ChildrenExt for Canvas
impl ChildrenExt for Card
impl ChildrenExt for Chip
impl ChildrenExt for CursorArea
impl ChildrenExt for Draggable
impl ChildrenExt for DraggableCanvas
impl ChildrenExt for FloatingTab
impl ChildrenExt for ImageViewer
impl ChildrenExt for Link
impl ChildrenExt for Menu
impl ChildrenExt for MenuButton
impl ChildrenExt for MenuContainer
impl ChildrenExt for MenuItem
impl ChildrenExt for OverflowedContent
impl ChildrenExt for Popup
impl ChildrenExt for PopupButtons
impl ChildrenExt for PopupContent
impl ChildrenExt for ResizableDraggable
impl ChildrenExt for ResizablePanel
impl ChildrenExt for ScrollView
impl ChildrenExt for SegmentedButton
impl ChildrenExt for Select
impl ChildrenExt for SideBarItem
impl ChildrenExt for Skeleton
impl ChildrenExt for SubMenu
impl ChildrenExt for Table
impl ChildrenExt for TableBody
impl ChildrenExt for TableCell
impl ChildrenExt for TableHead
impl ChildrenExt for TableRow
impl ChildrenExt for Tile
impl ChildrenExt for TooltipContainer
impl ChildrenExt for Ripple
impl ChildrenExt for RippleButton
impl ChildrenExt for RippleFloatingTab
impl ChildrenExt for RippleMenuItem
impl ChildrenExt for RippleSideBarItem
impl ChildrenExt for RippleTile
impl ChildrenExt for Paragraph
Children added to a Paragraph flow inline at the point they were added, each laid out at
its own measured size, so give them an explicit width and height.