Struct icu::properties::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
sourceimpl 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
Trait Implementations
sourceimpl Bake for LineBreak
impl Bake for LineBreak
sourcefn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
Returns a TokenStream
that would evaluate to self
. Read more
sourceimpl<'de> Deserialize<'de> for LineBreak
impl<'de> Deserialize<'de> for LineBreak
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<LineBreak, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LineBreak, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for LineBreak
impl Ord for LineBreak
sourceimpl PartialOrd<LineBreak> for LineBreak
impl PartialOrd<LineBreak> for LineBreak
sourcefn partial_cmp(&self, other: &LineBreak) -> Option<Ordering>
fn partial_cmp(&self, other: &LineBreak) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for LineBreak
impl Serialize for LineBreak
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl TrieValue for LineBreak
impl TrieValue for LineBreak
type TryFromU32Error = TryFromIntError
type TryFromU32Error = TryFromIntError
Last-resort fallback value to return if we cannot read data from the trie. Read more
sourcefn try_from_u32(
i: u32
) -> Result<LineBreak, <LineBreak as TrieValue>::TryFromU32Error>
fn try_from_u32(
i: u32
) -> Result<LineBreak, <LineBreak as TrieValue>::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. Read more
sourceimpl<'a> ZeroMapKV<'a> for LineBreak
impl<'a> ZeroMapKV<'a> for LineBreak
impl Copy for LineBreak
impl Eq for LineBreak
impl StructuralEq for LineBreak
impl StructuralPartialEq for LineBreak
Auto Trait Implementations
impl RefUnwindSafe for LineBreak
impl Send for LineBreak
impl Sync for LineBreak
impl Unpin for LineBreak
impl UnwindSafe for LineBreak
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more