Home
last modified time | relevance | path

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

/external/rust/crates/tinytemplate/src/
Dcompiler.rs9 use instruction::{Instruction, Path, PathStep};
191 Ok(n) => PathStep::Index(s, n), in parse_path()
192 Err(_) => PathStep::Name(s), in parse_path()
196 Ok(vec![PathStep::Name(text)]) in parse_path()
441 assert_eq!(&Value(vec![PathStep::Name("foobar")]), &instructions[0]); in test_compile_value()
450 &FormattedValue(vec![PathStep::Name("foobar")], "my_formatter"), in test_compile_value_with_formatter()
461 &Value(vec![PathStep::Name("foo"), PathStep::Name("bar")]), in test_dotted_path()
473 PathStep::Name("foo"), in test_indexed_path()
474 PathStep::Index("0", 0), in test_indexed_path()
475 PathStep::Name("bar") in test_indexed_path()
[all …]
Dinstruction.rs14 pub(crate) enum PathStep<'template> { enum
18 impl<'template> Deref for PathStep<'template> { implementation
23 PathStep::Name(s) => s, in deref()
24 PathStep::Index(s, _) => s, in deref()
30 pub(crate) type Path<'template> = Vec<PathStep<'template>>;
33 pub(crate) type PathSlice<'a, 'template> = &'a [PathStep<'template>];
Dtemplate.rs6 use instruction::{Instruction, PathSlice, PathStep};
66 if let PathStep::Index(_, n) = step { in lookup_in()
254 PathStep::Name("@root") => render_context.lookup_root()?, in render_into()
255 PathStep::Name(other) if other.starts_with('@') => { in render_into()