[][src]Trait json_spanned_value::ErrorExt

pub trait ErrorExt {
    fn offset_within(&self, text: &str) -> Option<usize>;
}

Utility methods extending serde_json::Error

Required methods

fn offset_within(&self, text: &str) -> Option<usize>

Zero-based byte offset at which the error was detected. Returns None if this reaches or exceeds text.len().

Loading content...

Implementations on Foreign Types

impl ErrorExt for Error[src]

Loading content...

Implementors

Loading content...