pub trait FontReadWithArgs<'a>: Sized + ReadArgs {
// Required method
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.
You should not need to use this directly; it is intended to be used from
generated code. Any type that requires external arguments also has a custom
read
constructor where you can pass those arguments like normal.
Required Methods§
Object Safety§
This trait is not object safe.