pub struct HbShapedWord<'a> {
pub buf: &'a HbBuffer<'a>,
pub scaled_font: &'a HbScaledFont<'a>,
pub glyph_infos: CVec<HbGlyphInfo>,
pub glyph_positions: CVec<HbGlyphPosition>,
}
Expand description
Shaped word - memory of the glyph_infos and glyph_positions is owned by HarfBuzz,
therefore the buf
and font
have to live as least as long as the word is in use.
Fields§
§buf: &'a HbBuffer<'a>
§scaled_font: &'a HbScaledFont<'a>
§glyph_infos: CVec<HbGlyphInfo>
§glyph_positions: CVec<HbGlyphPosition>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HbShapedWord<'a>
impl<'a> RefUnwindSafe for HbShapedWord<'a>
impl<'a> !Send for HbShapedWord<'a>
impl<'a> !Sync for HbShapedWord<'a>
impl<'a> Unpin for HbShapedWord<'a>
impl<'a> UnwindSafe for HbShapedWord<'a>
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