pub struct TableRecord {
pub table_tag: [u8; 4],
pub checksum: u32,
pub offset: u32,
pub length: u32,
}Expand description
Table record in the SFNT header
Fields§
§table_tag: [u8; 4]§checksum: u32§offset: u32§length: u32Implementations§
Source§impl TableRecord
impl TableRecord
pub fn tag_to_string(&self) -> String
pub fn from_reader(reader: &mut FontReader) -> Result<Self>
pub fn write(&self, writer: &mut FontWriter)
pub fn new(tag: [u8; 4], offset: u32, length: u32) -> Self
Trait Implementations§
Source§impl Clone for TableRecord
impl Clone for TableRecord
Source§fn clone(&self) -> TableRecord
fn clone(&self) -> TableRecord
Returns a duplicate 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 moreAuto 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