Struct masonry::text2::LayoutMetrics
source · pub struct LayoutMetrics {
pub size: Size,
pub first_baseline: f32,
pub trailing_whitespace_width: f32,
}
Expand description
Metrics describing the layout text.
Fields§
§size: Size
The nominal size of the layout.
first_baseline: f32
The distance from the nominal top of the layout to the first baseline.
trailing_whitespace_width: f32
The width of the layout, inclusive of trailing whitespace.
Trait Implementations§
source§impl Clone for LayoutMetrics
impl Clone for LayoutMetrics
source§fn clone(&self) -> LayoutMetrics
fn clone(&self) -> LayoutMetrics
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 LayoutMetrics
impl Debug for LayoutMetrics
source§impl Default for LayoutMetrics
impl Default for LayoutMetrics
source§fn default() -> LayoutMetrics
fn default() -> LayoutMetrics
Returns the “default value” for a type. Read more
impl Copy for LayoutMetrics
Auto Trait Implementations§
impl Freeze for LayoutMetrics
impl RefUnwindSafe for LayoutMetrics
impl Send for LayoutMetrics
impl Sync for LayoutMetrics
impl Unpin for LayoutMetrics
impl UnwindSafe for LayoutMetrics
Blanket Implementations§
source§impl<T> AsAny for Twhere
T: Any,
impl<T> AsAny for Twhere
T: Any,
source§fn as_dyn_any(&self) -> &(dyn Any + 'static)
fn as_dyn_any(&self) -> &(dyn Any + 'static)
Return self.
source§fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
Return self.
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