Struct allsorts::woff2::TableDirectoryEntry
source · [−]pub struct TableDirectoryEntry {
pub tag: u32,
pub offset: usize,
pub orig_length: u32,
pub transform_length: Option<u32>,
}
Fields
tag: u32
offset: usize
orig_length: u32
transform_length: Option<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 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
sourceimpl PartialEq<TableDirectoryEntry> for TableDirectoryEntry
impl PartialEq<TableDirectoryEntry> for TableDirectoryEntry
sourcefn eq(&self, other: &TableDirectoryEntry) -> bool
fn eq(&self, other: &TableDirectoryEntry) -> bool
sourceimpl<'a> ReadBinaryDep<'a> for TableDirectoryEntry
impl<'a> ReadBinaryDep<'a> for TableDirectoryEntry
type Args = usize
type HostType = TableDirectoryEntry
fn read_dep(ctxt: &mut ReadCtxt<'a>, offset: usize) -> Result<Self, ParseError>
impl Copy for TableDirectoryEntry
impl Eq for TableDirectoryEntry
impl StructuralEq for TableDirectoryEntry
impl StructuralPartialEq 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