pub struct BoxMetrics {
pub width: Length,
pub height: Length,
pub depth: Length,
pub shift: Length,
}Expand description
TeX box dimensions.
Fields§
§width: LengthHorizontal extent.
height: LengthHeight above baseline.
depth: LengthDepth below baseline.
shift: LengthShift applied when this box is placed in a parent list.
Implementations§
Source§impl BoxMetrics
impl BoxMetrics
Sourcepub const fn baseline_offset(&self) -> Length
pub const fn baseline_offset(&self) -> Length
Baseline offset from the top edge of the box.
Sourcepub const fn total_height(&self) -> Length
pub const fn total_height(&self) -> Length
Height plus depth, giving the total vertical extent.
Trait Implementations§
Source§impl Clone for BoxMetrics
impl Clone for BoxMetrics
Source§fn clone(&self) -> BoxMetrics
fn clone(&self) -> BoxMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BoxMetrics
Source§impl Debug for BoxMetrics
impl Debug for BoxMetrics
Source§impl Default for BoxMetrics
impl Default for BoxMetrics
Source§fn default() -> BoxMetrics
fn default() -> BoxMetrics
Returns the “default value” for a type. Read more
impl Eq for BoxMetrics
Source§impl PartialEq for BoxMetrics
impl PartialEq for BoxMetrics
Source§fn eq(&self, other: &BoxMetrics) -> bool
fn eq(&self, other: &BoxMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BoxMetrics
Auto Trait Implementations§
impl Freeze for BoxMetrics
impl RefUnwindSafe for BoxMetrics
impl Send for BoxMetrics
impl Sync for BoxMetrics
impl Unpin for BoxMetrics
impl UnsafeUnpin for BoxMetrics
impl UnwindSafe for BoxMetrics
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