Struct icu_segmenter::LineBreakOptions
source · #[non_exhaustive]pub struct LineBreakOptions {
pub strictness: LineBreakStrictness,
pub word_option: LineBreakWordOption,
pub ja_zh: bool,
}
Expand description
Options to tailor line-breaking behavior.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.strictness: LineBreakStrictness
Strictness of line-breaking rules. See LineBreakStrictness
.
word_option: LineBreakWordOption
Line break opportunities between letters. See LineBreakWordOption
.
ja_zh: bool
Use true
as a hint to the line segmenter that the writing
system is Chinese or Japanese. This allows more break opportunities when
LineBreakStrictness
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§
source§impl Clone for LineBreakOptions
impl Clone for LineBreakOptions
source§fn clone(&self) -> LineBreakOptions
fn clone(&self) -> LineBreakOptions
Returns a copy of the value. Read more
1.0.0 · 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 LineBreakOptions
impl Debug for LineBreakOptions
source§impl Default for LineBreakOptions
impl Default for LineBreakOptions
source§impl PartialEq for LineBreakOptions
impl PartialEq for LineBreakOptions
impl Copy for LineBreakOptions
impl Eq for LineBreakOptions
impl StructuralPartialEq for LineBreakOptions
Auto Trait Implementations§
impl Freeze for LineBreakOptions
impl RefUnwindSafe for LineBreakOptions
impl Send for LineBreakOptions
impl Sync for LineBreakOptions
impl Unpin for LineBreakOptions
impl UnwindSafe for LineBreakOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)