pub struct SpecError {
pub line: usize,
pub column: usize,
pub length: usize,
pub message: String,
}Expand description
Something wrong at a place of a source text.
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 SpecError
impl StructuralPartialEq for SpecError
Auto Trait Implementations§
impl Freeze for SpecError
impl RefUnwindSafe for SpecError
impl Send for SpecError
impl Sync for SpecError
impl Unpin for SpecError
impl UnsafeUnpin for SpecError
impl UnwindSafe for SpecError
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