pub enum GraphemeIncomplete {
PreContext(usize),
PrevChunk,
NextChunk,
InvalidOffset,
}
Expand description
An error return indicating that not enough content was available in the provided chunk to satisfy the query, and that more content must be provided.
Variants§
PreContext(usize)
More pre-context is needed. The caller should call provide_context
with a chunk ending at the offset given, then retry the query. This
will only be returned if the chunk_start
parameter is nonzero.
PrevChunk
When requesting prev_boundary
, the cursor is moving past the beginning
of the current chunk, so the chunk before that is requested. This will
only be returned if the chunk_start
parameter is nonzero.
NextChunk
When requesting next_boundary
, the cursor is moving past the end of the
current chunk, so the chunk after that is requested. This will only be
returned if the chunk ends before the len
parameter provided on
creation of the cursor.
InvalidOffset
An error returned when the chunk given does not contain the cursor position.
Trait Implementations§
Source§impl Debug for GraphemeIncomplete
impl Debug for GraphemeIncomplete
Source§impl PartialEq for GraphemeIncomplete
impl PartialEq for GraphemeIncomplete
impl Eq for GraphemeIncomplete
impl StructuralPartialEq for GraphemeIncomplete
Auto Trait Implementations§
impl Freeze for GraphemeIncomplete
impl RefUnwindSafe for GraphemeIncomplete
impl Send for GraphemeIncomplete
impl Sync for GraphemeIncomplete
impl Unpin for GraphemeIncomplete
impl UnwindSafe for GraphemeIncomplete
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more