pub enum PositionError {
LineOutOfRange {
line: u32,
lines: usize,
},
ColumnOutOfRange {
line: u32,
column: u32,
bytes: usize,
},
NotACharBoundary {
line: u32,
column: u32,
},
}Expand description
A position that could not be converted, with the reason an agent can act on.
Variants§
LineOutOfRange
The file has no such line.
ColumnOutOfRange
The line is shorter than the column claims.
NotACharBoundary
The byte column falls inside a multi-byte character.
Trait Implementations§
Source§impl Debug for PositionError
impl Debug for PositionError
Source§impl Display for PositionError
impl Display for PositionError
impl Eq for PositionError
Source§impl PartialEq for PositionError
impl PartialEq for PositionError
impl StructuralPartialEq for PositionError
Auto Trait Implementations§
impl Freeze for PositionError
impl RefUnwindSafe for PositionError
impl Send for PositionError
impl Sync for PositionError
impl Unpin for PositionError
impl UnsafeUnpin for PositionError
impl UnwindSafe for PositionError
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