Trait read_fonts::traversal::SomeTable

source ·
pub trait SomeTable<'a> {
    // Required methods
    fn type_name(&self) -> &str;
    fn get_field(&self, idx: usize) -> Option<Field<'a>>;
}
Expand description

A generic table type.

This is intended to be used as a trait object, and is a way of generically representing any table, providing ordered access to that table’s fields.

Required Methods§

source

fn type_name(&self) -> &str

The name of this table

source

fn get_field(&self, idx: usize) -> Option<Field<'a>>

Access this table’s fields, in declaration order.

Implementations§

source§

impl<'a> dyn SomeTable<'a> + 'a

source

pub fn iter(&self) -> impl Iterator<Item = Field<'a>> + '_

Returns an iterator over this table’s fields.

Trait Implementations§

source§

impl<'a> Debug for dyn SomeTable<'a> + 'a

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> SomeTable<'a> for Box<dyn SomeTable<'a> + 'a>

source§

fn type_name(&self) -> &str

The name of this table
source§

fn get_field(&self, idx: usize) -> Option<Field<'a>>

Access this table’s fields, in declaration order.

Implementations on Foreign Types§

source§

impl<'a> SomeTable<'a> for Box<dyn SomeTable<'a> + 'a>

source§

fn type_name(&self) -> &str

source§

fn get_field(&self, idx: usize) -> Option<Field<'a>>

Implementors§

source§

impl<'a> SomeTable<'a> for BaseCoord<'a>

source§

impl<'a> SomeTable<'a> for IndexSubtable<'a>

source§

impl<'a> SomeTable<'a> for CmapSubtable<'a>

source§

impl<'a> SomeTable<'a> for ClipBox<'a>

source§

impl<'a> SomeTable<'a> for Paint<'a>

source§

impl<'a> SomeTable<'a> for CaretValue<'a>

source§

impl<'a> SomeTable<'a> for Glyph<'a>

source§

impl<'a> SomeTable<'a> for AnchorTable<'a>

source§

impl<'a> SomeTable<'a> for read_fonts::tables::gpos::ExtensionSubtable<'a>

source§

impl<'a> SomeTable<'a> for PairPos<'a>

source§

impl<'a> SomeTable<'a> for PositionLookup<'a>

source§

impl<'a> SomeTable<'a> for SinglePos<'a>

source§

impl<'a> SomeTable<'a> for read_fonts::tables::gsub::ExtensionSubtable<'a>

source§

impl<'a> SomeTable<'a> for SingleSubst<'a>

source§

impl<'a> SomeTable<'a> for SubstitutionLookup<'a>

source§

impl<'a> SomeTable<'a> for ChainedSequenceContext<'a>

source§

impl<'a> SomeTable<'a> for ClassDef<'a>

source§

impl<'a> SomeTable<'a> for CoverageTable<'a>

source§

impl<'a> SomeTable<'a> for DeviceOrVariationIndex<'a>

source§

impl<'a> SomeTable<'a> for FeatureParams<'a>

source§

impl<'a> SomeTable<'a> for SequenceContext<'a>

source§

impl<'a> SomeTable<'a> for Loca<'a>

source§

impl<'a> SomeTable<'a> for FdSelect<'a>

source§

impl<'a> SomeTable<'a> for AxisValue<'a>

source§

impl<'a> SomeTable<'a> for DeltaSetIndexMap<'a>

source§

impl<'a> SomeTable<'a> for Component

source§

impl<'a> SomeTable<'a> for RecordResolver<'a>

source§

impl<'a> SomeTable<'a> for Avar<'a>

source§

impl<'a> SomeTable<'a> for Axis<'a>

source§

impl<'a> SomeTable<'a> for Base<'a>

source§

impl<'a> SomeTable<'a> for BaseCoordFormat1<'a>

source§

impl<'a> SomeTable<'a> for BaseCoordFormat2<'a>

source§

impl<'a> SomeTable<'a> for BaseCoordFormat3<'a>

source§

impl<'a> SomeTable<'a> for BaseScript<'a>

source§

impl<'a> SomeTable<'a> for BaseScriptList<'a>

source§

impl<'a> SomeTable<'a> for BaseTagList<'a>

source§

impl<'a> SomeTable<'a> for BaseValues<'a>

source§

impl<'a> SomeTable<'a> for MinMax<'a>

source§

impl<'a> SomeTable<'a> for IndexSubtable1<'a>

source§

impl<'a> SomeTable<'a> for IndexSubtable2<'a>

source§

impl<'a> SomeTable<'a> for IndexSubtable3<'a>

source§

impl<'a> SomeTable<'a> for IndexSubtable4<'a>

source§

impl<'a> SomeTable<'a> for IndexSubtable5<'a>

source§

impl<'a> SomeTable<'a> for IndexSubtableArray<'a>

