pub struct WorkspaceLoan { /* private fields */ }Expand description
A temporary claim on workspace already reserved by a MergeMemoryPool.
Created by MergeMemoryPool::borrow. The loan shares capacity with child
reservations and keeps the pool alive until it is dropped. Shrinking or
dropping the loan returns its bytes to the pool; the parent reservation is
reduced only when those bytes are no longer retained as workspace.
Implementations§
Trait Implementations§
Source§impl Debug for WorkspaceLoan
impl Debug for WorkspaceLoan
Source§impl Drop for WorkspaceLoan
impl Drop for WorkspaceLoan
Auto Trait Implementations§
impl !RefUnwindSafe for WorkspaceLoan
impl !UnwindSafe for WorkspaceLoan
impl Forget for WorkspaceLoan
impl Freeze for WorkspaceLoan
impl Move for WorkspaceLoan
impl Send for WorkspaceLoan
impl Sync for WorkspaceLoan
impl Unpin for WorkspaceLoan
impl UnsafeUnpin for WorkspaceLoan
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more