Struct LineBreak

struct LineBreak(_)

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.

Note: Use icu::segmenter for an all-in-one break iterator implementation.

Example

use icu::properties::{props::LineBreak, CodePointMapData};

assert_eq!(
    CodePointMapData::<LineBreak>::new().get(')'),
    LineBreak::CloseParenthesis
); // U+0029: Right Parenthesis
assert_eq!(
    CodePointMapData::<LineBreak>::new().get(''),
    LineBreak::ConditionalJapaneseStarter
); //U+3041: Hiragana Letter Small A

Implementations

impl LineBreak

const fn to_icu4c_value(self: Self) -> u8

Returns an ICU4C ULineBreak value.

const fn from_icu4c_value(value: u8) -> Self

Constructor from an ICU4C ULineBreak value.

impl LineBreak

impl AsULE for LineBreak

fn to_unaligned(self: Self) -> <Self as >::ULE
fn from_unaligned(unaligned: <Self as >::ULE) -> Self

impl Clone for LineBreak

fn clone(self: &Self) -> LineBreak

impl Copy for LineBreak

impl Debug for LineBreak

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl EnumeratedProperty for LineBreak

impl Eq for LineBreak

impl Freeze for LineBreak

impl Hash for LineBreak

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl NamedEnumeratedProperty for LineBreak

impl Ord for LineBreak

fn cmp(self: &Self, other: &LineBreak) -> Ordering

impl ParseableEnumeratedProperty for LineBreak

impl PartialEq for LineBreak

fn eq(self: &Self, other: &LineBreak) -> bool

impl PartialOrd for LineBreak

fn partial_cmp(self: &Self, other: &LineBreak) -> Option<Ordering>

impl RefUnwindSafe for LineBreak

impl Send for LineBreak

impl StructuralPartialEq for LineBreak

impl Sync for LineBreak

impl TrieValue for LineBreak

fn try_from_u32(i: u32) -> Result<Self, <Self as >::TryFromU32Error>
fn to_u32(self: Self) -> u32

impl Unpin for LineBreak

impl UnsafeUnpin for LineBreak

impl UnwindSafe for LineBreak

impl<T> Any for LineBreak

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for LineBreak

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for LineBreak

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for LineBreak

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> ErasedDestructor for LineBreak

impl<T> From for LineBreak

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for LineBreak

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for LineBreak

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for LineBreak

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for LineBreak

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>