pub struct OwnedView { /* private fields */ }Expand description
A borrowed, cloneable alias of one OwningAllocation.
A view can never release anything: it has no release method and its Drop
only decrements the outstanding-view count. Clones are aliases, and every
alias independently keeps physical release blocked.
Implementations§
Source§impl OwnedView
impl OwnedView
pub const fn view(&self) -> &BoundMemoryView
pub const fn binding(&self) -> &MemoryBinding
pub const fn allocation_identity(&self) -> AllocationIdentity
pub const fn len(&self) -> usize
pub const fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OwnedView
impl !UnwindSafe for OwnedView
impl Freeze for OwnedView
impl Send for OwnedView
impl Sync for OwnedView
impl Unpin for OwnedView
impl UnsafeUnpin for OwnedView
Blanket Implementations§
impl<T> BindingResource 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