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<SharedStorage<T>, StorageError>
pub fn slice( &self, range: Range<usize>, ) -> Result<SharedStorage<T>, 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§
Source§fn clone(&self) -> SharedStorage<T>
fn clone(&self) -> SharedStorage<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 moreAuto 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