pub struct Governed<T> { /* private fields */ }Expand description
A value whose live memory is coupled to a process-wide reservation.
Large fallible materializations return this owner so the allocation cannot outlive its ledger charge. It dereferences to the wrapped value for normal ndarray and collection operations.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Governed<T>where
T: Freeze,
impl<T> RefUnwindSafe for Governed<T>where
T: RefUnwindSafe,
impl<T> Send for Governed<T>where
T: Send,
impl<T> Sync for Governed<T>where
T: Sync,
impl<T> Unpin for Governed<T>where
T: Unpin,
impl<T> UnsafeUnpin for Governed<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Governed<T>where
T: UnwindSafe,
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