Struct Shaped Text
pub struct ShapedText { /* private fields */ }Expand description
Owned shaped run. Advance is pen movement, rather than glyph ink bounds.
Implementations§
§impl ShapedText
impl ShapedText
pub fn glyphs(&self) -> &[ShapedGlyph]
pub fn advance(&self) -> (f64, f64)
pub fn direction(&self) -> TextDirection
pub fn missing_glyphs(&self) -> usize
Trait Implementations§
§impl Clone for ShapedText
impl Clone for ShapedText
§fn clone(&self) -> ShapedText
fn clone(&self) -> ShapedText
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ShapedText
impl Debug for ShapedText
§impl PartialEq for ShapedText
impl PartialEq for ShapedText
impl StructuralPartialEq for ShapedText
Auto 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§
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more