pub enum LineIndexError {
OffsetOutOfBounds {
byte: usize,
source_len: usize,
},
OffsetTooLarge {
byte: usize,
},
NotUtf8Boundary {
byte: usize,
},
}Variants§
Trait Implementations§
Source§impl Clone for LineIndexError
impl Clone for LineIndexError
Source§fn clone(&self) -> LineIndexError
fn clone(&self) -> LineIndexError
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 moreSource§impl Debug for LineIndexError
impl Debug for LineIndexError
Source§impl Display for LineIndexError
impl Display for LineIndexError
Source§impl Error for LineIndexError
impl Error for LineIndexError
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()
Source§impl PartialEq for LineIndexError
impl PartialEq for LineIndexError
Source§fn eq(&self, other: &LineIndexError) -> bool
fn eq(&self, other: &LineIndexError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LineIndexError
impl StructuralPartialEq for LineIndexError
Auto Trait Implementations§
impl Freeze for LineIndexError
impl RefUnwindSafe for LineIndexError
impl Send for LineIndexError
impl Sync for LineIndexError
impl Unpin for LineIndexError
impl UnsafeUnpin for LineIndexError
impl UnwindSafe for LineIndexError
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