Enum icu::segmenter::provider::BreakState
source ยท pub enum BreakState {
Break,
Keep,
NoMatch,
Intermediate(u8),
Index(u8),
}
Expand description
Break state
๐ง This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. In particular, the `DataProvider` implementations are only
guaranteed to match with this version's `*_unstable` providers. Use with caution.
Variantsยง
Break
Break
Keep
Keep rule
NoMatch
Non-matching rule
Intermediate(u8)
We have to look ahead one more character.
Index(u8)
Index of a state.
Trait Implementationsยง
sourceยงimpl AsULE for BreakState
impl AsULE for BreakState
sourceยงfn to_unaligned(self) -> <BreakState as AsULE>::ULE
fn to_unaligned(self) -> <BreakState as AsULE>::ULE
sourceยงfn from_unaligned(unaligned: <BreakState as AsULE>::ULE) -> BreakState
fn from_unaligned(unaligned: <BreakState as AsULE>::ULE) -> BreakState
sourceยงimpl Bake for BreakState
impl Bake for BreakState
sourceยงfn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
sourceยงimpl BakeSize for BreakState
impl BakeSize for BreakState
sourceยงfn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
sourceยงimpl Clone for BreakState
impl Clone for BreakState
sourceยงfn clone(&self) -> BreakState
fn clone(&self) -> BreakState
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 BreakState
impl Debug for BreakState
sourceยงimpl<'de> Deserialize<'de> for BreakState
impl<'de> Deserialize<'de> for BreakState
sourceยงfn deserialize<D>(
deserializer: D,
) -> Result<BreakState, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<BreakState, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceยงimpl PartialEq for BreakState
impl PartialEq for BreakState
sourceยงimpl Serialize for BreakState
impl Serialize for BreakState
sourceยงfn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for BreakState
impl StructuralPartialEq for BreakState
Auto Trait Implementationsยง
impl Freeze for BreakState
impl RefUnwindSafe for BreakState
impl Send for BreakState
impl Sync for BreakState
impl Unpin for BreakState
impl UnwindSafe for BreakState
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)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>
Converts
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>
Converts
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