#[repr(C)]pub enum StyleWordBreak {
Normal = 0,
BreakAll = 1,
KeepAll = 2,
BreakWord = 3,
}Expand description
Controls line breaking rules within words.
CSS Text Level 3 §5.2: https://www.w3.org/TR/css-text-3/#word-break-property
Variants§
Normal = 0
Use default line break rules.
BreakAll = 1
Allow break opportunities between any two characters (CJK and non-CJK).
KeepAll = 2
Forbid break opportunities within CJK character sequences.
BreakWord = 3
Deprecated: equivalent to word-break: normal and overflow-wrap: anywhere.
Trait Implementations§
Source§impl Clone for StyleWordBreak
impl Clone for StyleWordBreak
Source§fn clone(&self) -> StyleWordBreak
fn clone(&self) -> StyleWordBreak
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StyleWordBreak
impl Debug for StyleWordBreak
Source§impl Default for StyleWordBreak
impl Default for StyleWordBreak
Source§fn default() -> StyleWordBreak
fn default() -> StyleWordBreak
Returns the “default value” for a type. Read more
Source§impl FormatAsRustCode for StyleWordBreak
impl FormatAsRustCode for StyleWordBreak
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<StyleWordBreak> for CssProperty
impl From<StyleWordBreak> for CssProperty
Source§fn from(e: StyleWordBreak) -> Self
fn from(e: StyleWordBreak) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleWordBreak
impl Hash for StyleWordBreak
Source§impl Ord for StyleWordBreak
impl Ord for StyleWordBreak
Source§fn cmp(&self, other: &StyleWordBreak) -> Ordering
fn cmp(&self, other: &StyleWordBreak) -> Ordering
1.21.0 (const: unstable) · 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 StyleWordBreak
impl PartialEq for StyleWordBreak
Source§fn eq(&self, other: &StyleWordBreak) -> bool
fn eq(&self, other: &StyleWordBreak) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StyleWordBreak
impl PartialOrd for StyleWordBreak
Source§impl PrintAsCssValue for StyleWordBreak
impl PrintAsCssValue for StyleWordBreak
fn print_as_css_value(&self) -> String
impl Copy for StyleWordBreak
impl Eq for StyleWordBreak
impl StructuralPartialEq for StyleWordBreak
Auto Trait Implementations§
impl Freeze for StyleWordBreak
impl RefUnwindSafe for StyleWordBreak
impl Send for StyleWordBreak
impl Sync for StyleWordBreak
impl Unpin for StyleWordBreak
impl UnsafeUnpin for StyleWordBreak
impl UnwindSafe for StyleWordBreak
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