Struct allsorts::woff::TableDirectoryEntry
source · [−]pub struct TableDirectoryEntry {
pub tag: u32,
pub offset: u32,
pub comp_length: u32,
pub orig_length: u32,
pub orig_checksum: u32,
}
Fields
tag: u32
offset: u32
comp_length: u32
orig_length: u32
orig_checksum: u32
Implementations
sourceimpl TableDirectoryEntry
impl TableDirectoryEntry
sourcepub fn read_table<'a>(
&self,
scope: &ReadScope<'a>
) -> Result<ReadBuf<'a>, ParseError>
pub fn read_table<'a>(
&self,
scope: &ReadScope<'a>
) -> Result<ReadBuf<'a>, ParseError>
Read and uncompress the contents of a table entry
Trait Implementations
sourceimpl Clone for TableDirectoryEntry
impl Clone for TableDirectoryEntry
sourcefn clone(&self) -> TableDirectoryEntry
fn clone(&self) -> TableDirectoryEntry
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TableDirectoryEntry
impl Debug for TableDirectoryEntry
Auto Trait Implementations
impl RefUnwindSafe for TableDirectoryEntry
impl Send for TableDirectoryEntry
impl Sync for TableDirectoryEntry
impl Unpin for TableDirectoryEntry
impl UnwindSafe for TableDirectoryEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Twhere
T: ReadUnchecked<'a>,
impl<'a, T> ReadBinary<'a> for Twhere
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 Twhere
T: ReadBinary<'a>,
impl<'a, T> ReadBinaryDep<'a> for Twhere
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 Twhere
T: ReadUnchecked<'a>,
impl<'a, T> ReadFixedSizeDep<'a> for Twhere
T: ReadUnchecked<'a>,
sourceimpl<'a, T> ReadUnchecked<'a> for Twhere
T: ReadFrom<'a>,
impl<'a, T> ReadUnchecked<'a> for Twhere
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