[−][src]Struct allsorts::woff::TableDirectoryEntry
Fields
tag: u32
offset: u32
comp_length: u32
orig_length: u32
orig_checksum: u32
Methods
impl TableDirectoryEntry
[src]
pub fn read_table<'a>(
&self,
scope: &ReadScope<'a>
) -> Result<ReadBuf<'a>, ParseError>
[src]
&self,
scope: &ReadScope<'a>
) -> Result<ReadBuf<'a>, ParseError>
Read and uncompress the contents of a table entry
Trait Implementations
impl<'a> ReadFrom<'a> for TableDirectoryEntry
[src]
type ReadType = ((U32Be, U32Be, U32Be), (U32Be, U32Be))
fn from(
((tag, offset, comp_length), (orig_length, orig_checksum)): ((u32, u32, u32), (u32, u32))
) -> Self
[src]
((tag, offset, comp_length), (orig_length, orig_checksum)): ((u32, u32, u32), (u32, u32))
) -> Self
impl Clone for TableDirectoryEntry
[src]
fn clone(&self) -> TableDirectoryEntry
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TableDirectoryEntry
[src]
Auto Trait Implementations
impl Send for TableDirectoryEntry
impl Sync for TableDirectoryEntry
impl Unpin for TableDirectoryEntry
impl UnwindSafe for TableDirectoryEntry
impl RefUnwindSafe for TableDirectoryEntry
Blanket Implementations
impl<'a, T> ReadBinary<'a> for T where
T: ReadUnchecked<'a>,
[src]
T: ReadUnchecked<'a>,
type HostType = <T as ReadUnchecked<'a>>::HostType
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
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
const SIZE: usize
[src]
unsafe fn read_unchecked(
&mut ReadCtxt<'a>
) -> <T as ReadUnchecked<'a>>::HostType
[src]
&mut ReadCtxt<'a>
) -> <T as ReadUnchecked<'a>>::HostType
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,