Struct sfnt::Record [−]
pub struct Record<'a> { pub tag: &'a str, pub checksum: u32, pub offset: u32, pub length: u32, }
An SFNT file table record.
Fields
tag: &'a str
The name of the table.
checksum: u32
The checksum of the the table.
offset: u32
The byte offset of the table in the SFNT file.
length: u32
The byte length of the table.
Trait Implementations
impl<'a> Copy for Record<'a>
[src]
impl<'a> Copy for Record<'a>
impl<'a> Clone for Record<'a>
[src]
impl<'a> Clone for Record<'a>
fn clone(&self) -> Record<'a>
[src]
fn clone(&self) -> Record<'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 Record<'a>
[src]
impl<'a> Debug for Record<'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 Record<'a>
[src]
impl<'a> PartialEq for Record<'a>
fn eq(&self, other: &Record<'a>) -> bool
[src]
fn eq(&self, other: &Record<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Record<'a>) -> bool
[src]
fn ne(&self, other: &Record<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for Record<'a>
[src]
impl<'a> Eq for Record<'a>
impl<'a> Extract<'a, ()> for Record<'a>
impl<'a> Extract<'a, ()> for Record<'a>
fn extract(s: &mut Stream<'a>, _: ()) -> ExtractResult<'a, Self>
fn extract(s: &mut Stream<'a>, _: ()) -> ExtractResult<'a, Self>
Extracts a value of this type from the supplied stream of bytes. Read more
impl<'a> Span for Record<'a>
impl<'a> Span for Record<'a>
const SPAN: usize
SPAN: usize = 16
The number of bytes spanned by values of this type.