pub trait ToOwnedObj<T> {
    // Required method
    fn to_owned_obj(&self, data: FontData<'_>) -> T;
}
Expand description

A conversion from a parsed font object type to an owned version, resolving offsets.

You should avoid implementing this trait manually. Like std::convert::Into, it is provided as a blanket impl when you implement FromObjRef<T>.

Required Methods§

source

fn to_owned_obj(&self, data: FontData<'_>) -> T

Convert this type into T, using the provided data to resolve any offsets.

Implementors§

source§

impl<U, T> ToOwnedObj<U> for T
where U: FromObjRef<T>,