pub struct FontLayout {
pub ascent: u16,
pub descent: u16,
pub leading: u16,
pub advances: Vec<u16>,
pub bounds: Vec<Rect>,
pub kerning: Vec<KerningRecord>,
}
Fields§
§ascent: u16
§descent: u16
§leading: u16
§advances: Vec<u16>
§bounds: Vec<Rect>
§kerning: Vec<KerningRecord>
Trait Implementations§
Source§impl Clone for FontLayout
impl Clone for FontLayout
Source§fn clone(&self) -> FontLayout
fn clone(&self) -> FontLayout
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 FontLayout
impl Debug for FontLayout
Source§impl<'de> Deserialize<'de> for FontLayout
impl<'de> Deserialize<'de> for FontLayout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for FontLayout
impl Hash for FontLayout
Source§impl Ord for FontLayout
impl Ord for FontLayout
Source§fn cmp(&self, other: &FontLayout) -> Ordering
fn cmp(&self, other: &FontLayout) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FontLayout
impl PartialEq for FontLayout
Source§impl PartialOrd for FontLayout
impl PartialOrd for FontLayout
Source§impl Serialize for FontLayout
impl Serialize for FontLayout
impl Eq for FontLayout
impl StructuralPartialEq for FontLayout
Auto Trait Implementations§
impl Freeze for FontLayout
impl RefUnwindSafe for FontLayout
impl Send for FontLayout
impl Sync for FontLayout
impl Unpin for FontLayout
impl UnwindSafe for FontLayout
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