Struct swash::text::Properties[][src]

pub struct Properties(_);

Compact, constant time reference to Unicode properties for a character.

Implementations

impl Properties[src]

pub fn category(self) -> Category[src]

Returns the category of the character.

pub fn block(self) -> Block[src]

Returns the unicode block that contains the character.

pub fn script(self) -> Script[src]

Returns the script to which the character belongs.

pub fn combining_class(self) -> u8[src]

Returns the canonical combining class of the character.

pub fn bidi_class(self) -> BidiClass[src]

Returns the bidirectional type of the character.

pub fn joining_type(self) -> JoiningType[src]

Returns the joining type of the character.

pub fn cluster_break(self) -> ClusterBreak[src]

Returns the cluster break property for the character.

pub fn word_break(self) -> WordBreak[src]

Returns the word break property for the character.

pub fn line_break(self) -> LineBreak[src]

Returns the line break property for the character.

pub fn is_emoji(self) -> bool[src]

Returns true if the character is an emoji.

pub fn is_extended_pictographic(self) -> bool[src]

Returns true if the character is an extended pictographic symbol.

pub fn is_open_bracket(self) -> bool[src]

Returns true if the character is an opening bracket.

pub fn is_close_bracket(self) -> bool[src]

Returns true if the character is a closing bracket.

Trait Implementations

impl Clone for Properties[src]

impl Copy for Properties[src]

impl Default for Properties[src]

impl Eq for Properties[src]

impl From<&'_ CharInfo> for Properties[src]

impl From<&'_ Properties> for CharInfo[src]

impl From<&'_ char> for Properties[src]

impl From<&'_ u32> for Properties[src]

impl From<CharInfo> for Properties[src]

impl From<Properties> for CharInfo[src]

impl From<char> for Properties[src]

impl From<u32> for Properties[src]

impl PartialEq<Properties> for Properties[src]

impl StructuralEq for Properties[src]

impl StructuralPartialEq for Properties[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.