Trait ErrorExt

Source
pub trait ErrorExt {
    // Required method
    fn offset_within(&self, text: &str) -> Option<usize>;
}
Expand description

Utility methods extending serde_json::Error

Required Methods§

Source

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().

Implementations on Foreign Types§

Source§

impl ErrorExt for Error

Source§

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

Implementors§