pub trait FontReadWithArgs<'a>: Sized + ReadArgs {
    fn read_with_args(
        data: FontData<'a>,
        args: &Self::Args
    ) -> Result<Self, ReadError>; }
Expand description

A trait for types that require external data in order to be constructed.

Required Methods

read an item, using the provided args.

If successful, returns a new item of this type, and the number of bytes used to construct it.

If a type requires multiple arguments, they will be passed as a tuple.

Implementors