#[non_exhaustive]pub enum SentenceBreakSupressions {
    None,
    Standard,
}Expand description
A Unicode Sentence Break Suppressions Identifier defines a set of data to be used for suppressing certain sentence breaks that would otherwise be found by UAX #14 rules.
The valid values are listed in LDML.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Don’t use sentence break suppressions data (the default)
Standard
Use sentence break suppressions data of type “standard”
Implementations§
Trait Implementations§
Source§impl Clone for SentenceBreakSupressions
 
impl Clone for SentenceBreakSupressions
Source§fn clone(&self) -> SentenceBreakSupressions
 
fn clone(&self) -> SentenceBreakSupressions
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 SentenceBreakSupressions
 
impl Debug for SentenceBreakSupressions
Source§impl Default for SentenceBreakSupressions
 
impl Default for SentenceBreakSupressions
Source§fn default() -> SentenceBreakSupressions
 
fn default() -> SentenceBreakSupressions
Returns the “default value” for a type. Read more
Source§impl From<SentenceBreakSupressions> for Value
 
impl From<SentenceBreakSupressions> for Value
Source§fn from(input: SentenceBreakSupressions) -> Value
 
fn from(input: SentenceBreakSupressions) -> Value
Converts to this type from the input type.
Source§impl Hash for SentenceBreakSupressions
 
impl Hash for SentenceBreakSupressions
Source§impl PartialEq for SentenceBreakSupressions
 
impl PartialEq for SentenceBreakSupressions
Source§impl PreferenceKey for SentenceBreakSupressions
 
impl PreferenceKey for SentenceBreakSupressions
Source§fn unicode_extension_key() -> Option<Key>
 
fn unicode_extension_key() -> Option<Key>
Retrieve unicode extension key corresponding to a given preference.
Source§fn try_from_key_value(
    key: &Key,
    value: &Value,
) -> Result<Option<SentenceBreakSupressions>, PreferencesParseError>
 
fn try_from_key_value( key: &Key, value: &Value, ) -> Result<Option<SentenceBreakSupressions>, PreferencesParseError>
Optional constructor of the given preference. It takes the
unicode extension key and if the key matches it attemptes to construct
the preference based on the given value.
If the value is not a valid value for the given key, the constructor throws.
Source§fn unicode_extension_value(&self) -> Option<Value>
 
fn unicode_extension_value(&self) -> Option<Value>
Retrieve unicode extension value corresponding to the given instance of the preference.
Source§impl TryFrom<&Value> for SentenceBreakSupressions
 
impl TryFrom<&Value> for SentenceBreakSupressions
Source§type Error = PreferencesParseError
 
type Error = PreferencesParseError
The type returned in the event of a conversion error.
Source§fn try_from(
    s: &Value,
) -> Result<SentenceBreakSupressions, <SentenceBreakSupressions as TryFrom<&Value>>::Error>
 
fn try_from( s: &Value, ) -> Result<SentenceBreakSupressions, <SentenceBreakSupressions as TryFrom<&Value>>::Error>
Performs the conversion.
impl Copy for SentenceBreakSupressions
impl Eq for SentenceBreakSupressions
impl StructuralPartialEq for SentenceBreakSupressions
Auto Trait Implementations§
impl Freeze for SentenceBreakSupressions
impl RefUnwindSafe for SentenceBreakSupressions
impl Send for SentenceBreakSupressions
impl Sync for SentenceBreakSupressions
impl Unpin for SentenceBreakSupressions
impl UnwindSafe for SentenceBreakSupressions
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§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