pub struct ClosureDebt(/* private fields */);Expand description
Nonzero componentwise closure debt.
Implementations§
Source§impl ClosureDebt
impl ClosureDebt
Sourcepub const fn new(value: WideResourceVector) -> Option<Self>
pub const fn new(value: WideResourceVector) -> Option<Self>
Creates debt only when at least one component is nonzero.
Sourcepub const fn value(self) -> WideResourceVector
pub const fn value(self) -> WideResourceVector
Returns exact entry/byte debt.
Trait Implementations§
Source§impl Clone for ClosureDebt
impl Clone for ClosureDebt
Source§fn clone(&self) -> ClosureDebt
fn clone(&self) -> ClosureDebt
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 moreimpl Copy for ClosureDebt
Source§impl Debug for ClosureDebt
impl Debug for ClosureDebt
impl Eq for ClosureDebt
Source§impl PartialEq for ClosureDebt
impl PartialEq for ClosureDebt
impl StructuralPartialEq for ClosureDebt
Auto Trait Implementations§
impl Freeze for ClosureDebt
impl RefUnwindSafe for ClosureDebt
impl Send for ClosureDebt
impl Sync for ClosureDebt
impl Unpin for ClosureDebt
impl UnsafeUnpin for ClosureDebt
impl UnwindSafe for ClosureDebt
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