pub enum ClosureState {
Clear,
Owed {
debt: ClosureDebt,
edge: StoredEdge,
},
}Expand description
Closure state makes a clear edge with nonzero debt unconstructible.
Variants§
Implementations§
Source§impl ClosureState
impl ClosureState
Sourcepub const fn ordinary_detached_attach_admission(
self,
) -> Result<OrdinaryDetachedAttachAdmission, Self>
pub const fn ordinary_detached_attach_admission( self, ) -> Result<OrdinaryDetachedAttachAdmission, Self>
Admits ordinary detached attach only from clear closure state.
§Errors
Returns the unchanged owed state for every stored edge, including DCR,
DMR, and DCursor.
Trait Implementations§
Source§impl Clone for ClosureState
impl Clone for ClosureState
Source§fn clone(&self) -> ClosureState
fn clone(&self) -> ClosureState
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 ClosureState
Source§impl Debug for ClosureState
impl Debug for ClosureState
impl Eq for ClosureState
Source§impl PartialEq for ClosureState
impl PartialEq for ClosureState
impl StructuralPartialEq for ClosureState
Auto Trait Implementations§
impl Freeze for ClosureState
impl RefUnwindSafe for ClosureState
impl Send for ClosureState
impl Sync for ClosureState
impl Unpin for ClosureState
impl UnsafeUnpin for ClosureState
impl UnwindSafe for ClosureState
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