pub struct ShapedText {
pub glyph_ids: Vec<u16>,
pub advances: Vec<f64>,
pub width: f64,
}Expand description
Result of shaping a text string.
Fields§
§glyph_ids: Vec<u16>Glyph IDs from shaping.
advances: Vec<f64>Per-glyph advances in points.
width: f64Total width in points.
Trait Implementations§
Source§impl Clone for ShapedText
impl Clone for ShapedText
Source§fn clone(&self) -> ShapedText
fn clone(&self) -> ShapedText
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShapedText
impl RefUnwindSafe for ShapedText
impl Send for ShapedText
impl Sync for ShapedText
impl Unpin for ShapedText
impl UnsafeUnpin for ShapedText
impl UnwindSafe for ShapedText
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