#[non_exhaustive]pub enum LineBreakWordOption {
Normal,
BreakAll,
KeepAll,
}Expand description
An enum specifies the line break opportunities between letters. It can be passed as an argument when creating a line segmenter.
Each enum value has the same meaning with respect to the word-break
property values in the CSS Text spec. See the details in
https://drafts.csswg.org/css-text-3/#word-break-property
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Normal
Words break according to their customary rules. See the details in https://drafts.csswg.org/css-text-3/#valdef-word-break-normal.
BreakAll
Breaking is allowed within “words”. https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all
KeepAll
Breaking is forbidden within “word”. https://drafts.csswg.org/css-text-3/#valdef-word-break-keep-all
Trait Implementations§
Source§impl Clone for LineBreakWordOption
impl Clone for LineBreakWordOption
Source§fn clone(&self) -> LineBreakWordOption
fn clone(&self) -> LineBreakWordOption
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LineBreakWordOption
impl Debug for LineBreakWordOption
Source§impl PartialEq for LineBreakWordOption
impl PartialEq for LineBreakWordOption
impl Copy for LineBreakWordOption
impl Eq for LineBreakWordOption
impl StructuralPartialEq for LineBreakWordOption
Auto Trait Implementations§
impl Freeze for LineBreakWordOption
impl RefUnwindSafe for LineBreakWordOption
impl Send for LineBreakWordOption
impl Sync for LineBreakWordOption
impl Unpin for LineBreakWordOption
impl UnwindSafe for LineBreakWordOption
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Normal: 0 bytesBreakAll: 0 bytesKeepAll: 0 bytes