[−][src]Struct harfbuzz_rs::GlyphFlags
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]
fn clone(&self) -> GlyphFlags
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for GlyphFlags
[src]
impl Debug for GlyphFlags
[src]
impl Eq for GlyphFlags
[src]
impl PartialEq<GlyphFlags> for GlyphFlags
[src]
fn eq(&self, other: &GlyphFlags) -> bool
[src]
fn ne(&self, other: &GlyphFlags) -> bool
[src]
impl StructuralEq for GlyphFlags
[src]
impl StructuralPartialEq for GlyphFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for GlyphFlags
impl Send for GlyphFlags
impl Sync for GlyphFlags
impl Unpin for GlyphFlags
impl UnwindSafe for GlyphFlags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,