pub struct WindowsMetrics0 {
Show 30 fields pub version: u16, pub average_char_width: i16, pub weight_class: u16, pub width_class: u16, pub embedding_flags: EmbeddingFlags, pub subscript_x_size: i16, pub subscript_y_size: i16, pub subscript_x_offset: i16, pub subscript_y_offset: i16, pub superscript_x_size: i16, pub superscript_y_size: i16, pub superscript_x_offset: i16, pub superscript_y_offset: i16, pub strikeout_size: i16, pub strikeout_position: i16, pub family_class: i16, pub panose: [u8; 10], pub unicode_range1: u32, pub unicode_range2: u32, pub unicode_range3: u32, pub unicode_range4: u32, pub vendor_id: Tag, pub selection_flags: SelectionFlags, pub first_char_index: u16, pub last_char_index: u16, pub typographic_ascender: i16, pub typographic_descender: i16, pub typographic_line_gap: i16, pub windows_ascender: u16, pub windows_descender: u16,
}
Expand description

OS/2 and Windows metrics of version 0.

Fields§

§version: u16§average_char_width: i16§weight_class: u16§width_class: u16§embedding_flags: EmbeddingFlags§subscript_x_size: i16§subscript_y_size: i16§subscript_x_offset: i16§subscript_y_offset: i16§superscript_x_size: i16§superscript_y_size: i16§superscript_x_offset: i16§superscript_y_offset: i16§strikeout_size: i16§strikeout_position: i16§family_class: i16§panose: [u8; 10]§unicode_range1: u32§unicode_range2: u32§unicode_range3: u32§unicode_range4: u32§vendor_id: Tag§selection_flags: SelectionFlags§first_char_index: u16§last_char_index: u16§typographic_ascender: i16§typographic_descender: i16§typographic_line_gap: i16§windows_ascender: u16§windows_descender: u16

Trait Implementations§

source§

impl Clone for WindowsMetrics0

source§

fn clone(&self) -> WindowsMetrics0

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for WindowsMetrics0

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for WindowsMetrics0

source§

fn default() -> WindowsMetrics0

Returns the “default value” for a type. Read more
source§

impl Read for WindowsMetrics0

source§

fn read<T: Read>(tape: &mut T) -> Result<Self>

Read a value.
source§

impl Copy for WindowsMetrics0

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.