pub struct TextMeasure { /* private fields */ }Expand description
The width a run of text lays out to, shaped exactly as TextLayer draws
it: the system sans-serif family, advanced shaping, one line.
GPU-free — it owns a font system and nothing else — so layout that depends on a measurement can be tested without a device. The fonts are the machine’s, so a width is only ever compared against another width from the same measurer, never against a written-down number.
Implementations§
Source§impl TextMeasure
impl TextMeasure
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TextMeasure
impl !RefUnwindSafe for TextMeasure
impl Send for TextMeasure
impl Sync for TextMeasure
impl Unpin for TextMeasure
impl UnsafeUnpin for TextMeasure
impl !UnwindSafe for TextMeasure
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