Enum icu::segmenter::LineBreakRule
source · [−]#[non_exhaustive]
pub enum LineBreakRule {
Loose,
Normal,
Strict,
Anywhere,
}
Expand description
An enum specifies the strictness of line-breaking rules. It can be passed as an argument when creating a line breaker.
Each enum value has the same meaning with respect to the line-break
property values in the CSS Text spec. See the details in
https://drafts.csswg.org/css-text-3/#line-break-property.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Loose
Breaks text using the least restrictive set of line-breaking rules. Typically used for short lines, such as in newspapers. https://drafts.csswg.org/css-text-3/#valdef-line-break-loose
Normal
Breaks text using the most common set of line-breaking rules. https://drafts.csswg.org/css-text-3/#valdef-line-break-normal
Strict
Breaks text using the most stringent set of line-breaking rules. https://drafts.csswg.org/css-text-3/#valdef-line-break-strict
Anywhere
Breaks text assuming there is a soft wrap opportunity around every typographic character unit, disregarding any prohibition against line breaks. See more details in https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere.
Trait Implementations
sourceimpl Clone for LineBreakRule
impl Clone for LineBreakRule
sourcefn clone(&self) -> LineBreakRule
fn clone(&self) -> LineBreakRule
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<LineBreakRule> for LineBreakRule
impl PartialEq<LineBreakRule> for LineBreakRule
impl Copy for LineBreakRule
impl Eq for LineBreakRule
impl StructuralEq for LineBreakRule
impl StructuralPartialEq for LineBreakRule
Auto Trait Implementations
impl RefUnwindSafe for LineBreakRule
impl Send for LineBreakRule
impl Sync for LineBreakRule
impl Unpin for LineBreakRule
impl UnwindSafe for LineBreakRule
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