Struct rustc_mir::dataflow::lattice::Dual [−][src]
pub struct Dual<T>(pub T);
Expand description
The counterpart of a given semilattice T using the inverse order.
The dual of a join-semilattice is a meet-semilattice and vice versa. For example, the dual of a powerset has the empty set as its top element and the full set as its bottom element and uses set intersection as its join operator.
Trait Implementations
impl<T> BorrowMut<T> for Dual<T>[src]
impl<T> BorrowMut<T> for Dual<T>[src]fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T, C> DebugWithContext<C> for Dual<T> where
T: DebugWithContext<C>, [src]
impl<T, C> DebugWithContext<C> for Dual<T> where
T: DebugWithContext<C>, [src]impl<T: Idx> GenKill<T> for Dual<BitSet<T>>[src]
impl<T: Idx> GenKill<T> for Dual<BitSet<T>>[src]fn gen_all(&mut self, elems: impl IntoIterator<Item = T>)[src]
fn gen_all(&mut self, elems: impl IntoIterator<Item = T>)[src]Calls gen for each element in elems.
fn kill_all(&mut self, elems: impl IntoIterator<Item = T>)[src]
fn kill_all(&mut self, elems: impl IntoIterator<Item = T>)[src]Calls kill for each element in elems.
impl<T: MeetSemiLattice> JoinSemiLattice for Dual<T>[src]
impl<T: MeetSemiLattice> JoinSemiLattice for Dual<T>[src]impl<T: JoinSemiLattice> MeetSemiLattice for Dual<T>[src]
impl<T: JoinSemiLattice> MeetSemiLattice for Dual<T>[src]impl<T: Copy> Copy for Dual<T>[src]
impl<T: Eq> Eq for Dual<T>[src]
impl<T> StructuralEq for Dual<T>[src]
impl<T> StructuralPartialEq for Dual<T>[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Dual<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Dual<T> where
T: Send,
T: Send,
impl<T> Sync for Dual<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Dual<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Dual<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]