#[repr(C)]pub enum StyleOverflowWrap {
Normal = 0,
Anywhere = 1,
BreakWord = 2,
}Expand description
Controls whether the browser may break at otherwise disallowed points to prevent overflow.
CSS Text Level 3 §3.3: https://www.w3.org/TR/css-text-3/#overflow-wrap-property
Variants§
Normal = 0
Lines may only break at allowed break points.
Anywhere = 1
An otherwise unbreakable sequence may be broken at an arbitrary point if there are no otherwise acceptable break points.
BreakWord = 2
Same as anywhere but soft wrap opportunities introduced are not
considered when calculating min-content intrinsic sizes.
Trait Implementations§
Source§impl Clone for StyleOverflowWrap
impl Clone for StyleOverflowWrap
Source§fn clone(&self) -> StyleOverflowWrap
fn clone(&self) -> StyleOverflowWrap
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 StyleOverflowWrap
impl Debug for StyleOverflowWrap
Source§impl Default for StyleOverflowWrap
impl Default for StyleOverflowWrap
Source§fn default() -> StyleOverflowWrap
fn default() -> StyleOverflowWrap
Returns the “default value” for a type. Read more
Source§impl FormatAsRustCode for StyleOverflowWrap
impl FormatAsRustCode for StyleOverflowWrap
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<StyleOverflowWrap> for CssProperty
impl From<StyleOverflowWrap> for CssProperty
Source§fn from(e: StyleOverflowWrap) -> Self
fn from(e: StyleOverflowWrap) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleOverflowWrap
impl Hash for StyleOverflowWrap
Source§impl Ord for StyleOverflowWrap
impl Ord for StyleOverflowWrap
Source§fn cmp(&self, other: &StyleOverflowWrap) -> Ordering
fn cmp(&self, other: &StyleOverflowWrap) -> 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 StyleOverflowWrap
impl PartialEq for StyleOverflowWrap
Source§fn eq(&self, other: &StyleOverflowWrap) -> bool
fn eq(&self, other: &StyleOverflowWrap) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StyleOverflowWrap
impl PartialOrd for StyleOverflowWrap
Source§impl PrintAsCssValue for StyleOverflowWrap
impl PrintAsCssValue for StyleOverflowWrap
fn print_as_css_value(&self) -> String
impl Copy for StyleOverflowWrap
impl Eq for StyleOverflowWrap
impl StructuralPartialEq for StyleOverflowWrap
Auto Trait Implementations§
impl Freeze for StyleOverflowWrap
impl RefUnwindSafe for StyleOverflowWrap
impl Send for StyleOverflowWrap
impl Sync for StyleOverflowWrap
impl Unpin for StyleOverflowWrap
impl UnsafeUnpin for StyleOverflowWrap
impl UnwindSafe for StyleOverflowWrap
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