[−][src]Struct harfbuzz_rs::GlyphFlags
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(&self) -> 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]
fn eq(&self, other: &GlyphFlags) -> bool
[src]
fn ne(&self, other: &GlyphFlags) -> bool
[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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,