pub fn dual_mut(&mut self) {
        // Safety: duals of polytopes are polytopes.
        let sorted = self.sorted();
        let ranks = unsafe { self.ranks_mut() };
        ranks.for_each_element_mut(Element::swap_mut);
        ranks.reverse();

        // Safety: if the original elements were sorted, so will these be.
        unsafe {
            self.set_sorted(sorted);
        }
    }
/// Takes the dual of an abstract polytope in place. This can never fail.
Takes the dual of an abstract polytope in place. This can never fail.
Takes the dual of an abstract polytope in place . This can never fail .
pub fn dual_mut(&mut self) {
        // Safety: duals of polytopes are polytopes.
        let sorted = self.sorted();
        let ranks = unsafe { self.ranks_mut() };
        ranks.for_each_element_mut(Element::swap_mut);
        ranks.reverse();
        // Safety: if the original elements were sorted, so will these be.
        unsafe {
            self.set_sorted(sorted);
        }
    }
pub fn dual_mut ( & mut self ) { // Safety: duals of polytopes are polytopes. let sorted = self . sorted ( ) ; let ranks = unsafe { self . ranks_mut ( ) } ; ranks . for_each_element_mut ( Element :: swap_mut ) ; ranks . reverse ( ) ; // Safety: if the original elements were sorted, so will these be. unsafe { self . set_sorted ( sorted ) ; } }
Takes the dual of an abstract polytope in place.
Takes the dual of an abstract polytope in place .
&mut self
&mut self