anathema_value_resolver/
context.rs1use anathema_state::States;
2use anathema_templates::Globals;
3
4use crate::AttributeStorage;
5use crate::scope::Scope;
6
7pub struct ResolverCtx<'frame, 'bp> {
8 pub(crate) scope: &'frame Scope<'frame, 'bp>,
9 pub(crate) globals: &'bp Globals,
10 pub(crate) states: &'frame States,
11 pub(crate) attribute_storage: &'frame AttributeStorage<'bp>,
12}
13
14impl<'frame, 'bp> ResolverCtx<'frame, 'bp> {
15 pub fn new(
16 globals: &'bp Globals,
17 scope: &'frame Scope<'frame, 'bp>,
18 states: &'frame States,
19 attribute_storage: &'frame AttributeStorage<'bp>,
20 ) -> Self {
21 Self {
22 scope,
23 globals,
24 states,
25 attribute_storage,
26 }
27 }
28}