#[repr(u8)]pub enum WordBreakStrength {
Normal = 0,
BreakAll = 1,
KeepAll = 2,
}
Expand description
Word breaking strength (corresponds to https://drafts.csswg.org/css-text/#word-break-property).
Variants§
Normal = 0
Words can be broken according to their normal Unicode rules.
BreakAll = 1
Breaking treats numeric, alphabetic, and Southeast Asian classes as Ideographic. Note that this does not affect breaking punctuation.
KeepAll = 2
Breaking between typographic letter units or the NU, AL, AI, or ID classes is prohibited.
Trait Implementations§
Source§impl Clone for WordBreakStrength
impl Clone for WordBreakStrength
Source§fn clone(&self) -> WordBreakStrength
fn clone(&self) -> WordBreakStrength
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 WordBreakStrength
impl Debug for WordBreakStrength
Source§impl Default for WordBreakStrength
impl Default for WordBreakStrength
Source§fn default() -> WordBreakStrength
fn default() -> WordBreakStrength
Returns the “default value” for a type. Read more
Source§impl Hash for WordBreakStrength
impl Hash for WordBreakStrength
Source§impl Ord for WordBreakStrength
impl Ord for WordBreakStrength
Source§fn cmp(&self, other: &WordBreakStrength) -> Ordering
fn cmp(&self, other: &WordBreakStrength) -> 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 WordBreakStrength
impl PartialEq for WordBreakStrength
Source§impl PartialOrd for WordBreakStrength
impl PartialOrd for WordBreakStrength
impl Copy for WordBreakStrength
impl Eq for WordBreakStrength
impl StructuralPartialEq for WordBreakStrength
Auto Trait Implementations§
impl Freeze for WordBreakStrength
impl RefUnwindSafe for WordBreakStrength
impl Send for WordBreakStrength
impl Sync for WordBreakStrength
impl Unpin for WordBreakStrength
impl UnwindSafe for WordBreakStrength
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