Trait read_fonts::ResolveNullableOffset

source ·
pub trait ResolveNullableOffset {
    // Required methods
    fn resolve<'a, T: FontRead<'a>>(
        &self,
        data: FontData<'a>,
    ) -> Option<Result<T, ReadError>>;
    fn resolve_with_args<'a, T: FontReadWithArgs<'a>>(
        &self,
        data: FontData<'a>,
        args: &T::Args,
    ) -> Option<Result<T, ReadError>>;
}
Expand description

A helper trait providing a ‘resolve’ method for nullable offset types

Required Methods§

source

fn resolve<'a, T: FontRead<'a>>( &self, data: FontData<'a>, ) -> Option<Result<T, ReadError>>

source

fn resolve_with_args<'a, T: FontReadWithArgs<'a>>( &self, data: FontData<'a>, args: &T::Args, ) -> Option<Result<T, ReadError>>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<O: Offset> ResolveNullableOffset for Nullable<O>

source§

fn resolve<'a, T: FontRead<'a>>( &self, data: FontData<'a>, ) -> Option<Result<T, ReadError>>

source§

fn resolve_with_args<'a, T: FontReadWithArgs<'a>>( &self, data: FontData<'a>, args: &T::Args, ) -> Option<Result<T, ReadError>>

Implementors§