Skip to main content

effect_layer_build

Function effect_layer_build 

Source
pub fn effect_layer_build<H: UiHost, B>(
    mode: EffectMode,
    chain: EffectChain,
    build: B,
) -> UiBuilder<EffectLayerBoxBuild<H, B>>
where B: FnOnce(&mut ElementContext<'_, H>, &mut Vec<AnyElement>),
Expand description

Variant of effect_layer that avoids iterator borrow pitfalls by collecting into a sink.