EntryPath

Trait EntryPath 

Source
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);

Required Associated Types§

Source

type Iter: Iterator<Item = usize>

The iterator type yielding each step index.

Required Methods§

Source

fn step_iter(self) -> Self::Iter

Returns an iterator over the step indices.

Implementations on Foreign Types§

Source§

impl EntryPath for usize

Implementors§

Source§

impl<'a> EntryPath for &'a Projection

Source§

type Iter = Iter<'a>