Struct allsorts_no_std::tables::TableRecord [−][src]
An entry in the Offset Table
https://docs.microsoft.com/en-us/typography/opentype/spec/otff#organization-of-an-opentype-font
Fields
table_tag: u32
checksum: u32
offset: u32
length: u32
Implementations
impl TableRecord
[src]
pub const SIZE: usize
[src]
pub fn read_table<'a>(
&self,
scope: &ReadScope<'a>
) -> Result<ReadScope<'a>, ParseError>
[src]
&self,
scope: &ReadScope<'a>
) -> Result<ReadScope<'a>, ParseError>
Trait Implementations
impl Clone for TableRecord
[src]
fn clone(&self) -> TableRecord
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TableRecord
[src]
impl Debug for TableRecord
[src]
impl Hash for TableRecord
[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<TableRecord> for TableRecord
[src]
fn eq(&self, other: &TableRecord) -> bool
[src]
fn ne(&self, other: &TableRecord) -> bool
[src]
impl PartialOrd<TableRecord> for TableRecord
[src]
fn partial_cmp(&self, other: &TableRecord) -> 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> ReadFrom<'a> for TableRecord
[src]
type ReadType = ((U32Be, U32Be), (U32Be, U32Be))
fn from(
((table_tag, checksum), (offset, length)): ((u32, u32), (u32, u32))
) -> Self
[src]
((table_tag, checksum), (offset, length)): ((u32, u32), (u32, u32))
) -> Self
impl StructuralPartialEq for TableRecord
[src]
impl WriteBinary<&'_ TableRecord> for TableRecord
[src]
type Output = ()
The type of the value returned by write
.
fn write<C: WriteContext>(
ctxt: &mut C,
table: &TableRecord
) -> Result<(), WriteError>
[src]
ctxt: &mut C,
table: &TableRecord
) -> Result<(), WriteError>
Auto Trait Implementations
impl RefUnwindSafe for TableRecord
impl Send for TableRecord
impl Sync for TableRecord
impl Unpin for TableRecord
impl UnwindSafe for TableRecord
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> ReadBinary<'a> for T where
T: ReadUnchecked<'a>,
[src]
T: ReadUnchecked<'a>,
type HostType = <T as ReadUnchecked<'a>>::HostType
pub fn read(
&mut ReadCtxt<'a>
) -> Result<<T as ReadBinary<'a>>::HostType, ParseError>
[src]
&mut ReadCtxt<'a>
) -> Result<<T as ReadBinary<'a>>::HostType, ParseError>
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<'a, T> ReadFixedSizeDep<'a> for T where
T: ReadUnchecked<'a>,
[src]
T: ReadUnchecked<'a>,
impl<'a, T> ReadUnchecked<'a> for T where
T: ReadFrom<'a>,
[src]
T: ReadFrom<'a>,
type HostType = T
pub const SIZE: usize
[src]
pub unsafe fn read_unchecked(
&mut ReadCtxt<'a>
) -> <T as ReadUnchecked<'a>>::HostType
[src]
&mut ReadCtxt<'a>
) -> <T as ReadUnchecked<'a>>::HostType
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,