json_utils/query/path/
path_for_vec_string.rs

1use super::Path;
2use super::PathComponent;
3
4impl<'a> PathComponent<'a> for &'a String {
5    fn as_str_slice(&self) -> &str {
6        self
7    }
8}
9
10impl<'a> Path<'a> for &'a Vec<String> {
11    type Item = &'a String;
12    type Iter = std::slice::Iter<'a, String>;
13
14    fn path(self) -> Self::Iter {
15        self.iter()
16    }
17}