pub struct WidgetContext<'a, 'b> {
    pub id: &'a WidgetId,
    pub idref: Option<&'a WidgetRef>,
    pub key: &'a str,
    pub props: &'a mut Props,
    pub shared_props: &'a mut Props,
    pub state: State<'a>,
    pub animator: &'a AnimatorStates,
    pub life_cycle: &'a mut WidgetLifeCycle,
    pub named_slots: HashMap<String, WidgetNode, RandomState>,
    pub listed_slots: Vec<WidgetNode, Global>,
    pub process_context: &'a mut ProcessContext<'b>,
}

Fields

id: &'a WidgetIdidref: Option<&'a WidgetRef>key: &'a strprops: &'a mut Propsshared_props: &'a mut Propsstate: State<'a>animator: &'a AnimatorStateslife_cycle: &'a mut WidgetLifeCyclenamed_slots: HashMap<String, WidgetNode, RandomState>listed_slots: Vec<WidgetNode, Global>process_context: &'a mut ProcessContext<'b>

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.