pub struct LiveError {
pub line: usize,
pub column: usize,
pub length: usize,
pub message: String,
}Expand description
Something wrong at a place of the program: its line and column (both from 1), how many characters it covers, and what is wrong.
Fields§
§line: usizeThe line, from 1.
column: usizeThe column of the first character, from 1.
length: usizeHow many characters it covers, at least 1.
message: StringWhat is wrong.
Implementations§
Trait Implementations§
impl Eq for LiveError
Source§impl Error for LiveError
impl Error for LiveError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for LiveError
Auto Trait Implementations§
impl Freeze for LiveError
impl RefUnwindSafe for LiveError
impl Send for LiveError
impl Sync for LiveError
impl Unpin for LiveError
impl UnsafeUnpin for LiveError
impl UnwindSafe for LiveError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more