#[repr(C)]pub struct BSSmallBlockAllocatorVtbl {
pub CxxDrop: unsafe extern "C" fn(this: &mut BSSmallBlockAllocator),
pub Size: unsafe extern "C" fn(this: &BSSmallBlockAllocator, block: *const u8) -> usize,
pub GetMemoryStats: unsafe extern "C" fn(this: &BSSmallBlockAllocator, stats: *mut ()),
pub ContainsBlockImpl: unsafe extern "C" fn(this: &BSSmallBlockAllocator, block: *const u8) -> bool,
pub AllocateAlignImpl: unsafe extern "C" fn(this: &mut BSSmallBlockAllocator, size: usize, align: u32) -> *mut u8,
pub DeallocateAlignImpl: unsafe extern "C" fn(this: &mut BSSmallBlockAllocator, free_block: *mut *mut u8),
pub TryAllocateImpl: unsafe extern "C" fn(this: &mut BSSmallBlockAllocator, size: usize, align: u32) -> *mut u8,
}
Expand description
Virtual table for BSSmallBlockAllocator
to simulate the C++ vtable.
Fields§
§CxxDrop: unsafe extern "C" fn(this: &mut BSSmallBlockAllocator)
C++ virtual ~BSSmallBlockAllocator()
Size: unsafe extern "C" fn(this: &BSSmallBlockAllocator, block: *const u8) -> usize
§GetMemoryStats: unsafe extern "C" fn(this: &BSSmallBlockAllocator, stats: *mut ())
§ContainsBlockImpl: unsafe extern "C" fn(this: &BSSmallBlockAllocator, block: *const u8) -> bool
§AllocateAlignImpl: unsafe extern "C" fn(this: &mut BSSmallBlockAllocator, size: usize, align: u32) -> *mut u8
§DeallocateAlignImpl: unsafe extern "C" fn(this: &mut BSSmallBlockAllocator, free_block: *mut *mut u8)
§TryAllocateImpl: unsafe extern "C" fn(this: &mut BSSmallBlockAllocator, size: usize, align: u32) -> *mut u8
Auto Trait Implementations§
impl Freeze for BSSmallBlockAllocatorVtbl
impl RefUnwindSafe for BSSmallBlockAllocatorVtbl
impl Send for BSSmallBlockAllocatorVtbl
impl Sync for BSSmallBlockAllocatorVtbl
impl Unpin for BSSmallBlockAllocatorVtbl
impl UnwindSafe for BSSmallBlockAllocatorVtbl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more