pub enum BreakKind {
Allowed,
Mandatory,
}Expand description
A UAX#14 break opportunity’s kind, reduced to the two outcomes the
paragraph breaker needs (v0.0.6’s ~40-rule engine over LineBreak.txt
classes, ref:src/chardecoder/lineBreakDataMap.ml, collapses the same
way into append_break_opportunity’s direct/mandatory distinction).
Variants§
Allowed
A break is legal but optional (an ordinary word/punctuation
boundary) — a Discretionary candidate.
Mandatory
A break is required (e.g. a literal newline) — the paragraph
breaker must end a line here (see FORCED_BREAK_PENALTY).
Trait Implementations§
impl Copy for BreakKind
impl Eq for BreakKind
impl StructuralPartialEq for BreakKind
Auto Trait Implementations§
impl Freeze for BreakKind
impl RefUnwindSafe for BreakKind
impl Send for BreakKind
impl Sync for BreakKind
impl Unpin for BreakKind
impl UnsafeUnpin for BreakKind
impl UnwindSafe for BreakKind
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