vrl/path/
concat.rs

1use super::ValuePath;
2
3#[derive(Clone)]
4pub struct PathConcat<A, B> {
5    pub a: A,
6    pub b: B,
7}
8
9impl<'a, A: ValuePath<'a>, B: ValuePath<'a>> ValuePath<'a> for PathConcat<A, B> {
10    type Iter = std::iter::Chain<A::Iter, B::Iter>;
11
12    fn segment_iter(&self) -> Self::Iter {
13        self.a.segment_iter().chain(self.b.segment_iter())
14    }
15}