Struct json_sourcemap::ParseResult
source · pub struct ParseResult {
pub value: Value,
pub pointers: HashMap<String, LocationMap>,
}
Fields§
§value: Value
§pointers: HashMap<String, LocationMap>
Implementations§
source§impl ParseResult
impl ParseResult
sourcepub fn get_location(&self, ptr: &str) -> Option<&LocationMap>
pub fn get_location(&self, ptr: &str) -> Option<&LocationMap>
Get the location of the json pointer
Trait Implementations§
source§impl Clone for ParseResult
impl Clone for ParseResult
source§fn clone(&self) -> ParseResult
fn clone(&self) -> ParseResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more