pub struct PurityFraction(/* private fields */);Expand description
A validated purity fraction, 0 < x <= 1. Not Score01: Score01
allows 0.0 (a meaningful “no support” score elsewhere in the crate),
while a 0.0 purity is meaningless/rejectable here, and nothing else in
the crate reuses Score01 outside score_plan’s own domain.
Implementations§
Trait Implementations§
Source§impl Clone for PurityFraction
impl Clone for PurityFraction
Source§fn clone(&self) -> PurityFraction
fn clone(&self) -> PurityFraction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PurityFraction
Source§impl Debug for PurityFraction
impl Debug for PurityFraction
Source§impl<'de> Deserialize<'de> for PurityFraction
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PurityFraction
Available on crate feature
serde only.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 PartialEq for PurityFraction
impl PartialEq for PurityFraction
Source§impl Serialize for PurityFraction
impl Serialize for PurityFraction
impl StructuralPartialEq for PurityFraction
Auto Trait Implementations§
impl Freeze for PurityFraction
impl RefUnwindSafe for PurityFraction
impl Send for PurityFraction
impl Sync for PurityFraction
impl Unpin for PurityFraction
impl UnsafeUnpin for PurityFraction
impl UnwindSafe for PurityFraction
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