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§
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§
impl FromTableRef<NameString<'_>> for String
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,
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>
impl<T: FromTableRef<U>, U> FromTableRef<Option<U>> for Option<T>
fn from_table_ref(from: &Option<U>) -> Self
Implementors§
impl FromTableRef<BaseCoord<'_>> for BaseCoord
impl FromTableRef<CmapSubtable<'_>> for CmapSubtable
impl FromTableRef<ClipBox<'_>> for ClipBox
impl FromTableRef<Paint<'_>> for Paint
impl FromTableRef<CaretValue<'_>> for CaretValue
impl FromTableRef<Glyph<'_>> for Glyph
impl FromTableRef<AnchorTable<'_>> for AnchorTable
impl FromTableRef<ExtensionSubtable<'_>> for write_fonts::tables::gpos::ExtensionSubtable
impl FromTableRef<PairPos<'_>> for PairPos
impl FromTableRef<PositionLookup<'_>> for PositionLookup
impl FromTableRef<SinglePos<'_>> for SinglePos
impl FromTableRef<ExtensionSubtable<'_>> for write_fonts::tables::gsub::ExtensionSubtable
impl FromTableRef<SingleSubst<'_>> for SingleSubst
impl FromTableRef<SubstitutionLookup<'_>> for SubstitutionLookup
impl FromTableRef<Ift<'_>> for Ift
Available on crate feature
ift
only.