Struct sfnt::Sfnt
[−]
[src]
pub struct Sfnt<'a> { /* fields omitted */ }
An SFNT file.
Methods
impl<'a> Sfnt<'a>
[src]
pub fn bytes(&self) -> &'a [u8]
[src]
Returns the bytes in this file.
pub fn header(&self) -> Header
[src]
Returns the header in this file.
pub fn records(&self) -> View<'a, Record<'a>, ()>
[src]
Returns the table records in this file.
pub fn get(&self, record: Record) -> &'a [u8]
[src]
Returns the table in this file for the supplied table record.
pub fn find(&self, tag: &str) -> Option<(Record<'a>, &'a [u8])>
[src]
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>
Returns an iterator over the tables in this file.
Trait Implementations
impl<'a> Copy for Sfnt<'a>
[src]
impl<'a> Clone for Sfnt<'a>
[src]
fn clone(&self) -> Sfnt<'a>
[src]
Returns a copy of the value. Read more
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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> PartialEq for Sfnt<'a>
[src]
fn eq(&self, __arg_0: &Sfnt<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Sfnt<'a>) -> bool
[src]
This method tests for !=
.