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 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 CockResult
impl Debug for CockResult
Source§impl<'de> Deserialize<'de> for CockResult
impl<'de> Deserialize<'de> for CockResult
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 CockResult
impl PartialEq for CockResult
impl StructuralPartialEq for CockResult
Auto Trait Implementations§
impl Freeze for CockResult
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