pub enum LineOffsetError {
EndOfInput,
InsideUnicodeCodepoint,
}Expand description
Errors that can be encountered when indexing by byte offset.
Variants
EndOfInput
Requested offset is past end of input
InsideUnicodeCodepoint
Requested offset falls inside a unicode codepoint
Trait Implementations
sourceimpl Clone for LineOffsetError
impl Clone for LineOffsetError
sourcefn clone(&self) -> LineOffsetError
fn clone(&self) -> LineOffsetError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for LineOffsetError
impl Debug for LineOffsetError
sourceimpl Hash for LineOffsetError
impl Hash for LineOffsetError
sourceimpl PartialEq<LineOffsetError> for LineOffsetError
impl PartialEq<LineOffsetError> for LineOffsetError
impl Eq for LineOffsetError
impl StructuralEq for LineOffsetError
impl StructuralPartialEq for LineOffsetError
Auto Trait Implementations
impl RefUnwindSafe for LineOffsetError
impl Send for LineOffsetError
impl Sync for LineOffsetError
impl Unpin for LineOffsetError
impl UnwindSafe for LineOffsetError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more