Home
last modified time | relevance | path

Searched refs:ContextElement (Results 1 – 1 of 1) sorted by relevance

/external/rust/crates/tinytemplate/src/
Dtemplate.rs14 enum ContextElement<'render, 'template> { enum
37 context_stack: Vec<ContextElement<'render, 'template>>,
45 ContextElement::Object(obj) => return self.lookup_in(path, obj), in lookup()
46 ContextElement::Named(name, obj) => { in lookup()
51 ContextElement::Iteration(name, obj, _, _, _) => { in lookup()
87 ContextElement::Iteration(_, _, index, length, _) => return Ok((*index, *length)), in lookup_index()
99 Some(ContextElement::Object(obj)) => Ok(obj), in lookup_root()
161 context_stack: vec![ContextElement::Object(context)], in render_into()
246 .push(ContextElement::Named(name, context_value)); in render_into()
262 render_context.context_stack.push(ContextElement::Iteration( in render_into()
[all …]