Struct i_slint_core::graphics::OpaqueImageVTable
source · [−]#[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>) -> IntSizeReturns the image size
cache_key: unsafe extern "C" fn(_: VRef<'_, OpaqueImageVTable>) -> ImageCacheKeyReturns a cache key
Implementations
sourceimpl OpaqueImageVTable
impl OpaqueImageVTable
sourcepub fn new<T: OpaqueImage>() -> Self
pub fn new<T: OpaqueImage>() -> Self
Create a vtable suitable for a given type implementing the trait.
Trait Implementations
sourceimpl VTableMeta for OpaqueImageVTable
impl VTableMeta for OpaqueImageVTable
type VTable = OpaqueImageVTable
type VTable = OpaqueImageVTable
That’s the VTable itself (so most likely Self)
Auto Trait Implementations
impl RefUnwindSafe for OpaqueImageVTable
impl Send for OpaqueImageVTable
impl Sync for OpaqueImageVTable
impl Unpin for OpaqueImageVTable
impl UnwindSafe for OpaqueImageVTable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more