#[non_exhaustive]pub struct FontExtent {
pub ascent: Points,
pub descent: Points,
pub x_height: Points,
}Expand description
The vertical metrics of the font around an attachment (the style of
its placeholder), which TextAttachment::ascent places it against.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ascent: PointsAbove the baseline (positive).
descent: PointsBelow the baseline (positive).
x_height: PointsHeight of lowercase letters.
Implementations§
Trait Implementations§
Source§impl Clone for FontExtent
impl Clone for FontExtent
impl Copy for FontExtent
Source§impl Debug for FontExtent
impl Debug for FontExtent
Source§impl Default for FontExtent
impl Default for FontExtent
Source§impl PartialEq for FontExtent
impl PartialEq for FontExtent
impl StructuralPartialEq for FontExtent
Auto Trait Implementations§
impl Forget for FontExtent
impl Freeze for FontExtent
impl Move for FontExtent
impl RefUnwindSafe for FontExtent
impl Send for FontExtent
impl Sync for FontExtent
impl Unpin for FontExtent
impl UnsafeUnpin for FontExtent
impl UnwindSafe for FontExtent
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