#[repr(C, packed(1))]pub struct SignatureRecord {
pub format: BigEndian<u32>,
pub length: BigEndian<u32>,
pub signature_block_offset: BigEndian<Offset32>,
}
Expand description
Fields§
§format: BigEndian<u32>
Format of the signature
length: BigEndian<u32>
Length of signature in bytes
signature_block_offset: BigEndian<Offset32>
Offset to the signature block from the beginning of the table
Implementations§
Source§impl SignatureRecord
impl SignatureRecord
Sourcepub fn signature_block<'a>(
&self,
data: FontData<'a>,
) -> Result<SignatureBlockFormat1<'a>, ReadError>
pub fn signature_block<'a>( &self, data: FontData<'a>, ) -> Result<SignatureBlockFormat1<'a>, ReadError>
The signature block enclosed within this record.
The data
argument should be retrieved from the parent table
By calling its offset_data
method.
Only format 1 is recognised and read successfully.
Trait Implementations§
Source§impl Clone for SignatureRecord
impl Clone for SignatureRecord
Source§fn clone(&self) -> SignatureRecord
fn clone(&self) -> SignatureRecord
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 moreSource§impl Debug for SignatureRecord
impl Debug for SignatureRecord
Source§impl FixedSize for SignatureRecord
impl FixedSize for SignatureRecord
Source§const RAW_BYTE_LEN: usize = 12usize
const RAW_BYTE_LEN: usize = 12usize
The raw size of this type, in bytes. Read more
Source§impl<'a> SomeRecord<'a> for SignatureRecord
impl<'a> SomeRecord<'a> for SignatureRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for SignatureRecord
impl Copy for SignatureRecord
Auto Trait Implementations§
impl Freeze for SignatureRecord
impl RefUnwindSafe for SignatureRecord
impl Send for SignatureRecord
impl Sync for SignatureRecord
impl Unpin for SignatureRecord
impl UnwindSafe for SignatureRecord
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
.