pub trait ChildContainerSurface {
// Provided methods
fn child<T: Node>(&self, child: &T) -> &Self { ... }
fn children<I, C>(&self, children: I) -> &Self
where I: IntoIterator<Item = C>,
C: Into<Child> { ... }
}Expand description
Fluent retained-child composition for FlexBox-backed nodes and controls.
Composed controls may install presenter-owned children before user content;
child and children append without replacing those presenter children.
A caller can remove a child it owns through Node::remove_child without
disturbing the control-owned prefix. Controls with a distinct public content
surface override the hidden append adapter to match their FUI-AS counterpart.
Provided Methods§
fn child<T: Node>(&self, child: &T) -> &Self
fn children<I, C>(&self, children: I) -> &Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".