pub struct PretextShapedRun { /* private fields */ }Expand description
Immutable positioned glyphs and the font runs that produced them.
Implementations§
Source§impl PretextShapedRun
impl PretextShapedRun
pub fn new( kind: PretextGlyphRunKind, glyphs: Vec<PretextShapedGlyph>, font_runs: Vec<PretextShapedFontRun>, advance_x: f64, advance_y: f64, ) -> PretextShapedRun
pub fn kind(&self) -> PretextGlyphRunKind
pub fn glyphs(&self) -> &[PretextShapedGlyph]
pub fn font_runs(&self) -> &[PretextShapedFontRun]
pub fn advance_x(&self) -> f64
pub fn advance_y(&self) -> f64
pub fn has_missing_glyphs(&self) -> bool
pub fn is_shaped(&self) -> bool
Trait Implementations§
Source§impl Clone for PretextShapedRun
impl Clone for PretextShapedRun
Source§fn clone(&self) -> PretextShapedRun
fn clone(&self) -> PretextShapedRun
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 moreSource§impl Debug for PretextShapedRun
impl Debug for PretextShapedRun
Source§impl PartialEq for PretextShapedRun
impl PartialEq for PretextShapedRun
impl StructuralPartialEq for PretextShapedRun
Auto Trait Implementations§
impl Freeze for PretextShapedRun
impl RefUnwindSafe for PretextShapedRun
impl Send for PretextShapedRun
impl Sync for PretextShapedRun
impl Unpin for PretextShapedRun
impl UnsafeUnpin for PretextShapedRun
impl UnwindSafe for PretextShapedRun
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