pub struct LineBreak(/* private fields */);
Expand description
Enumerated property Line_Break.
See “Line Breaking Properties” in UAX #14 for the summary of each property value: https://www.unicode.org/reports/tr14/#Properties
The numeric value is compatible with ULineBreak
in ICU4C.
Implementations§
Source§impl LineBreak
impl LineBreak
Sourcepub const fn to_icu4c_value(self) -> u8
pub const fn to_icu4c_value(self) -> u8
Returns an ICU4C ULineBreak
value.
Sourcepub const fn from_icu4c_value(value: u8) -> Self
pub const fn from_icu4c_value(value: u8) -> Self
Constructor from an ICU4C ULineBreak
value.
Source§impl LineBreak
impl LineBreak
pub const Unknown: LineBreak
pub const Ambiguous: LineBreak
pub const Alphabetic: LineBreak
pub const BreakBoth: LineBreak
pub const BreakAfter: LineBreak
pub const BreakBefore: LineBreak
pub const MandatoryBreak: LineBreak
pub const ContingentBreak: LineBreak
pub const ClosePunctuation: LineBreak
pub const CombiningMark: LineBreak
pub const CarriageReturn: LineBreak
pub const Exclamation: LineBreak
pub const Glue: LineBreak
pub const Hyphen: LineBreak
pub const Ideographic: LineBreak
pub const Inseparable: LineBreak
pub const InfixNumeric: LineBreak
pub const LineFeed: LineBreak
pub const Nonstarter: LineBreak
pub const Numeric: LineBreak
pub const OpenPunctuation: LineBreak
pub const PostfixNumeric: LineBreak
pub const PrefixNumeric: LineBreak
pub const Quotation: LineBreak
pub const ComplexContext: LineBreak
pub const Surrogate: LineBreak
pub const Space: LineBreak
pub const BreakSymbols: LineBreak
pub const ZWSpace: LineBreak
pub const NextLine: LineBreak
pub const WordJoiner: LineBreak
pub const H2: LineBreak
pub const H3: LineBreak
pub const JL: LineBreak
pub const JT: LineBreak
pub const JV: LineBreak
pub const CloseParenthesis: LineBreak
pub const ConditionalJapaneseStarter: LineBreak
pub const HebrewLetter: LineBreak
pub const RegionalIndicator: LineBreak
pub const EBase: LineBreak
pub const EModifier: LineBreak
pub const ZWJ: LineBreak
pub const Aksara: LineBreak
pub const AksaraPrebase: LineBreak
pub const AksaraStart: LineBreak
pub const ViramaFinal: LineBreak
pub const Virama: LineBreak
Sourcepub const ALL_VALUES: &'static [LineBreak]
pub const ALL_VALUES: &'static [LineBreak]
All possible values of this enum in the Unicode version from this ICU4X release.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LineBreak
impl<'de> Deserialize<'de> for LineBreak
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EnumeratedProperty for LineBreak
impl EnumeratedProperty for LineBreak
Source§impl NamedEnumeratedProperty for LineBreak
impl NamedEnumeratedProperty for LineBreak
Source§fn try_from_str(s: &str) -> Option<Self>
fn try_from_str(s: &str) -> Option<Self>
Convenience method for
PropertyParser::new().get_loose(s)
Read moreSource§fn long_name(&self) -> &'static str
fn long_name(&self) -> &'static str
Convenience method for
PropertyNamesLong::new().get(*self).unwrap()
Read moreSource§fn short_name(&self) -> &'static str
fn short_name(&self) -> &'static str
Convenience method for
PropertyNamesShort::new().get(*self).unwrap()
Read moreSource§impl Ord for LineBreak
impl Ord for LineBreak
Source§impl PartialOrd for LineBreak
impl PartialOrd for LineBreak
Source§impl TrieValue for LineBreak
impl TrieValue for LineBreak
Source§type TryFromU32Error = TryFromIntError
type TryFromU32Error = TryFromIntError
Last-resort fallback value to return if we cannot read data from the trie. Read more
Source§fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
A parsing function that is primarily motivated by deserialization contexts.
When the serialization type width is smaller than 32 bits, then it is expected
that the call site will widen the value to a
u32
first.impl Copy for LineBreak
impl Eq for LineBreak
impl ParseableEnumeratedProperty for LineBreak
impl StructuralPartialEq for LineBreak
Auto Trait Implementations§
impl Freeze for LineBreak
impl RefUnwindSafe for LineBreak
impl Send for LineBreak
impl Sync for LineBreak
impl Unpin for LineBreak
impl UnwindSafe for LineBreak
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more