Struct allsorts::tables::LongHorMetric
source · [−]Expand description
A longHorMetric
record in the hmtx
table.
https://docs.microsoft.com/en-us/typography/opentype/spec/hmtx
This struct is also used for LongVerMetric vmtx
table.
Fields
advance_width: u16
lsb: i16
Trait Implementations
sourceimpl Clone for LongHorMetric
impl Clone for LongHorMetric
sourcefn clone(&self) -> LongHorMetric
fn clone(&self) -> LongHorMetric
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LongHorMetric
impl Debug for LongHorMetric
sourceimpl PartialEq<LongHorMetric> for LongHorMetric
impl PartialEq<LongHorMetric> for LongHorMetric
sourcefn eq(&self, other: &LongHorMetric) -> bool
fn eq(&self, other: &LongHorMetric) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LongHorMetric) -> bool
fn ne(&self, other: &LongHorMetric) -> bool
This method tests for !=
.
sourceimpl<'a> ReadFrom<'a> for LongHorMetric
impl<'a> ReadFrom<'a> for LongHorMetric
sourceimpl<'a> WriteBinary<LongHorMetric> for LongHorMetric
impl<'a> WriteBinary<LongHorMetric> for LongHorMetric
sourcefn write<C: WriteContext>(
ctxt: &mut C,
metric: LongHorMetric
) -> Result<(), WriteError>
fn write<C: WriteContext>(
ctxt: &mut C,
metric: LongHorMetric
) -> Result<(), WriteError>
Write the binary representation of Self to ctxt
.
impl Copy for LongHorMetric
impl StructuralPartialEq for LongHorMetric
Auto Trait Implementations
impl RefUnwindSafe for LongHorMetric
impl Send for LongHorMetric
impl Sync for LongHorMetric
impl Unpin for LongHorMetric
impl UnwindSafe for LongHorMetric
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, T> ReadBinary<'a> for T where
T: ReadUnchecked<'a>,
impl<'a, T> ReadBinary<'a> for T where
T: ReadUnchecked<'a>,
type HostType = <T as ReadUnchecked<'a>>::HostType
fn read(
ctxt: &mut ReadCtxt<'a>
) -> Result<<T as ReadBinary<'a>>::HostType, ParseError>
sourceimpl<'a, T> ReadBinaryDep<'a> for T where
T: ReadBinary<'a>,
impl<'a, T> ReadBinaryDep<'a> for T where
T: ReadBinary<'a>,
type Args = ()
type HostType = <T as ReadBinary<'a>>::HostType
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
sourceimpl<'a, T> ReadFixedSizeDep<'a> for T where
T: ReadUnchecked<'a>,
impl<'a, T> ReadFixedSizeDep<'a> for T where
T: ReadUnchecked<'a>,
sourceimpl<'a, T> ReadUnchecked<'a> for T where
T: ReadFrom<'a>,
impl<'a, T> ReadUnchecked<'a> for T where
T: ReadFrom<'a>,
type HostType = T
sourceunsafe fn read_unchecked(
ctxt: &mut ReadCtxt<'a>
) -> <T as ReadUnchecked<'a>>::HostType
unsafe fn read_unchecked(
ctxt: &mut ReadCtxt<'a>
) -> <T as ReadUnchecked<'a>>::HostType
Must read exactly SIZE
bytes.
Unsafe as it avoids prohibitively expensive per-byte bounds checking. Read more
sourceimpl<T, HostType> WriteBinaryDep<HostType> for T where
T: WriteBinary<HostType>,
impl<T, HostType> WriteBinaryDep<HostType> for T where
T: WriteBinary<HostType>,
type Output = <T as WriteBinary<HostType>>::Output
type Output = <T as WriteBinary<HostType>>::Output
The type of the value returned by write_dep
.
sourcefn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,
fn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,
Write the binary representation of Self to ctxt
.