pub struct ShardedWriter<'map, T, const BLOCK_SIZE: u64> { /* private fields */ }Implementations§
Source§impl<'map, T: Default, const BLOCK_SIZE: u64> ShardedWriter<'map, T, BLOCK_SIZE>
impl<'map, T: Default, const BLOCK_SIZE: u64> ShardedWriter<'map, T, BLOCK_SIZE>
Sourcepub fn take_shard(&mut self, size: u64) -> Shard<'map, T, BLOCK_SIZE>
pub fn take_shard(&mut self, size: u64) -> Shard<'map, T, BLOCK_SIZE>
Take a shard into which writing can occur. size must be an exact multiple of BLOCK_SIZE
and must not be zero. Taken shards should be returned in the order they were taken by
calling return_shard.
pub fn return_shard(&mut self, shard: Shard<'map, T, BLOCK_SIZE>)
Auto Trait Implementations§
impl<'map, T, const BLOCK_SIZE: u64> Freeze for ShardedWriter<'map, T, BLOCK_SIZE>
impl<'map, T, const BLOCK_SIZE: u64> RefUnwindSafe for ShardedWriter<'map, T, BLOCK_SIZE>where
T: RefUnwindSafe,
impl<'map, T, const BLOCK_SIZE: u64> Send for ShardedWriter<'map, T, BLOCK_SIZE>where
T: Send,
impl<'map, T, const BLOCK_SIZE: u64> Sync for ShardedWriter<'map, T, BLOCK_SIZE>where
T: Sync,
impl<'map, T, const BLOCK_SIZE: u64> Unpin for ShardedWriter<'map, T, BLOCK_SIZE>
impl<'map, T, const BLOCK_SIZE: u64> !UnwindSafe for ShardedWriter<'map, T, BLOCK_SIZE>
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