#[repr(u8)]pub enum BreakClass {
Show 43 variants
Mandatory = 0,
CarriageReturn = 1,
LineFeed = 2,
CombiningMark = 3,
NextLine = 4,
Surrogate = 5,
WordJoiner = 6,
ZeroWidthSpace = 7,
NonBreakingGlue = 8,
Space = 9,
ZeroWidthJoiner = 10,
BeforeAndAfter = 11,
After = 12,
Before = 13,
Hyphen = 14,
Contingent = 15,
ClosePunctuation = 16,
CloseParenthesis = 17,
Exclamation = 18,
Inseparable = 19,
NonStarter = 20,
OpenPunctuation = 21,
Quotation = 22,
InfixSeparator = 23,
Numeric = 24,
Postfix = 25,
Prefix = 26,
Symbol = 27,
Ambiguous = 28,
Alphabetic = 29,
ConditionalJapaneseStarter = 30,
EmojiBase = 31,
EmojiModifier = 32,
HangulLvSyllable = 33,
HangulLvtSyllable = 34,
HebrewLetter = 35,
Ideographic = 36,
HangulLJamo = 37,
HangulVJamo = 38,
HangulTJamo = 39,
RegionalIndicator = 40,
ComplexContext = 41,
Unknown = 42,
}
Expand description
Unicode line breaking class.
Variants§
Mandatory = 0
Cause a line break (after)
CarriageReturn = 1
Cause a line break (after), except between CR and LF
LineFeed = 2
Cause a line break (after)
CombiningMark = 3
Prohibit a line break between the character and the preceding character
NextLine = 4
Cause a line break (after)
Surrogate = 5
Do not occur in well-formed text
WordJoiner = 6
Prohibit line breaks before and after
ZeroWidthSpace = 7
Provide a break opportunity
NonBreakingGlue = 8
Prohibit line breaks before and after
Space = 9
Enable indirect line breaks
ZeroWidthJoiner = 10
Prohibit line breaks within joiner sequences
BeforeAndAfter = 11
Provide a line break opportunity before and after the character
After = 12
Generally provide a line break opportunity after the character
Before = 13
Generally provide a line break opportunity before the character
Hyphen = 14
Provide a line break opportunity after the character, except in numeric context
Contingent = 15
Provide a line break opportunity contingent on additional information
ClosePunctuation = 16
Prohibit line breaks before
CloseParenthesis = 17
Prohibit line breaks before
Exclamation = 18
Prohibit line breaks before
Inseparable = 19
Allow only indirect line breaks between pairs
NonStarter = 20
Allow only indirect line breaks before
OpenPunctuation = 21
Prohibit line breaks after
Quotation = 22
Act like they are both opening and closing
InfixSeparator = 23
Prevent breaks after any and before numeric
Numeric = 24
Form numeric expressions for line breaking purposes
Postfix = 25
Do not break following a numeric expression
Prefix = 26
Do not break in front of a numeric expression
Symbol = 27
Prevent a break before, and allow a break after
Ambiguous = 28
Act like AL when the resolved EAW is N; otherwise, act as ID
Alphabetic = 29
Are alphabetic characters or symbols that are used with alphabetic characters
ConditionalJapaneseStarter = 30
Treat as NS or ID for strict or normal breaking.
EmojiBase = 31
Do not break from following Emoji Modifier
EmojiModifier = 32
Do not break from preceding Emoji Base
HangulLvSyllable = 33
Form Korean syllable blocks
HangulLvtSyllable = 34
Form Korean syllable blocks
HebrewLetter = 35
Do not break around a following hyphen; otherwise act as Alphabetic
Ideographic = 36
Break before or after, except in some numeric context
HangulLJamo = 37
Form Korean syllable blocks
HangulVJamo = 38
Form Korean syllable blocks
HangulTJamo = 39
Form Korean syllable blocks
RegionalIndicator = 40
Keep pairs together. For pairs, break before and after other classes
ComplexContext = 41
Provide a line break opportunity contingent on additional, language-specific context analysis
Unknown = 42
Have as yet unknown line breaking behavior or unassigned code positions
Trait Implementations§
Source§impl Clone for BreakClass
impl Clone for BreakClass
Source§fn clone(&self) -> BreakClass
fn clone(&self) -> BreakClass
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more