pub enum Criterion {
Cost,
Margin,
Energy,
Error,
Thermal,
Inertia,
Drive,
Price,
}Expand description
What a search can be ranked by (rank_by), lower better: the cost (Candidate::cost), the margin (the tightest
check’s utilisation, Candidate::tightest), the energy per cycle, the following error, the thermal utilisation, the
inertia ratio (Figures), and the drive’s size, its rated output current (catalog::drives_for; the catalogue
has no weight of a drive, so the cost leaves it out).
Variants§
Cost
Margin
Energy
Error
Thermal
Inertia
Drive
Price
The user’s price (Candidate::price, from --prices); infinite for a candidate without one.
Implementations§
Trait Implementations§
impl Copy for Criterion
impl Eq for Criterion
impl StructuralPartialEq for Criterion
Auto Trait Implementations§
impl Freeze for Criterion
impl RefUnwindSafe for Criterion
impl Send for Criterion
impl Sync for Criterion
impl Unpin for Criterion
impl UnsafeUnpin for Criterion
impl UnwindSafe for Criterion
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