pub enum BindReplacement {
Refuse,
Replace,
}Expand description
Whether binding an integrator may displace one that is already there.
Named rather than a bare flag: the two answers are “take over” and “tell me who has it”, and a call that guessed wrong would either steal a live host’s work or refuse a legitimate hand-over.
Variants§
Refuse
Refuse if a different binding is live for this scope.
Replace
Displace the live binding and raise the fence.
Implementations§
Trait Implementations§
Source§impl Clone for BindReplacement
impl Clone for BindReplacement
impl Copy for BindReplacement
Source§impl Debug for BindReplacement
impl Debug for BindReplacement
Source§impl Default for BindReplacement
impl Default for BindReplacement
impl Eq for BindReplacement
Source§impl Hash for BindReplacement
impl Hash for BindReplacement
Source§impl Ord for BindReplacement
impl Ord for BindReplacement
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for BindReplacement
impl PartialEq for BindReplacement
Source§impl PartialOrd for BindReplacement
impl PartialOrd for BindReplacement
impl StructuralPartialEq for BindReplacement
Auto Trait Implementations§
impl Freeze for BindReplacement
impl RefUnwindSafe for BindReplacement
impl Send for BindReplacement
impl Sync for BindReplacement
impl Unpin for BindReplacement
impl UnsafeUnpin for BindReplacement
impl UnwindSafe for BindReplacement
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