pub struct StorageLimits { /* private fields */ }Implementations§
Source§impl StorageLimits
impl StorageLimits
pub fn new( slots: usize, frames_per_slot: usize, bytes_per_frame: usize, byte_ceiling: usize, ) -> Result<StorageLimits, CapacityError>
pub fn slots(self) -> usize
pub fn bytes_per_slot(self) -> usize
pub fn total_bytes(self) -> usize
Trait Implementations§
Source§impl Clone for StorageLimits
impl Clone for StorageLimits
Source§fn clone(&self) -> StorageLimits
fn clone(&self) -> StorageLimits
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 Copy for StorageLimits
Source§impl Debug for StorageLimits
impl Debug for StorageLimits
impl Eq for StorageLimits
Source§impl PartialEq for StorageLimits
impl PartialEq for StorageLimits
impl StructuralPartialEq for StorageLimits
Auto Trait Implementations§
impl Freeze for StorageLimits
impl RefUnwindSafe for StorageLimits
impl Send for StorageLimits
impl Sync for StorageLimits
impl Unpin for StorageLimits
impl UnsafeUnpin for StorageLimits
impl UnwindSafe for StorageLimits
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