Struct hyperscan::alloc::LayoutTracker
source · pub struct LayoutTracker { /* private fields */ }Available on crate feature
alloc only.Implementations§
source§impl LayoutTracker
impl LayoutTracker
pub fn new(allocator: Arc<impl GlobalAlloc + 'static>) -> Self
pub fn allocator(&self) -> Arc<dyn GlobalAlloc>
pub fn current_allocations(&mut self) -> Vec<(NonNull<u8>, Layout)>
Trait Implementations§
source§impl Drop for LayoutTracker
impl Drop for LayoutTracker
source§impl MallocLikeAllocator for LayoutTracker
impl MallocLikeAllocator for LayoutTracker
impl Send for LayoutTracker
impl Sync for LayoutTracker
Auto Trait Implementations§
impl !RefUnwindSafe for LayoutTracker
impl Unpin for LayoutTracker
impl !UnwindSafe for LayoutTracker
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