Struct i_slint_compiler::llr::EvaluationContext
source · pub struct EvaluationContext<'a, T = ()> {
pub public_component: &'a PublicComponent,
pub current_sub_component: Option<&'a SubComponent>,
pub current_global: Option<&'a GlobalComponent>,
pub generator_state: T,
pub parent: Option<ParentCtx<'a, T>>,
pub argument_types: &'a [Type],
}
Fields§
§public_component: &'a PublicComponent
§current_sub_component: Option<&'a SubComponent>
§current_global: Option<&'a GlobalComponent>
§generator_state: T
path to access the public_component (so one can access the globals).
e.g: _self
in case we already are the root
parent: Option<ParentCtx<'a, T>>
The repeater parent
argument_types: &'a [Type]
The callback argument types
Implementations§
source§impl<'a, T> EvaluationContext<'a, T>
impl<'a, T> EvaluationContext<'a, T>
pub fn new_sub_component( public_component: &'a PublicComponent, sub_component: &'a SubComponent, generator_state: T, parent: Option<ParentCtx<'a, T>> ) -> Self
pub fn new_global( public_component: &'a PublicComponent, global: &'a GlobalComponent, generator_state: T ) -> Self
Trait Implementations§
source§impl<'a, T: Clone> Clone for EvaluationContext<'a, T>
impl<'a, T: Clone> Clone for EvaluationContext<'a, T>
source§fn clone(&self) -> EvaluationContext<'a, T>
fn clone(&self) -> EvaluationContext<'a, T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more