Struct cock_lib::CockResult
source · pub struct CockResult {
pub score: f32,
pub percentage: f32,
}Expand description
This struct encapsulates the result of a score calculation, CockResult. It includes the raw score and the percentage score.
Fields§
§score: f32§percentage: f32Trait Implementations§
source§impl Clone for CockResult
impl Clone for CockResult
source§fn clone(&self) -> CockResult
fn clone(&self) -> CockResult
Returns a copy 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 CockResult
impl Debug for CockResult
source§impl PartialEq<CockResult> for CockResult
impl PartialEq<CockResult> for CockResult
source§fn eq(&self, other: &CockResult) -> bool
fn eq(&self, other: &CockResult) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CockResult
Auto Trait Implementations§
impl RefUnwindSafe for CockResult
impl Send for CockResult
impl Sync for CockResult
impl Unpin for CockResult
impl UnwindSafe for CockResult
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