pub enum ConservationVerdict {
Excellent,
Good,
Fair,
Poor,
Wasteful,
}Expand description
Overall verdict on conservation effectiveness.
Variants§
Excellent
Conservation score >= 0.9 — outstanding efficiency.
Good
Conservation score >= 0.7 — target met.
Fair
Conservation score >= 0.5 — acceptable but improvable.
Poor
Conservation score >= 0.3 — significant room for improvement.
Wasteful
Conservation score < 0.3 — conservation is not working.
Implementations§
Source§impl ConservationVerdict
impl ConservationVerdict
Sourcepub fn from_score(score: f64) -> Self
pub fn from_score(score: f64) -> Self
Derive a verdict from a conservation score in [0.0, 1.0].
Sourcepub fn meets_target(&self) -> bool
pub fn meets_target(&self) -> bool
Whether this verdict meets the 0.7 conservation target.
Trait Implementations§
Source§impl Clone for ConservationVerdict
impl Clone for ConservationVerdict
Source§fn clone(&self) -> ConservationVerdict
fn clone(&self) -> ConservationVerdict
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 ConservationVerdict
impl Debug for ConservationVerdict
Source§impl<'de> Deserialize<'de> for ConservationVerdict
impl<'de> Deserialize<'de> for ConservationVerdict
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ConservationVerdict
impl Hash for ConservationVerdict
Source§impl PartialEq for ConservationVerdict
impl PartialEq for ConservationVerdict
Source§impl Serialize for ConservationVerdict
impl Serialize for ConservationVerdict
impl Copy for ConservationVerdict
impl Eq for ConservationVerdict
impl StructuralPartialEq for ConservationVerdict
Auto Trait Implementations§
impl Freeze for ConservationVerdict
impl RefUnwindSafe for ConservationVerdict
impl Send for ConservationVerdict
impl Sync for ConservationVerdict
impl Unpin for ConservationVerdict
impl UnsafeUnpin for ConservationVerdict
impl UnwindSafe for ConservationVerdict
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