pub struct StorageBatch<T> { /* private fields */ }Implementations§
Source§impl<T> StorageBatch<T>
impl<T> StorageBatch<T>
pub fn new(values: Vec<T>) -> StorageBatch<T>
pub fn as_slice(&self) -> &[T]
pub fn slice(&self, range: Range<usize>) -> StorageBatch<T>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn capacity(&self) -> usize
pub fn allocation_bytes(&self) -> usize
Trait Implementations§
Source§impl<T> Clone for StorageBatch<T>
impl<T> Clone for StorageBatch<T>
Source§fn clone(&self) -> StorageBatch<T>
fn clone(&self) -> StorageBatch<T>
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 moreSource§impl<T> Debug for StorageBatch<T>where
T: Debug,
impl<T> Debug for StorageBatch<T>where
T: Debug,
Source§impl<T> MemorySize for StorageBatch<T>where
T: MemorySize,
impl<T> MemorySize for StorageBatch<T>where
T: MemorySize,
fn memory_size(&self) -> usize
Source§const INLINE_ONLY: bool = false
const INLINE_ONLY: bool = false
True only when every value occupies exactly
size_of::<Self>() bytes,
with no separately owned allocations or additional accounting charge.Auto Trait Implementations§
impl<T> Freeze for StorageBatch<T>
impl<T> RefUnwindSafe for StorageBatch<T>
impl<T> Send for StorageBatch<T>
impl<T> Sync for StorageBatch<T>
impl<T> Unpin for StorageBatch<T>
impl<T> UnsafeUnpin for StorageBatch<T>
impl<T> UnwindSafe for StorageBatch<T>
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