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§
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.