Trait read_fonts::ResolveOffset
source · pub trait ResolveOffset {
// Required methods
fn resolve<'a, T: FontRead<'a>>(
&self,
data: FontData<'a>
) -> Result<T, ReadError>;
fn resolve_with_args<'a, T: FontReadWithArgs<'a>>(
&self,
data: FontData<'a>,
args: &T::Args
) -> Result<T, ReadError>;
}
Expand description
A helper trait providing a ‘resolve’ method for offset types
Required Methods§
fn resolve<'a, T: FontRead<'a>>( &self, data: FontData<'a> ) -> Result<T, ReadError>
fn resolve_with_args<'a, T: FontReadWithArgs<'a>>( &self, data: FontData<'a>, args: &T::Args ) -> Result<T, ReadError>
Object Safety§
This trait is not object safe.