pub struct LineExtents<T> {
pub ascender: T,
pub descender: T,
}Expand description
The two ends of a line, in whatever unit a caller uses.
Separate from LineBox because the gap after a line is not part of
where it begins and ends, and the metrics built on a line use only the
two ends.
Fields§
§ascender: THeight of the line above the baseline. Never negative.
descender: TDepth of the line below the baseline, as a negative value. Never positive.
Trait Implementations§
Source§impl<T: Clone> Clone for LineExtents<T>
impl<T: Clone> Clone for LineExtents<T>
Source§fn clone(&self) -> LineExtents<T>
fn clone(&self) -> LineExtents<T>
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<T: Copy> Copy for LineExtents<T>
Source§impl<T: Debug> Debug for LineExtents<T>
impl<T: Debug> Debug for LineExtents<T>
Source§impl<T: Default> Default for LineExtents<T>
impl<T: Default> Default for LineExtents<T>
Source§fn default() -> LineExtents<T>
fn default() -> LineExtents<T>
Returns the “default value” for a type. Read more
impl<T: Eq> Eq for LineExtents<T>
Source§impl<T: PartialEq> PartialEq for LineExtents<T>
impl<T: PartialEq> PartialEq for LineExtents<T>
impl<T: PartialEq> StructuralPartialEq for LineExtents<T>
Auto Trait Implementations§
impl<T> Freeze for LineExtents<T>where
T: Freeze,
impl<T> RefUnwindSafe for LineExtents<T>where
T: RefUnwindSafe,
impl<T> Send for LineExtents<T>where
T: Send,
impl<T> Sync for LineExtents<T>where
T: Sync,
impl<T> Unpin for LineExtents<T>where
T: Unpin,
impl<T> UnsafeUnpin for LineExtents<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for LineExtents<T>where
T: UnwindSafe,
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