Enum icu::segmenter::WordBreakRule
source · [−]#[non_exhaustive]
pub enum WordBreakRule {
Normal,
BreakAll,
KeepAll,
}
Expand description
An enum specifies the line break opportunities between letters. It can be passed as an argument when creating a line breaker.
Each enum value has the same meaning with respect to the word-break
property values in the CSS Text spec. See the details in
https://drafts.csswg.org/css-text-3/#word-break-property
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Normal
Words break according to their customary rules. See the details in https://drafts.csswg.org/css-text-3/#valdef-word-break-normal.
BreakAll
Breaking is allowed within “words”. https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all
KeepAll
Breaking is forbidden within “word”. https://drafts.csswg.org/css-text-3/#valdef-word-break-keep-all
Trait Implementations
sourceimpl Clone for WordBreakRule
impl Clone for WordBreakRule
sourcefn clone(&self) -> WordBreakRule
fn clone(&self) -> WordBreakRule
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<WordBreakRule> for WordBreakRule
impl PartialEq<WordBreakRule> for WordBreakRule
impl Copy for WordBreakRule
impl Eq for WordBreakRule
impl StructuralEq for WordBreakRule
impl StructuralPartialEq for WordBreakRule
Auto Trait Implementations
impl RefUnwindSafe for WordBreakRule
impl Send for WordBreakRule
impl Sync for WordBreakRule
impl Unpin for WordBreakRule
impl UnwindSafe for WordBreakRule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more