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§
source§impl Clone for LineOffsetError
impl Clone for LineOffsetError
source§fn clone(&self) -> LineOffsetError
fn clone(&self) -> LineOffsetError
Returns a copy of the value. Read more
1.0.0 · 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 LineOffsetError
impl Debug for LineOffsetError
source§impl Hash for LineOffsetError
impl Hash for LineOffsetError
source§impl PartialEq<LineOffsetError> for LineOffsetError
impl PartialEq<LineOffsetError> for LineOffsetError
source§fn eq(&self, other: &LineOffsetError) -> bool
fn eq(&self, other: &LineOffsetError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.