Struct read_fonts::tables::base::FeatMinMaxRecord
source · #[repr(C, packed(1))]pub struct FeatMinMaxRecord {
pub feature_table_tag: BigEndian<Tag>,
pub min_coord_offset: BigEndian<Nullable<Offset16>>,
pub max_coord_offset: BigEndian<Nullable<Offset16>>,
}
Expand description
Fields§
§feature_table_tag: BigEndian<Tag>
4-byte feature identification tag — must match feature tag in FeatureList
min_coord_offset: BigEndian<Nullable<Offset16>>
Offset to BaseCoord table that defines the minimum extent value, from beginning of MinMax table (may be NULL)
max_coord_offset: BigEndian<Nullable<Offset16>>
Offset to BaseCoord table that defines the maximum extent value, from beginning of MinMax table (may be NULL)
Implementations§
source§impl FeatMinMaxRecord
impl FeatMinMaxRecord
sourcepub fn feature_table_tag(&self) -> Tag
pub fn feature_table_tag(&self) -> Tag
4-byte feature identification tag — must match feature tag in FeatureList
sourcepub fn min_coord_offset(&self) -> Nullable<Offset16>
pub fn min_coord_offset(&self) -> Nullable<Offset16>
Offset to BaseCoord table that defines the minimum extent value, from beginning of MinMax table (may be NULL)
sourcepub fn min_coord<'a>(
&self,
data: FontData<'a>,
) -> Option<Result<MinMax<'a>, ReadError>>
pub fn min_coord<'a>( &self, data: FontData<'a>, ) -> Option<Result<MinMax<'a>, ReadError>>
Offset to BaseCoord table that defines the minimum extent value, from beginning of MinMax table (may be NULL)
The data
argument should be retrieved from the parent table
By calling its offset_data
method.
sourcepub fn max_coord_offset(&self) -> Nullable<Offset16>
pub fn max_coord_offset(&self) -> Nullable<Offset16>
Offset to BaseCoord table that defines the maximum extent value, from beginning of MinMax table (may be NULL)
sourcepub fn max_coord<'a>(
&self,
data: FontData<'a>,
) -> Option<Result<MinMax<'a>, ReadError>>
pub fn max_coord<'a>( &self, data: FontData<'a>, ) -> Option<Result<MinMax<'a>, ReadError>>
Offset to BaseCoord table that defines the maximum extent value, from beginning of MinMax table (may be NULL)
The data
argument should be retrieved from the parent table
By calling its offset_data
method.
Trait Implementations§
source§impl Clone for FeatMinMaxRecord
impl Clone for FeatMinMaxRecord
source§fn clone(&self) -> FeatMinMaxRecord
fn clone(&self) -> FeatMinMaxRecord
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FeatMinMaxRecord
impl Debug for FeatMinMaxRecord
source§impl FixedSize for FeatMinMaxRecord
impl FixedSize for FeatMinMaxRecord
source§const RAW_BYTE_LEN: usize = 8usize
const RAW_BYTE_LEN: usize = 8usize
source§impl<'a> SomeRecord<'a> for FeatMinMaxRecord
impl<'a> SomeRecord<'a> for FeatMinMaxRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for FeatMinMaxRecord
impl Copy for FeatMinMaxRecord
Auto Trait Implementations§
impl Freeze for FeatMinMaxRecord
impl RefUnwindSafe for FeatMinMaxRecord
impl Send for FeatMinMaxRecord
impl Sync for FeatMinMaxRecord
impl Unpin for FeatMinMaxRecord
impl UnwindSafe for FeatMinMaxRecord
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
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
bits
as &Self
.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)