Struct sixtyfps_compilerlib::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
pub fn new_sub_component(
public_component: &'a PublicComponent,
sub_component: &'a SubComponent,
generator_state: T,
parent: Option<ParentCtx<'a, T>>
) -> Self
Trait Implementations
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for EvaluationContext<'a, T>
impl<'a, T> !Send for EvaluationContext<'a, T>
impl<'a, T> !Sync for EvaluationContext<'a, T>
impl<'a, T> Unpin for EvaluationContext<'a, T> where
T: Unpin,
impl<'a, T> !UnwindSafe for EvaluationContext<'a, T>
Blanket Implementations
Mutably borrows from an owned value. Read more