pub struct Added<T, W> { /* private fields */ }
Expand description
This Controller
widget responds to LifeCycle::WidgetAdded
event
with the provided closure. Pass this and a child widget to ControllerHost
to respond to the event when the child widget is added to the widget tree.
This is also available, for convenience, as an on_added
method
via WidgetExt
.
Implementations§
Trait Implementations§
§impl<T, W> Controller<T, W> for Added<T, W>where
T: Data,
W: Widget<T>,
impl<T, W> Controller<T, W> for Added<T, W>where T: Data, W: Widget<T>,
Auto Trait Implementations§
impl<T, W> !RefUnwindSafe for Added<T, W>
impl<T, W> !Send for Added<T, W>
impl<T, W> !Sync for Added<T, W>
impl<T, W> Unpin for Added<T, W>
impl<T, W> !UnwindSafe for Added<T, W>
Blanket Implementations§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.