source§

impl<'a> SomeTable<'a> for Cbdt<'a>

source§

impl<'a> SomeTable<'a> for Cblc<'a>

source§

impl<'a> SomeTable<'a> for Cff2Header<'a>

source§

impl<'a> SomeTable<'a> for CffHeader<'a>

source§

impl<'a> SomeTable<'a> for Cmap0<'a>

source§

impl<'a> SomeTable<'a> for Cmap2<'a>

source§

impl<'a> SomeTable<'a> for Cmap4<'a>

source§

impl<'a> SomeTable<'a> for Cmap6<'a>

source§

impl<'a> SomeTable<'a> for Cmap8<'a>

source§

impl<'a> SomeTable<'a> for Cmap10<'a>

source§

impl<'a> SomeTable<'a> for Cmap12<'a>

source§

impl<'a> SomeTable<'a> for Cmap13<'a>

source§

impl<'a> SomeTable<'a> for Cmap14<'a>

source§

impl<'a> SomeTable<'a> for Cmap<'a>

source§

impl<'a> SomeTable<'a> for DefaultUvs<'a>

source§

impl<'a> SomeTable<'a> for NonDefaultUvs<'a>

source§

impl<'a> SomeTable<'a> for Affine2x3<'a>

source§

impl<'a> SomeTable<'a> for BaseGlyphList<'a>

source§

impl<'a> SomeTable<'a> for ClipBoxFormat1<'a>

source§

impl<'a> SomeTable<'a> for ClipBoxFormat2<'a>

source§

impl<'a> SomeTable<'a> for ClipList<'a>

source§

impl<'a> SomeTable<'a> for ColorLine<'a>

source§

impl<'a> SomeTable<'a> for Colr<'a>

source§

impl<'a> SomeTable<'a> for LayerList<'a>

source§

impl<'a> SomeTable<'a> for PaintColrGlyph<'a>

source§

impl<'a> SomeTable<'a> for PaintColrLayers<'a>

source§

impl<'a> SomeTable<'a> for PaintComposite<'a>

source§

impl<'a> SomeTable<'a> for PaintGlyph<'a>

source§

impl<'a> SomeTable<'a> for PaintLinearGradient<'a>

source§

impl<'a> SomeTable<'a> for PaintRadialGradient<'a>

source§

impl<'a> SomeTable<'a> for PaintRotate<'a>

source§

impl<'a> SomeTable<'a> for PaintRotateAroundCenter<'a>

source§

impl<'a> SomeTable<'a> for PaintScale<'a>

source§

impl<'a> SomeTable<'a> for PaintScaleAroundCenter<'a>

source§

impl<'a> SomeTable<'a> for PaintScaleUniform<'a>

source§

impl<'a> SomeTable<'a> for PaintScaleUniformAroundCenter<'a>

source§

impl<'a> SomeTable<'a> for PaintSkew<'a>

source§

impl<'a> SomeTable<'a> for PaintSkewAroundCenter<'a>

source§

impl<'a> SomeTable<'a> for PaintSolid<'a>

source§

impl<'a> SomeTable<'a> for PaintSweepGradient<'a>

source§

impl<'a> SomeTable<'a> for PaintTransform<'a>

source§

impl<'a> SomeTable<'a> for PaintTranslate<'a>

source§

impl<'a> SomeTable<'a> for PaintVarLinearGradient<'a>

source§

impl<'a> SomeTable<'a> for PaintVarRadialGradient<'a>

source§

impl<'a> SomeTable<'a> for PaintVarRotate<'a>

source§

impl<'a> SomeTable<'a> for PaintVarRotateAroundCenter<'a>

source§

impl<'a> SomeTable<'a> for PaintVarScale<'a>

source§

impl<'a> SomeTable<'a> for PaintVarScaleAroundCenter<'a>

source§

impl<'a> SomeTable<'a> for PaintVarScaleUniform<'a>

source§

impl<'a> SomeTable<'a> for PaintVarScaleUniformAroundCenter<'a>

source§

impl<'a> SomeTable<'a> for PaintVarSkew<'a>

source§

impl<'a> SomeTable<'a> for PaintVarSkewAroundCenter<'a>

source§

impl<'a> SomeTable<'a> for PaintVarSolid<'a>

source§

impl<'a> SomeTable<'a> for PaintVarSweepGradient<'a>

source§

impl<'a> SomeTable<'a> for PaintVarTransform<'a>

source§

impl<'a> SomeTable<'a> for PaintVarTranslate<'a>

source§

impl<'a> SomeTable<'a> for VarAffine2x3<'a>

source§

impl<'a> SomeTable<'a> for VarColorLine<'a>

source§

impl<'a> SomeTable<'a> for Cpal<'a>

source§

impl<'a> SomeTable<'a> for Cvar<'a>

source§

