pub struct StorageBatch<'a> { /* private fields */ }Implementations§
Source§impl<'a> StorageBatch<'a>
impl<'a> StorageBatch<'a>
pub fn new( parts: &'a [StoragePart<'a>], max_bytes: NonZero<usize>, ) -> Result<StorageBatch<'a>, Error>
pub fn parts(&self) -> impl Iterator<Item = StoragePart<'a>>
pub fn entries(&self) -> impl Iterator<Item = StorageEntry<'a>>
pub fn first(&self) -> &'a StorageCursor
pub fn through(&self) -> &'a StorageCursor
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn encoded_bytes(&self) -> usize
Trait Implementations§
Source§impl<'a> Clone for StorageBatch<'a>
impl<'a> Clone for StorageBatch<'a>
Source§fn clone(&self) -> StorageBatch<'a>
fn clone(&self) -> StorageBatch<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for StorageBatch<'a>
Auto Trait Implementations§
impl<'a> Freeze for StorageBatch<'a>
impl<'a> RefUnwindSafe for StorageBatch<'a>
impl<'a> Send for StorageBatch<'a>
impl<'a> Sync for StorageBatch<'a>
impl<'a> Unpin for StorageBatch<'a>
impl<'a> UnsafeUnpin for StorageBatch<'a>
impl<'a> UnwindSafe for StorageBatch<'a>
Blanket Implementations§
impl<T> Allocation for T
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