Struct laminarmq_io::object_storage::FixedBlockSizeMap
source · pub struct FixedBlockSizeMap { /* private fields */ }
Trait Implementations§
source§impl BlockMap for FixedBlockSizeMap
impl BlockMap for FixedBlockSizeMap
fn position_block_containing_offset(&self, offset: usize) -> Option<usize>
fn get_block_at_idx(&self, block_idx: usize) -> Option<Block>
fn get_block_containing_offset(&self, offset: usize) -> Option<Block>
fn append_block_with_block_size(&mut self, _: usize) -> Block
fn len(&self) -> usize
fn truncate(&mut self, offset: usize) -> Option<(usize, usize, Block)>
fn clear(&mut self)
fn is_empty(&self) -> bool
fn size(&self) -> usize
source§impl Clone for FixedBlockSizeMap
impl Clone for FixedBlockSizeMap
source§fn clone(&self) -> FixedBlockSizeMap
fn clone(&self) -> FixedBlockSizeMap
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for FixedBlockSizeMap
impl<'de> Deserialize<'de> for FixedBlockSizeMap
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for FixedBlockSizeMap
impl Serialize for FixedBlockSizeMap
impl Copy for FixedBlockSizeMap
Auto Trait Implementations§
impl Freeze for FixedBlockSizeMap
impl RefUnwindSafe for FixedBlockSizeMap
impl Send for FixedBlockSizeMap
impl Sync for FixedBlockSizeMap
impl Unpin for FixedBlockSizeMap
impl UnwindSafe for FixedBlockSizeMap
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.