[][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.

Methods

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 Eq for GlyphFlags[src]

impl Clone for GlyphFlags[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for GlyphFlags[src]

impl PartialEq<GlyphFlags> for GlyphFlags[src]

impl Debug for GlyphFlags[src]

Auto Trait Implementations

impl Send for GlyphFlags

impl Sync for GlyphFlags

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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