Movatterモバイル変換


[0]ホーム

URL:


Enumunicode_segmentation::GraphemeIncomplete[][src]

pub enum GraphemeIncomplete {    PreContext(usize),    PrevChunk,    NextChunk,    InvalidOffset,}

An error return indicating that not enough content was available in theprovided chunk to satisfy the query, and that more content must be provided.

Variants

PreContext(usize)

More pre-context is needed. The caller should callprovide_contextwith a chunk ending at the offset given, then retry the query. Thiswill only be returned if thechunk_start parameter is nonzero.

PrevChunk

When requestingprev_boundary, the cursor is moving past the beginningof the current chunk, so the chunk before that is requested. This willonly be returned if thechunk_start parameter is nonzero.

NextChunk

When requestingnext_boundary, the cursor is moving past the end of thecurrent chunk, so the chunk after that is requested. This will only bereturned if the chunk ends before thelen parameter provided oncreation of the cursor.

InvalidOffset

An error returned when the chunk given does not contain the cursor position.

Trait Implementations

implDebug forGraphemeIncomplete[src]

fnfmt(&self, f: &mutFormatter<'_>) ->Result[src]

implEq forGraphemeIncomplete[src]

implPartialEq<GraphemeIncomplete> forGraphemeIncomplete[src]

fneq(&self, other: &GraphemeIncomplete) -> bool[src]

fnne(&self, other: &GraphemeIncomplete) -> bool[src]

implStructuralEq forGraphemeIncomplete[src]

implStructuralPartialEq forGraphemeIncomplete[src]

Auto Trait Implementations

implSend forGraphemeIncomplete

implSync forGraphemeIncomplete

implUnpin forGraphemeIncomplete

Blanket Implementations

impl<T>Any for Twhere
    T: 'static + ?Sized
[src]

pub fntype_id(&self) ->TypeId[src]

impl<T>Borrow<T> for Twhere
    T: ?Sized
[src]

pub fnborrow(&self) -> &T[src]

impl<T>BorrowMut<T> for Twhere
    T: ?Sized
[src]

pub fnborrow_mut(&mut self) -> &mut T[src]

impl<T>From<T> for T[src]

pub fnfrom(t: T) -> T[src]

impl<T, U>Into<U> for Twhere
    U:From<T>, 
[src]

pub fninto(self) -> U[src]

impl<T, U>TryFrom<U> for Twhere
    U:Into<T>, 
[src]

typeError =Infallible

The type returned in the event of a conversion error.

pub fntry_from(value: U) ->Result<T, <T asTryFrom<U>>::Error>[src]

impl<T, U>TryInto<U> for Twhere
    U:TryFrom<T>, 
[src]

typeError = <U asTryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fntry_into(self) ->Result<U, <U asTryFrom<T>>::Error>[src]


[8]ページ先頭

©2009-2025 Movatter.jp