Struct icu_properties::props::LineBreak
source · #[repr(transparent)]pub struct LineBreak(pub u8);
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.
Tuple Fields§
§0: u8
Implementations§
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 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 NamedEnumeratedProperty 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§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
)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