Struct icu::segmenter::LineBreakOptions
source · [−]#[non_exhaustive]pub struct LineBreakOptions {
pub line_break_rule: LineBreakRule,
pub word_break_rule: WordBreakRule,
pub ja_zh: bool,
}
Expand description
Options to tailor line breaking behavior, such as for CSS.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.line_break_rule: LineBreakRule
Strictness of line-breaking rules. See LineBreakRule
.
word_break_rule: WordBreakRule
Line break opportunities between letters. See WordBreakRule
.
ja_zh: bool
Use true
as a hint to the line breaker that the writing
system is Chinese or Japanese. This allows more break opportunities when
LineBreakRule
is Normal
or Loose
. See
https://drafts.csswg.org/css-text-3/#line-break-property for details.
This option has no effect in Latin-1 mode.
Trait Implementations
sourceimpl Clone for LineBreakOptions
impl Clone for LineBreakOptions
sourcefn clone(&self) -> LineBreakOptions
fn clone(&self) -> LineBreakOptions
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 Default for LineBreakOptions
impl Default for LineBreakOptions
sourcefn default() -> LineBreakOptions
fn default() -> LineBreakOptions
Returns the “default value” for a type. Read more
sourceimpl PartialEq<LineBreakOptions> for LineBreakOptions
impl PartialEq<LineBreakOptions> for LineBreakOptions
sourcefn eq(&self, other: &LineBreakOptions) -> bool
fn eq(&self, other: &LineBreakOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LineBreakOptions) -> bool
fn ne(&self, other: &LineBreakOptions) -> bool
This method tests for !=
.
impl Eq for LineBreakOptions
impl StructuralEq for LineBreakOptions
impl StructuralPartialEq for LineBreakOptions
Auto Trait Implementations
impl RefUnwindSafe for LineBreakOptions
impl Send for LineBreakOptions
impl Sync for LineBreakOptions
impl Unpin for LineBreakOptions
impl UnwindSafe for LineBreakOptions
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