Struct sfnt::Sfnt [−][src]
pub struct Sfnt<'a> { pub bytes: &'a [u8], pub header: Header, pub records: View<'a, Record<'a>, ()>, }
An SFNT file.
Fields
bytes: &'a [u8]
The bytes in this file.
header: Header
The header of this file.
records: View<'a, Record<'a>, ()>
The table records for the tables in this file.
Methods
impl<'a> Sfnt<'a>
[src]
impl<'a> Sfnt<'a>
pub fn parse(bytes: &'a [u8]) -> ExtractResult<Self>
[src]
pub fn parse(bytes: &'a [u8]) -> ExtractResult<Self>
Parses the supplied SFNT file.
pub fn get(&self, record: Record) -> &'a [u8]
[src]
pub fn get(&self, record: Record) -> &'a [u8]
Returns the table in this file for the supplied table record.
pub fn find(&self, tag: &str) -> Option<(Record<'a>, &'a [u8])>
[src]
pub fn find(&self, tag: &str) -> Option<(Record<'a>, &'a [u8])>
Returns the table in this file with the supplied tag.
ⓘImportant traits for SfntIter<'a>pub fn iter(self) -> SfntIter<'a>
[src]
ⓘImportant traits for SfntIter<'a>
pub fn iter(self) -> SfntIter<'a>
Returns an iterator over the tables in this file.
Trait Implementations
impl<'a> Copy for Sfnt<'a>
[src]
impl<'a> Copy for Sfnt<'a>
impl<'a> Clone for Sfnt<'a>
[src]
impl<'a> Clone for Sfnt<'a>
fn clone(&self) -> Sfnt<'a>
[src]
fn clone(&self) -> Sfnt<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for Sfnt<'a>
[src]
impl<'a> Debug for Sfnt<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> PartialEq for Sfnt<'a>
[src]
impl<'a> PartialEq for Sfnt<'a>
fn eq(&self, other: &Sfnt<'a>) -> bool
[src]
fn eq(&self, other: &Sfnt<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Sfnt<'a>) -> bool
[src]
fn ne(&self, other: &Sfnt<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for Sfnt<'a>
[src]
impl<'a> Eq for Sfnt<'a>