pub enum CyclePolicy {
Localmin,
Constant,
}Expand description
Cycle-breaking policy for in-place reordering (Section 4.3 of Burns et al. 2003).
Variants§
Localmin
Break each cycle at the copy with the shortest length, minimising literal bytes added.
Constant
Break each cycle at the first remaining vertex; simpler but ignores copy lengths.
Trait Implementations§
Source§impl Clone for CyclePolicy
impl Clone for CyclePolicy
Source§fn clone(&self) -> CyclePolicy
fn clone(&self) -> CyclePolicy
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 CyclePolicy
impl Debug for CyclePolicy
Source§impl PartialEq for CyclePolicy
impl PartialEq for CyclePolicy
impl Copy for CyclePolicy
impl Eq for CyclePolicy
impl StructuralPartialEq for CyclePolicy
Auto Trait Implementations§
impl Freeze for CyclePolicy
impl RefUnwindSafe for CyclePolicy
impl Send for CyclePolicy
impl Sync for CyclePolicy
impl Unpin for CyclePolicy
impl UnsafeUnpin for CyclePolicy
impl UnwindSafe for CyclePolicy
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