pub struct Measure;Expand description
This struct implements the Surface trait and can be used to measure the width of text without drawing anything
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Measure
impl RefUnwindSafe for Measure
impl Send for Measure
impl Sync for Measure
impl Unpin for Measure
impl UnwindSafe for Measure
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
Source§impl<S> DigitsLarge for Swhere
S: Surface,
impl<S> DigitsLarge for Swhere
S: Surface,
Source§impl<S> DigitsMedium for Swhere
S: Surface,
impl<S> DigitsMedium for Swhere
S: Surface,
Source§impl<S> Premium for Swhere
S: Surface,
impl<S> Premium for Swhere
S: Surface,
Write the text with the baseline starting at the given position.
Returns the width of the text in pixels.