pub struct BlockSplit<Alloc: Allocator<u8> + Allocator<u32>> {
pub num_types: usize,
pub num_blocks: usize,
pub types: <Alloc as Allocator<u8>>::AllocatedMemory,
pub lengths: <Alloc as Allocator<u32>>::AllocatedMemory,
}
Fields§
§num_types: usize
§num_blocks: usize
§types: <Alloc as Allocator<u8>>::AllocatedMemory
§lengths: <Alloc as Allocator<u32>>::AllocatedMemory
Implementations§
source§impl<Alloc: Allocator<u8> + Allocator<u32>> BlockSplit<Alloc>
impl<Alloc: Allocator<u8> + Allocator<u32>> BlockSplit<Alloc>
pub fn new() -> BlockSplit<Alloc>
pub fn destroy(&mut self, m: &mut Alloc)
pub fn types_alloc_size(&self) -> usize
pub fn lengths_alloc_size(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<Alloc> Freeze for BlockSplit<Alloc>where
<Alloc as Allocator<u8>>::AllocatedMemory: Freeze,
<Alloc as Allocator<u32>>::AllocatedMemory: Freeze,
impl<Alloc> RefUnwindSafe for BlockSplit<Alloc>where
<Alloc as Allocator<u8>>::AllocatedMemory: RefUnwindSafe,
<Alloc as Allocator<u32>>::AllocatedMemory: RefUnwindSafe,
impl<Alloc> Send for BlockSplit<Alloc>where
<Alloc as Allocator<u8>>::AllocatedMemory: Send,
<Alloc as Allocator<u32>>::AllocatedMemory: Send,
impl<Alloc> Sync for BlockSplit<Alloc>where
<Alloc as Allocator<u8>>::AllocatedMemory: Sync,
<Alloc as Allocator<u32>>::AllocatedMemory: Sync,
impl<Alloc> Unpin for BlockSplit<Alloc>where
<Alloc as Allocator<u8>>::AllocatedMemory: Unpin,
<Alloc as Allocator<u32>>::AllocatedMemory: Unpin,
impl<Alloc> UnwindSafe for BlockSplit<Alloc>where
<Alloc as Allocator<u8>>::AllocatedMemory: UnwindSafe,
<Alloc as Allocator<u32>>::AllocatedMemory: UnwindSafe,
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