Trait EntryPath
pub trait EntryPath {
type Iter: Iterator<Item = usize>;
// Required method
fn step_iter(self) -> Self::Iter;
}Expand description
A path that can be used to navigate into a composite Value
or Expr.
Implemented for usize (single-step navigation) and &Projection
(multi-step navigation).
§Examples
ⓘ
use toasty_core::stmt::{Value, ValueRecord};
let record = Value::record_from_vec(vec![Value::from(1_i64), Value::from(2_i64)]);
// Navigate with a single usize step
let entry = record.entry(0_usize);