Struct sfnt::Header
[−]
pub struct Header { pub version: Fixed16_16, pub num_tables: u16, pub search_range: u16, pub entry_selector: u16, pub range_shift: u16, }
An SFNT file header.
Fields
version: Fixed16_16
The SFNT file version number.
num_tables: u16
The number of tables in the SFNT file.
search_range: u16
The value of (largest power of two <= num_tables) * 16
.
entry_selector: u16
The value of log2(largest power of two <= num_tables)
.
range_shift: u16
The value of (num_tables * 16) - search_range
.
Trait Implementations
impl Copy for Header
[src]
impl Clone for Header
[src]
fn clone(&self) -> Header
[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 Debug for Header
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Header
[src]
fn eq(&self, __arg_0: &Header) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Header) -> bool
[src]
This method tests for !=
.
impl Eq for Header
[src]
impl<'a> Extract<'a, ()> for Header
fn extract(s: &mut Stream<'a>, _: ()) -> ExtractResult<'a, Self>
Extracts a value of this type from the supplied stream of bytes. Read more
impl Span for Header
const SPAN: usize
SPAN: usize = 12
The number of bytes spanned by values of this type.