pub struct GlyphFlags(pub hb_glyph_flags_t);Expand description
A set of flags that may be set during shaping on each glyph.
Tuple Fields§
§0: hb_glyph_flags_tImplementations§
Source§impl GlyphFlags
impl GlyphFlags
Sourcepub fn unsafe_to_break(&self) -> bool
pub fn unsafe_to_break(&self) -> bool
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§
Source§impl Clone for GlyphFlags
impl Clone for GlyphFlags
Source§fn clone(&self) -> GlyphFlags
fn clone(&self) -> GlyphFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GlyphFlags
Source§impl Debug for GlyphFlags
impl Debug for GlyphFlags
impl Eq for GlyphFlags
Source§impl PartialEq for GlyphFlags
impl PartialEq for GlyphFlags
impl StructuralPartialEq for GlyphFlags
Auto Trait Implementations§
impl Freeze for GlyphFlags
impl RefUnwindSafe for GlyphFlags
impl Send for GlyphFlags
impl Sync for GlyphFlags
impl Unpin for GlyphFlags
impl UnsafeUnpin for GlyphFlags
impl UnwindSafe for GlyphFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more