json-utils 0.3.5

An utility crate for working with JSON and JSON-schemas
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::Path;
use super::PathComponent;

impl<'a> PathComponent<'a> for &'a String {
    fn as_str_slice(&self) -> &str {
        self
    }
}

impl<'a> Path<'a> for &'a Vec<String> {
    type Item = &'a String;
    type Iter = std::slice::Iter<'a, String>;

    fn path(self) -> Self::Iter {
        self.iter()
    }
}