FromTableRef

Trait FromTableRef 

Source
pub trait FromTableRef<T>: FromObjRef<T> {
    // Provided method
    fn from_table_ref(from: &T) -> Self { ... }
}
Expand description

A trait for types that can fully resolve themselves.

This means that any offsets held in this type are resolved relative to the start of the table itself (and not some parent table)

Provided Methods§

Source

fn from_table_ref(from: &T) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromTableRef<NameString<'_>> for String

Source§

impl<'a, T, U, O, const N: usize> FromTableRef<ArrayOfNullableOffsets<'a, U, O>> for Vec<NullableOffsetMarker<T, N>>
where T: FromObjRef<U> + Default, U: ReadArgs + FontReadWithArgs<'a>, U::Args: 'static, O: Scalar + Offset,

Source§

impl<'a, T, U, O, const N: usize> FromTableRef<ArrayOfOffsets<'a, U, O>> for Vec<OffsetMarker<T, N>>
where T: FromTableRef<U> + Default, U: ReadArgs + FontReadWithArgs<'a>, U::Args: 'static, O: Scalar + Offset,

Source§

impl<T: FromTableRef<U>, U> FromTableRef<Option<U>> for Option<T>

Source§

fn from_table_ref(from: &Option<U>) -> Self

Implementors§

Source§

impl FromTableRef<BaseCoord<'_>> for BaseCoord

Source§

impl FromTableRef<CmapSubtable<'_>> for CmapSubtable

Source§

impl FromTableRef<ClipBox<'_>> for ClipBox

Source§

impl FromTableRef<Paint<'_>> for Paint

Source§

impl FromTableRef<CaretValue<'_>> for CaretValue

Source§

impl FromTableRef<Glyph<'_>> for Glyph

Source§

impl FromTableRef<AnchorTable<'_>> for AnchorTable

Source§

impl FromTableRef<ExtensionSubtable<'_>> for write_fonts::tables::gpos::ExtensionSubtable

Source§

impl FromTableRef<PairPos<'_>> for PairPos

Source§

impl FromTableRef<PositionLookup<'_>> for PositionLookup

Source§

impl FromTableRef<SinglePos<'_>> for SinglePos

Source§

impl FromTableRef<ExtensionSubtable<'_>> for write_fonts::tables::gsub::ExtensionSubtable

Source§

impl FromTableRef<SingleSubst<'_>> for SingleSubst

Source§

impl FromTableRef<SubstitutionLookup<'_>> for SubstitutionLookup

Source§

impl FromTableRef<Ift<'_>> for Ift

Available on crate feature ift only.
Source§

impl FromTableRef<ChainedSequenceContext<'_>> for ChainedSequenceContext

Source§

impl FromTableRef<ClassDef<'_>> for ClassDef

Source§

impl FromTableRef<Condition<'_>> for Condition

Source§

impl FromTableRef<CoverageTable<'_>> for CoverageTable

Source§

impl FromTableRef<DeviceOrVariationIndex<'_>> for DeviceOrVariationIndex

Source§

impl FromTableRef<FeatureParams<'_>> for FeatureParams

Source§

impl FromTableRef<SequenceContext<'_>> for SequenceContext

Source§

impl FromTableRef<Metadata<'_>> for Metadata

Source§

impl FromTableRef<AxisValue<'_>> for AxisValue

Source§

impl FromTableRef<DeltaSetIndexMap<'_>> for DeltaSetIndexMap

Source§

impl<'a> FromTableRef<ChainedSequenceContext<'a>> for PositionChainContext

Source§

impl<'a> FromTableRef<ChainedSequenceContext<'a>> for SubstitutionChainContext

Source§

impl<'a> FromTableRef<SequenceContext<'a>> for PositionSequenceContext

Source§

impl<'a> FromTableRef<SequenceContext<'a>> for SubstitutionSequenceContext

Source§

impl<T: FromTableRef<U> + Default, U, const N: usize> FromTableRef<Result<U, ReadError>> for OffsetMarker<T, N>

Source§

impl<T: FromTableRef<U>, U, const N: usize> FromTableRef<Option<Result<U, ReadError>>> for NullableOffsetMarker<T, N>