Struct write_fonts::tables::layout::FeatureRecord
source · pub struct FeatureRecord {
pub feature_tag: Tag,
pub feature: OffsetMarker<Feature>,
}Expand description
Part of FeatureList
Fields§
§feature_tag: Tag4-byte feature identification tag
feature: OffsetMarker<Feature>Offset to Feature table, from beginning of FeatureList
Implementations§
Trait Implementations§
source§impl Clone for FeatureRecord
impl Clone for FeatureRecord
source§fn clone(&self) -> FeatureRecord
fn clone(&self) -> FeatureRecord
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 FeatureRecord
impl Debug for FeatureRecord
source§impl Default for FeatureRecord
impl Default for FeatureRecord
source§fn default() -> FeatureRecord
fn default() -> FeatureRecord
Returns the “default value” for a type. Read more
source§impl FontWrite for FeatureRecord
impl FontWrite for FeatureRecord
source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
fn name(&self) -> &'static str
source§impl FromObjRef<FeatureRecord> for FeatureRecord
impl FromObjRef<FeatureRecord> for FeatureRecord
source§fn from_obj_ref(obj: &FeatureRecord, offset_data: FontData<'_>) -> Self
fn from_obj_ref(obj: &FeatureRecord, offset_data: FontData<'_>) -> Self
Convert
from to an instance of Self, using the provided data to resolve offsets.source§impl Validate for FeatureRecord
impl Validate for FeatureRecord
source§fn validate_impl(&self, ctx: &mut ValidationCtx)
fn validate_impl(&self, ctx: &mut ValidationCtx)
Validate this table. Read more
Auto Trait Implementations§
impl RefUnwindSafe for FeatureRecord
impl Send for FeatureRecord
impl Sync for FeatureRecord
impl Unpin for FeatureRecord
impl UnwindSafe for FeatureRecord
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<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere U: FromObjRef<T>,
source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.