Struct allsorts_no_std::tables::HeadTable [−][src]
Fields
major_version: u16
minor_version: u16
font_revision: u32
check_sum_adjustment: u32
magic_number: u32
flags: u16
units_per_em: u16
created: i64
modified: i64
x_min: i16
y_min: i16
x_max: i16
y_max: i16
mac_style: u16
lowest_rec_ppem: u16
font_direction_hint: i16
index_to_loc_format: IndexToLocFormat
glyph_data_format: i16
Implementations
impl HeadTable
[src]
Trait Implementations
impl Clone for HeadTable
[src]
impl Debug for HeadTable
[src]
impl Hash for HeadTable
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<HeadTable> for HeadTable
[src]
impl PartialOrd<HeadTable> for HeadTable
[src]
fn partial_cmp(&self, other: &HeadTable) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> ReadBinary<'a> for HeadTable
[src]
impl StructuralPartialEq for HeadTable
[src]
impl<'a> WriteBinary<&'_ HeadTable> for HeadTable
[src]
type Output = Placeholder<U32Be, u32>
The type of the value returned by write
.
fn write<C: WriteContext>(
ctxt: &mut C,
table: &HeadTable
) -> Result<Self::Output, WriteError>
[src]
ctxt: &mut C,
table: &HeadTable
) -> Result<Self::Output, WriteError>
Writes the table to the WriteContext
and returns a placeholder to the check_sum_adjustment
field.
The check_sum_adjustment
field requires special handling to calculate. See:
https://docs.microsoft.com/en-us/typography/opentype/spec/head
Auto Trait Implementations
impl RefUnwindSafe for HeadTable
impl Send for HeadTable
impl Sync for HeadTable
impl Unpin for HeadTable
impl UnwindSafe for HeadTable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> ReadBinaryDep<'a> for T where
T: ReadBinary<'a>,
[src]
T: ReadBinary<'a>,
type Args = ()
type HostType = <T as ReadBinary<'a>>::HostType
pub fn read_dep(
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
[src]
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, HostType> WriteBinaryDep<HostType> for T where
T: WriteBinary<HostType>,
[src]
T: WriteBinary<HostType>,
type Args = ()
The type of the arguments supplied to write_dep
.
type Output = <T as WriteBinary<HostType>>::Output
The type of the value returned by write_dep
.
pub fn write_dep<C>(
&mut C,
HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,
[src]
&mut C,
HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,