pub struct NegativeControl {
pub negation_source: String,
pub negation_name: String,
}Expand description
Negation manifest for the negative-control guard.
TODO(loop-phase): the loop must supply the formal negation of the claim so the
guard can compile it and require failure. Until then this type is the wiring
seam and check_negative_control is a documented no-op.
Fields§
§negation_source: StringLean source for the sibling declaration asserting the negation.
negation_name: StringName of the negation declaration.
Trait Implementations§
Source§impl Clone for NegativeControl
impl Clone for NegativeControl
Source§fn clone(&self) -> NegativeControl
fn clone(&self) -> NegativeControl
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 moreSource§impl Debug for NegativeControl
impl Debug for NegativeControl
impl Eq for NegativeControl
Source§impl PartialEq for NegativeControl
impl PartialEq for NegativeControl
Source§fn eq(&self, other: &NegativeControl) -> bool
fn eq(&self, other: &NegativeControl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NegativeControl
Auto Trait Implementations§
impl Freeze for NegativeControl
impl RefUnwindSafe for NegativeControl
impl Send for NegativeControl
impl Sync for NegativeControl
impl Unpin for NegativeControl
impl UnsafeUnpin for NegativeControl
impl UnwindSafe for NegativeControl
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