Struct icu::locale::preferences::extensions::unicode::keywords::DictionaryBreakScriptExclusions
source · pub struct DictionaryBreakScriptExclusions(/* private fields */);
Expand description
A Unicode Dictionary Break Exclusion Identifier specifies scripts to be excluded from dictionary-based text break (for words and lines).
The valid values are of one or more items of type Script
.
Trait Implementations§
source§impl Clone for DictionaryBreakScriptExclusions
impl Clone for DictionaryBreakScriptExclusions
source§fn clone(&self) -> DictionaryBreakScriptExclusions
fn clone(&self) -> DictionaryBreakScriptExclusions
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 From<DictionaryBreakScriptExclusions> for Value
impl From<DictionaryBreakScriptExclusions> for Value
source§fn from(input: DictionaryBreakScriptExclusions) -> Value
fn from(input: DictionaryBreakScriptExclusions) -> Value
Converts to this type from the input type.
source§impl PartialEq for DictionaryBreakScriptExclusions
impl PartialEq for DictionaryBreakScriptExclusions
source§fn eq(&self, other: &DictionaryBreakScriptExclusions) -> bool
fn eq(&self, other: &DictionaryBreakScriptExclusions) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.source§impl PreferenceKey for DictionaryBreakScriptExclusions
impl PreferenceKey for DictionaryBreakScriptExclusions
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<DictionaryBreakScriptExclusions>, PreferencesParseError>
fn try_from_key_value( key: &Key, value: &Value, ) -> Result<Option<DictionaryBreakScriptExclusions>, 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 DictionaryBreakScriptExclusions
impl TryFrom<Value> for DictionaryBreakScriptExclusions
source§type Error = PreferencesParseError
type Error = PreferencesParseError
The type returned in the event of a conversion error.
source§fn try_from(
input: Value,
) -> Result<DictionaryBreakScriptExclusions, <DictionaryBreakScriptExclusions as TryFrom<Value>>::Error>
fn try_from( input: Value, ) -> Result<DictionaryBreakScriptExclusions, <DictionaryBreakScriptExclusions as TryFrom<Value>>::Error>
Performs the conversion.
impl Eq for DictionaryBreakScriptExclusions
impl StructuralPartialEq for DictionaryBreakScriptExclusions
Auto Trait Implementations§
impl Freeze for DictionaryBreakScriptExclusions
impl RefUnwindSafe for DictionaryBreakScriptExclusions
impl Send for DictionaryBreakScriptExclusions
impl Sync for DictionaryBreakScriptExclusions
impl Unpin for DictionaryBreakScriptExclusions
impl UnwindSafe for DictionaryBreakScriptExclusions
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