pub trait ComposeBuilder {
// Required method
fn build(self, ctx: &BuildCtx<'_>) -> Widget;
}Expand description
Trait to build a compose widget into widget tree with BuildCtx in the
build phase. You should not implement this trait directly, implement
Compose trait instead.
Required Methods§
Trait Implementations§
Source§impl<W: ComposeBuilder> FromAnother<W, &dyn ComposeBuilder> for Widget
impl<W: ComposeBuilder> FromAnother<W, &dyn ComposeBuilder> for Widget
fn from_another(value: W, ctx: &BuildCtx<'_>) -> Self
Blanket Implementations§
Source§impl<P, C> SingleWithChild<C, dyn ComposeBuilder> for Pwhere
P: SingleParent,
C: ComposeBuilder,
impl<P, C> SingleWithChild<C, dyn ComposeBuilder> for Pwhere
P: SingleParent,
C: ComposeBuilder,
type Target = Widget
fn with_child( self, child: C, ctx: &BuildCtx<'_>, ) -> <P as SingleWithChild<C, dyn ComposeBuilder>>::Target
Source§impl<P, C> SingleWithChild<Option<C>, dyn ComposeBuilder> for Pwhere
P: SingleParent + RenderBuilder,
C: ComposeBuilder,
impl<P, C> SingleWithChild<Option<C>, dyn ComposeBuilder> for Pwhere
P: SingleParent + RenderBuilder,
C: ComposeBuilder,
type Target = Widget
fn with_child( self, child: Option<C>, ctx: &BuildCtx<'_>, ) -> <P as SingleWithChild<Option<C>, dyn ComposeBuilder>>::Target
Source§impl<P, V, PP> SingleWithChild<PP, &dyn ComposeBuilder> for Pwhere
P: SingleParent,
PP: InnerPipe<Value = Option<V>>,
V: ComposeBuilder + 'static,
impl<P, V, PP> SingleWithChild<PP, &dyn ComposeBuilder> for Pwhere
P: SingleParent,
PP: InnerPipe<Value = Option<V>>,
V: ComposeBuilder + 'static,
type Target = Widget
fn with_child( self, child: PP, ctx: &BuildCtx<'_>, ) -> <P as SingleWithChild<PP, &dyn ComposeBuilder>>::Target
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".