impl<'a> SomeTable<'a> for Ebdt<'a>

source§

impl<'a> SomeTable<'a> for Eblc<'a>

source§

impl<'a> SomeTable<'a> for AxisInstanceArrays<'a>

source§

impl<'a> SomeTable<'a> for Fvar<'a>

source§

impl<'a> SomeTable<'a> for Gasp<'a>

source§

impl<'a> SomeTable<'a> for AttachList<'a>

source§

impl<'a> SomeTable<'a> for AttachPoint<'a>

source§

impl<'a> SomeTable<'a> for CaretValueFormat1<'a>

source§

impl<'a> SomeTable<'a> for CaretValueFormat2<'a>

source§

impl<'a> SomeTable<'a> for CaretValueFormat3<'a>

source§

impl<'a> SomeTable<'a> for Gdef<'a>

source§

impl<'a> SomeTable<'a> for LigCaretList<'a>

source§

impl<'a> SomeTable<'a> for LigGlyph<'a>

source§

impl<'a> SomeTable<'a> for MarkGlyphSets<'a>

source§

impl<'a> SomeTable<'a> for CompositeGlyph<'a>

source§

impl<'a> SomeTable<'a> for Glyf<'a>

source§

impl<'a> SomeTable<'a> for SimpleGlyph<'a>

source§

impl<'a> SomeTable<'a> for AnchorFormat1<'a>

source§

impl<'a> SomeTable<'a> for AnchorFormat2<'a>

source§

impl<'a> SomeTable<'a> for AnchorFormat3<'a>

source§

impl<'a> SomeTable<'a> for BaseArray<'a>

source§

impl<'a> SomeTable<'a> for CursivePosFormat1<'a>

source§

impl<'a> SomeTable<'a> for Gpos<'a>

source§

impl<'a> SomeTable<'a> for LigatureArray<'a>

source§

impl<'a> SomeTable<'a> for LigatureAttach<'a>

source§

impl<'a> SomeTable<'a> for Mark2Array<'a>

source§

impl<'a> SomeTable<'a> for MarkArray<'a>

source§

impl<'a> SomeTable<'a> for MarkBasePosFormat1<'a>

source§

impl<'a> SomeTable<'a> for MarkLigPosFormat1<'a>

source§

impl<'a> SomeTable<'a> for MarkMarkPosFormat1<'a>

source§

impl<'a> SomeTable<'a> for PairPosFormat1<'a>

source§

impl<'a> SomeTable<'a> for PairPosFormat2<'a>

source§

impl<'a> SomeTable<'a> for PairSet<'a>

source§

impl<'a> SomeTable<'a> for SinglePosFormat1<'a>

source§

impl<'a> SomeTable<'a> for SinglePosFormat2<'a>

source§

impl<'a> SomeTable<'a> for AlternateSet<'a>

source§

impl<'a> SomeTable<'a> for AlternateSubstFormat1<'a>

source§

impl<'a> SomeTable<'a> for Gsub<'a>

source§

impl<'a> SomeTable<'a> for Ligature<'a>

source§

impl<'a> SomeTable<'a> for LigatureSet<'a>

source§

impl<'a> SomeTable<'a> for LigatureSubstFormat1<'a>

source§

impl<'a> SomeTable<'a> for MultipleSubstFormat1<'a>

source§

impl<'a> SomeTable<'a> for ReverseChainSingleSubstFormat1<'a>

source§

impl<'a> SomeTable<'a> for Sequence<'a>

source§

impl<'a> SomeTable<'a> for SingleSubstFormat1<'a>

source§

impl<'a> SomeTable<'a> for SingleSubstFormat2<'a>

source§

impl<'a> SomeTable<'a> for GlyphVariationDataHeader<'a>

source§

impl<'a> SomeTable<'a> for Gvar<'a>

source§

impl<'a> SomeTable<'a> for SharedTuples<'a>

source§

impl<'a> SomeTable<'a> for Head<'a>

source§

impl<'a> SomeTable<'a> for Hhea<'a>

source§

impl<'a> SomeTable<'a> for Hmtx<'a>

source§

impl<'a> SomeTable<'a> for Hvar<'a>

source§

impl<'a> SomeTable<'a> for ChainedClassSequenceRule<'a>

source§

impl<'a> SomeTable<'a> for ChainedClassSequenceRuleSet<'a>

source§

impl<'a> SomeTable<'a> for ChainedSequenceContextFormat1<'a>

source§

impl<'a> SomeTable<'a> for ChainedSequenceContextFormat2<'a>

source§

impl<'a> SomeTable<'a> for ChainedSequenceContextFormat3<'a>

source§

impl<'a> SomeTable<'a> for ChainedSequenceRule<'a>

source§

impl<'a> SomeTable<'a> for ChainedSequenceRuleSet<'a>

source§

