#[repr(C, packed(1))]pub struct TableRecord {
pub tag: BigEndian<Tag>,
pub checksum: BigEndian<u32>,
pub offset: BigEndian<u32>,
pub length: BigEndian<u32>,
}
Expand description
Record for a table in a font.
Fields§
§tag: BigEndian<Tag>
Table identifier.
checksum: BigEndian<u32>
Checksum for the table.
offset: BigEndian<u32>
Offset from the beginning of the font data.
length: BigEndian<u32>
Length of the table.
Implementations§
Trait Implementations§
Source§impl Clone for TableRecord
impl Clone for TableRecord
Source§fn clone(&self) -> TableRecord
fn clone(&self) -> TableRecord
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TableRecord
impl Debug for TableRecord
Source§impl FixedSize for TableRecord
impl FixedSize for TableRecord
Source§const RAW_BYTE_LEN: usize = 16usize
const RAW_BYTE_LEN: usize = 16usize
The raw size of this type, in bytes. Read more
Source§impl Hash for TableRecord
impl Hash for TableRecord
Source§impl Ord for TableRecord
impl Ord for TableRecord
Source§fn cmp(&self, other: &TableRecord) -> Ordering
fn cmp(&self, other: &TableRecord) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TableRecord
impl PartialEq for TableRecord
Source§impl PartialOrd for TableRecord
impl PartialOrd for TableRecord
impl AnyBitPattern for TableRecord
impl Copy for TableRecord
impl Eq for TableRecord
impl StructuralPartialEq for TableRecord
Auto Trait Implementations§
impl Freeze for TableRecord
impl RefUnwindSafe for TableRecord
impl Send for TableRecord
impl Sync for TableRecord
impl Unpin for TableRecord
impl UnwindSafe for TableRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.