[][src]Struct harfbuzz_rs::GlyphFlags

pub struct GlyphFlags(pub hb_glyph_flags_t);

A set of flags that may be set during shaping on each glyph.

Implementations

impl GlyphFlags[src]

pub fn unsafe_to_break(&self) -> bool[src]

If true, indicates that if input text is broken at the beginning of the cluster this glyph is part of, then both sides need to be re-shaped, as the result might be different. On the flip side, it means that when this function returns false, then it's safe to break the glyph-run at the beginning of this cluster, and the two sides represent the exact same result one would get if breaking input text at the beginning of this cluster and shaping the two sides separately. This can be used to optimize paragraph layout, by avoiding re-shaping of each line after line-breaking, or limiting the reshaping to a small piece around the breaking point only.

Trait Implementations

impl Clone for GlyphFlags[src]

impl Copy for GlyphFlags[src]

impl Debug for GlyphFlags[src]

impl Eq for GlyphFlags[src]

impl PartialEq<GlyphFlags> for GlyphFlags[src]

impl StructuralEq for GlyphFlags[src]

impl StructuralPartialEq for GlyphFlags[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.