impl<'a> SomeTable<'a> for CharacterVariantParams<'a>

source§

impl<'a> SomeTable<'a> for ClassDefFormat1<'a>

source§

impl<'a> SomeTable<'a> for ClassDefFormat2<'a>

source§

impl<'a> SomeTable<'a> for ClassSequenceRule<'a>

source§

impl<'a> SomeTable<'a> for ClassSequenceRuleSet<'a>

source§

impl<'a> SomeTable<'a> for ConditionFormat1<'a>

source§

impl<'a> SomeTable<'a> for ConditionSet<'a>

source§

impl<'a> SomeTable<'a> for CoverageFormat1<'a>

source§

impl<'a> SomeTable<'a> for CoverageFormat2<'a>

source§

impl<'a> SomeTable<'a> for Device<'a>

source§

impl<'a> SomeTable<'a> for Feature<'a>

source§

impl<'a> SomeTable<'a> for FeatureList<'a>

source§

impl<'a> SomeTable<'a> for FeatureTableSubstitution<'a>

source§

impl<'a> SomeTable<'a> for FeatureVariations<'a>

source§

impl<'a> SomeTable<'a> for LangSys<'a>

source§

impl<'a> SomeTable<'a> for Script<'a>

source§

impl<'a> SomeTable<'a> for ScriptList<'a>

source§

impl<'a> SomeTable<'a> for SequenceContextFormat1<'a>

source§

impl<'a> SomeTable<'a> for SequenceContextFormat2<'a>

source§

impl<'a> SomeTable<'a> for SequenceContextFormat3<'a>

source§

impl<'a> SomeTable<'a> for SequenceRule<'a>

source§

impl<'a> SomeTable<'a> for SequenceRuleSet<'a>

source§

impl<'a> SomeTable<'a> for SizeParams<'a>

source§

impl<'a> SomeTable<'a> for StylisticSetParams<'a>

source§

impl<'a> SomeTable<'a> for VariationIndex<'a>

source§

impl<'a> SomeTable<'a> for Maxp<'a>

source§

impl<'a> SomeTable<'a> for Mvar<'a>

source§

impl<'a> SomeTable<'a> for Name<'a>

source§

impl<'a> SomeTable<'a> for Os2<'a>

source§

impl<'a> SomeTable<'a> for Post<'a>

source§

impl<'a> SomeTable<'a> for FdSelectFormat0<'a>

source§

impl<'a> SomeTable<'a> for FdSelectFormat3<'a>

source§

impl<'a> SomeTable<'a> for FdSelectFormat4<'a>

source§

impl<'a> SomeTable<'a> for Index1<'a>

source§

impl<'a> SomeTable<'a> for Index2<'a>

source§

impl<'a> SomeTable<'a> for GlyphData<'a>

source§

impl<'a> SomeTable<'a> for Sbix<'a>

source§

impl<'a> SomeTable<'a> for Strike<'a>

source§

impl<'a> SomeTable<'a> for AxisValueArray<'a>

source§

impl<'a> SomeTable<'a> for AxisValueFormat1<'a>

source§

impl<'a> SomeTable<'a> for AxisValueFormat2<'a>

source§

impl<'a> SomeTable<'a> for AxisValueFormat3<'a>

source§

impl<'a> SomeTable<'a> for AxisValueFormat4<'a>

source§

impl<'a> SomeTable<'a> for Stat<'a>

source§

impl<'a> SomeTable<'a> for DeltaSetIndexMapFormat0<'a>

source§

impl<'a> SomeTable<'a> for DeltaSetIndexMapFormat1<'a>

source§

impl<'a> SomeTable<'a> for ItemVariationData<'a>

source§

impl<'a> SomeTable<'a> for ItemVariationStore<'a>

source§

impl<'a> SomeTable<'a> for TupleVariationHeader<'a>

source§

impl<'a> SomeTable<'a> for VariationRegionList<'a>

source§

impl<'a> SomeTable<'a> for Vhea<'a>

source§

impl<'a> SomeTable<'a> for Vmtx<'a>

source§

impl<'a> SomeTable<'a> for Vvar<'a>

source§

impl<'a> SomeTable<'a> for TTCHeader<'a>

source§

impl<'a> SomeTable<'a> for TableDirectory<'a>

source§

impl<'a, T: FontRead<'a> + SomeTable<'a> + 'a> SomeTable<'a> for ExtensionPosFormat1<'a, T>

source§

impl<'a, T: FontRead<'a> + SomeTable<'a> + 'a> SomeTable<'a> for ExtensionSubstFormat1<'a, T>

source§

impl<'a, T: FontRead<'a> + SomeTable<'a> + 'a> SomeTable<'a> for Lookup<'a, T>

source§

impl<'a, T: FontRead<'a> + SomeTable<'a> + 'a> SomeTable<'a> for LookupList<'a, T>