pub struct SharedStorage<T> { /* private fields */ }Expand description
Immutable shared view retaining its entire backing allocation’s charge. Dropping a queue entry or old configuration does not release storage held by another view. Borrowed slices cannot outlive the owner that keeps it charged.
Implementations§
Sourcepub fn slice(&self, range: Range<usize>) -> Result<Self, StorageError>
pub fn slice(&self, range: Range<usize>) -> Result<Self, StorageError>
A subview in this view’s coordinates. Empty views keep the backing charge.
Sourcepub fn charged_bytes(&self) -> usize
pub fn charged_bytes(&self) -> usize
The full backing allocation’s admitted byte charge, not this view’s size.
Trait Implementations§
Auto Trait Implementations§
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