pub struct SmallCache;Expand description
小块分配缓存。只应该由 pagesift 自己的可执行程序用作全局分配器(#[global_allocator]);
Python、Node 绑定跑在别人的进程里,不替宿主换分配器。
Trait Implementations§
Source§impl GlobalAlloc for SmallCache
impl GlobalAlloc for SmallCache
Source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout. Read moreAuto Trait Implementations§
impl Freeze for SmallCache
impl RefUnwindSafe for SmallCache
impl Send for SmallCache
impl Sync for SmallCache
impl Unpin for SmallCache
impl UnsafeUnpin for SmallCache
impl UnwindSafe for SmallCache
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