Struct embedded_text::utils::font_ext::LineMeasurement
source · pub struct LineMeasurement {
pub width: u32,
pub fits_line: bool,
}Expand description
Result of a measure_line function call.
Fields§
§width: u32The maximum width that still fits into the given width limit.
fits_line: boolWhether or not the whole sequence fits into the given width limit.
Implementations§
Trait Implementations§
source§impl Clone for LineMeasurement
impl Clone for LineMeasurement
source§fn clone(&self) -> LineMeasurement
fn clone(&self) -> LineMeasurement
Returns a copy 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 moresource§impl Debug for LineMeasurement
impl Debug for LineMeasurement
source§impl PartialEq for LineMeasurement
impl PartialEq for LineMeasurement
source§fn eq(&self, other: &LineMeasurement) -> bool
fn eq(&self, other: &LineMeasurement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for LineMeasurement
impl Eq for LineMeasurement
impl StructuralPartialEq for LineMeasurement
Auto Trait Implementations§
impl Freeze for LineMeasurement
impl RefUnwindSafe for LineMeasurement
impl Send for LineMeasurement
impl Sync for LineMeasurement
impl Unpin for LineMeasurement
impl UnwindSafe for LineMeasurement
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)