Skip to main content

single

Function single 

Source
pub fn single<'a, H: UiHost + 'a, Cx, T>(cx: &mut Cx, child: T) -> Elements
where Cx: ElementContextAccess<'a, H>, T: IntoUiElement<H>,
Expand description

Late-lands a single typed child into Ui / Elements.

This is the narrow default-path helper for render roots or wrapper closures that only need to return one already-typed child without spelling ui::children![cx; child].into().