pub struct Weights {
pub maintenance_risk: u32,
pub refactoring_ease: u32,
}Expand description
How the separated measures are weighted against each other when they are composed into one order.
Whole numbers rather than fractions: these are shares, they are read from and written back to a configuration file, and a float round-trip through TOML is a difference nobody meant to express.
Fields§
§maintenance_risk: u32Weight of what keeping the copies in step costs.
refactoring_ease: u32Weight of how cheap the duplication would be to remove.
Implementations§
Trait Implementations§
impl Copy for Weights
impl Eq for Weights
impl StructuralPartialEq for Weights
Auto Trait Implementations§
impl Freeze for Weights
impl RefUnwindSafe for Weights
impl Send for Weights
impl Sync for Weights
impl Unpin for Weights
impl UnsafeUnpin for Weights
impl UnwindSafe for Weights
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.