#[repr(C)]
pub struct OpaqueImageVTable { pub drop_in_place: unsafe extern "C" fn(_: VRefMut<'_, OpaqueImageVTable>) -> Layout, pub dealloc: unsafe extern "C" fn(_: &OpaqueImageVTable, ptr: *mut u8, layout: Layout), pub size: unsafe extern "C" fn(_: VRef<'_, OpaqueImageVTable>) -> IntSize, pub cache_key: unsafe extern "C" fn(_: VRef<'_, OpaqueImageVTable>) -> ImageCacheKey, }

Fields

drop_in_place: unsafe extern "C" fn(_: VRefMut<'_, OpaqueImageVTable>) -> Layoutdealloc: unsafe extern "C" fn(_: &OpaqueImageVTable, ptr: *mut u8, layout: Layout)size: unsafe extern "C" fn(_: VRef<'_, OpaqueImageVTable>) -> IntSize

Returns the image size

cache_key: unsafe extern "C" fn(_: VRef<'_, OpaqueImageVTable>) -> ImageCacheKey

Returns a cache key

Implementations

Create a vtable suitable for a given type implementing the trait.

Trait Implementations

That’s the VTable itself (so most likely Self)
That’s the trait object that implements the functions Read more
Safety Read more
Safety Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.