#[repr(C, packed(1))]pub struct LongMetric {
pub advance: BigEndian<u16>,
pub side_bearing: BigEndian<i16>,
}
Fields§
§advance: BigEndian<u16>
Advance width/height, in font design units.
side_bearing: BigEndian<i16>
Glyph leading (left/top) side bearing, in font design units.
Implementations§
source§impl LongMetric
impl LongMetric
Trait Implementations§
source§impl Clone for LongMetric
impl Clone for LongMetric
source§fn clone(&self) -> LongMetric
fn clone(&self) -> LongMetric
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 LongMetric
impl Debug for LongMetric
source§impl FixedSize for LongMetric
impl FixedSize for LongMetric
source§const RAW_BYTE_LEN: usize = 4usize
const RAW_BYTE_LEN: usize = 4usize
The raw size of this type, in bytes. Read more
source§impl Hash for LongMetric
impl Hash for LongMetric
source§impl Ord for LongMetric
impl Ord for LongMetric
source§fn cmp(&self, other: &LongMetric) -> Ordering
fn cmp(&self, other: &LongMetric) -> 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 LongMetric
impl PartialEq for LongMetric
source§impl PartialOrd for LongMetric
impl PartialOrd for LongMetric
source§impl<'a> SomeRecord<'a> for LongMetric
impl<'a> SomeRecord<'a> for LongMetric
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for LongMetric
impl Copy for LongMetric
impl Eq for LongMetric
impl StructuralPartialEq for LongMetric
Auto Trait Implementations§
impl Freeze for LongMetric
impl RefUnwindSafe for LongMetric
impl Send for LongMetric
impl Sync for LongMetric
impl Unpin for LongMetric
impl UnwindSafe for LongMetric
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
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)