#[repr(C)]pub enum StyleLineBreak {
Auto = 0,
Loose = 1,
Normal = 2,
Strict = 3,
Anywhere = 4,
}Expand description
Controls the strictness of line breaking rules.
CSS Text Level 3: https://www.w3.org/TR/css-text-3/#line-break-property
Variants§
Auto = 0
The browser determines the set of line-breaking restrictions to use.
Loose = 1
Breaks text using the least restrictive set of line-breaking rules.
Normal = 2
Breaks text using the most common set of line-breaking rules.
Strict = 3
Breaks text using the most stringent set of line-breaking rules.
Anywhere = 4
There is a soft wrap opportunity around every typographic character unit, including around any punctuation character or preserved white spaces, or in the middle of words, disregarding any prohibition against line breaks.
Trait Implementations§
Source§impl Clone for StyleLineBreak
impl Clone for StyleLineBreak
Source§fn clone(&self) -> StyleLineBreak
fn clone(&self) -> StyleLineBreak
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 StyleLineBreak
impl Debug for StyleLineBreak
Source§impl Default for StyleLineBreak
impl Default for StyleLineBreak
Source§fn default() -> StyleLineBreak
fn default() -> StyleLineBreak
Returns the “default value” for a type. Read more
Source§impl FormatAsRustCode for StyleLineBreak
impl FormatAsRustCode for StyleLineBreak
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<StyleLineBreak> for CssProperty
impl From<StyleLineBreak> for CssProperty
Source§fn from(e: StyleLineBreak) -> Self
fn from(e: StyleLineBreak) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleLineBreak
impl Hash for StyleLineBreak
Source§impl Ord for StyleLineBreak
impl Ord for StyleLineBreak
Source§fn cmp(&self, other: &StyleLineBreak) -> Ordering
fn cmp(&self, other: &StyleLineBreak) -> 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 StyleLineBreak
impl PartialEq for StyleLineBreak
Source§fn eq(&self, other: &StyleLineBreak) -> bool
fn eq(&self, other: &StyleLineBreak) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StyleLineBreak
impl PartialOrd for StyleLineBreak
Source§impl PrintAsCssValue for StyleLineBreak
impl PrintAsCssValue for StyleLineBreak
fn print_as_css_value(&self) -> String
impl Copy for StyleLineBreak
impl Eq for StyleLineBreak
impl StructuralPartialEq for StyleLineBreak
Auto Trait Implementations§
impl Freeze for StyleLineBreak
impl RefUnwindSafe for StyleLineBreak
impl Send for StyleLineBreak
impl Sync for StyleLineBreak
impl Unpin for StyleLineBreak
impl UnsafeUnpin for StyleLineBreak
impl UnwindSafe for StyleLineBreak
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