pub struct OwnedSlice { /* private fields */ }Expand description
Owned slice over an Arc<dyn BlockRead>. Use when the parent’s
lifetime can’t be expressed in a borrow — e.g. when the slice is
handed across an FFI boundary or stored in a long-lived struct.
Implementations§
Trait Implementations§
Source§impl BlockDevice for OwnedSlice
Same rationale as SliceReader: read-only by default.
impl BlockDevice for OwnedSlice
Same rationale as SliceReader: read-only by default.
Auto Trait Implementations§
impl !RefUnwindSafe for OwnedSlice
impl !UnwindSafe for OwnedSlice
impl Freeze for OwnedSlice
impl Send for OwnedSlice
impl Sync for OwnedSlice
impl Unpin for OwnedSlice
impl UnsafeUnpin for OwnedSlice
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