pub enum ParityDomain {
Bottom,
Even,
Odd,
Top,
}Expand description
The parity abstract domain: even, odd, or top/bottom.
Variants§
Implementations§
Source§impl ParityDomain
impl ParityDomain
Sourcepub fn from_value(v: i64) -> Self
pub fn from_value(v: i64) -> Self
Create from a concrete integer.
Sourcepub fn join(&self, other: &ParityDomain) -> ParityDomain
pub fn join(&self, other: &ParityDomain) -> ParityDomain
Join two parity values.
Sourcepub fn meet(&self, other: &ParityDomain) -> ParityDomain
pub fn meet(&self, other: &ParityDomain) -> ParityDomain
Meet two parity values.
Sourcepub fn add(&self, other: &ParityDomain) -> ParityDomain
pub fn add(&self, other: &ParityDomain) -> ParityDomain
Add two parity values.
Sourcepub fn mul(&self, other: &ParityDomain) -> ParityDomain
pub fn mul(&self, other: &ParityDomain) -> ParityDomain
Multiply two parity values.
Trait Implementations§
Source§impl Clone for ParityDomain
impl Clone for ParityDomain
Source§fn clone(&self) -> ParityDomain
fn clone(&self) -> ParityDomain
Returns a duplicate of the value. Read more
1.0.0 · 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 ParityDomain
impl Debug for ParityDomain
Source§impl PartialEq for ParityDomain
impl PartialEq for ParityDomain
impl Copy for ParityDomain
impl Eq for ParityDomain
impl StructuralPartialEq for ParityDomain
Auto Trait Implementations§
impl Freeze for ParityDomain
impl RefUnwindSafe for ParityDomain
impl Send for ParityDomain
impl Sync for ParityDomain
impl Unpin for ParityDomain
impl UnsafeUnpin for ParityDomain
impl UnwindSafe for ParityDomain
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