Struct icu_properties::props::SentenceBreak
source · #[repr(transparent)]pub struct SentenceBreak(/* private fields */);
Expand description
Enumerated property Sentence_Break. See “Default Sentence Boundary Specification” in UAX #29 for the summary of each property value: https://www.unicode.org/reports/tr29/#Default_Word_Boundaries.
The numeric value is compatible with USentenceBreak
in ICU4C.
Implementations§
source§impl SentenceBreak
impl SentenceBreak
pub const Other: SentenceBreak = _
pub const ATerm: SentenceBreak = _
pub const Close: SentenceBreak = _
pub const Format: SentenceBreak = _
pub const Lower: SentenceBreak = _
pub const Numeric: SentenceBreak = _
pub const OLetter: SentenceBreak = _
pub const Sep: SentenceBreak = _
pub const Sp: SentenceBreak = _
pub const STerm: SentenceBreak = _
pub const Upper: SentenceBreak = _
pub const CR: SentenceBreak = _
pub const Extend: SentenceBreak = _
pub const LF: SentenceBreak = _
pub const SContinue: SentenceBreak = _
sourcepub const ALL_VALUES: &'static [SentenceBreak] = _
pub const ALL_VALUES: &'static [SentenceBreak] = _
All possible values of this enum in the Unicode version from this ICU4X release.
Trait Implementations§
source§impl AsULE for SentenceBreak
impl AsULE for SentenceBreak
source§impl Bake for SentenceBreak
impl Bake for SentenceBreak
source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
source§impl BakeSize for SentenceBreak
impl BakeSize for SentenceBreak
source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
source§impl Clone for SentenceBreak
impl Clone for SentenceBreak
source§fn clone(&self) -> SentenceBreak
fn clone(&self) -> SentenceBreak
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 SentenceBreak
impl Debug for SentenceBreak
source§impl<'de> Deserialize<'de> for SentenceBreak
impl<'de> Deserialize<'de> for SentenceBreak
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl EnumeratedProperty for SentenceBreak
impl EnumeratedProperty for SentenceBreak
source§impl From<SentenceBreak> for u16
impl From<SentenceBreak> for u16
source§fn from(other: SentenceBreak) -> Self
fn from(other: SentenceBreak) -> Self
Converts to this type from the input type.
source§impl Hash for SentenceBreak
impl Hash for SentenceBreak
source§impl Ord for SentenceBreak
impl Ord for SentenceBreak
source§fn cmp(&self, other: &SentenceBreak) -> Ordering
fn cmp(&self, other: &SentenceBreak) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SentenceBreak
impl PartialEq for SentenceBreak
source§impl PartialOrd for SentenceBreak
impl PartialOrd for SentenceBreak
source§impl Serialize for SentenceBreak
impl Serialize for SentenceBreak
source§impl TrieValue for SentenceBreak
impl TrieValue for SentenceBreak
source§type TryFromU32Error = TryFromIntError
type TryFromU32Error = TryFromIntError
Last-resort fallback value to return if we cannot read data from the trie. Read more
source§fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
A parsing function that is primarily motivated by deserialization contexts.
When the serialization type width is smaller than 32 bits, then it is expected
that the call site will widen the value to a
u32
first.impl Copy for SentenceBreak
impl Eq for SentenceBreak
impl NamedEnumeratedProperty for SentenceBreak
impl ParseableEnumeratedProperty for SentenceBreak
impl StructuralPartialEq for SentenceBreak
Auto Trait Implementations§
impl Freeze for SentenceBreak
impl RefUnwindSafe for SentenceBreak
impl Send for SentenceBreak
impl Sync for SentenceBreak
impl Unpin for SentenceBreak
impl UnwindSafe for SentenceBreak
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