vrl 0.32.0

Vector Remap Language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::ValuePath;

#[derive(Clone)]
pub struct PathConcat<A, B> {
    pub a: A,
    pub b: B,
}

impl<'a, A: ValuePath<'a>, B: ValuePath<'a>> ValuePath<'a> for PathConcat<A, B> {
    type Iter = std::iter::Chain<A::Iter, B::Iter>;

    fn segment_iter(&self) -> Self::Iter {
        self.a.segment_iter().chain(self.b.segment_iter())
    }
}