Skip to main content

LocatedError

Trait LocatedError 

Source
pub trait LocatedError {
    // Required method
    fn location(&self) -> (usize, usize);
}
Expand description

Error with a location info.

Required Methods§

Source

fn location(&self) -> (usize, usize)

get error happened location in source input.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl LocatedError for tui_markup::parser::Error<'_>

Source§

impl LocatedError for GeneratorInfallible

Source§

impl<GE: LocatedError> LocatedError for tui_markup::Error<'_, GE>