#[non_exhaustive]pub enum CoordinateRangeErrorKind {
LineOutOfRange,
ColumnOutOfRange,
}Expand description
Failure kind when resolving a line and byte column in a LineIndex.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LineOutOfRange
Requested line is past the source line count.
ColumnOutOfRange
Requested byte column is past the end column for its line.
Trait Implementations§
Source§impl Clone for CoordinateRangeErrorKind
impl Clone for CoordinateRangeErrorKind
Source§fn clone(&self) -> CoordinateRangeErrorKind
fn clone(&self) -> CoordinateRangeErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CoordinateRangeErrorKind
Source§impl Debug for CoordinateRangeErrorKind
impl Debug for CoordinateRangeErrorKind
impl Eq for CoordinateRangeErrorKind
Source§impl PartialEq for CoordinateRangeErrorKind
impl PartialEq for CoordinateRangeErrorKind
Source§fn eq(&self, other: &CoordinateRangeErrorKind) -> bool
fn eq(&self, other: &CoordinateRangeErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CoordinateRangeErrorKind
Auto Trait Implementations§
impl Freeze for CoordinateRangeErrorKind
impl RefUnwindSafe for CoordinateRangeErrorKind
impl Send for CoordinateRangeErrorKind
impl Sync for CoordinateRangeErrorKind
impl Unpin for CoordinateRangeErrorKind
impl UnsafeUnpin for CoordinateRangeErrorKind
impl UnwindSafe for CoordinateRangeErrorKind
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