pub struct LetterStat {
pub n: u64,
pub miss: u64,
pub ms: f64,
}Fields§
§n: u64§miss: u64§ms: f64Implementations§
Source§impl LetterStat
impl LetterStat
pub fn add(&mut self, other: &LetterStat)
pub fn average_ms(&self) -> Option<f64>
Trait Implementations§
Source§impl Clone for LetterStat
impl Clone for LetterStat
impl Copy for LetterStat
Source§impl Debug for LetterStat
impl Debug for LetterStat
Source§impl Default for LetterStat
impl Default for LetterStat
Source§impl<'de> Deserialize<'de> for LetterStat
impl<'de> Deserialize<'de> for LetterStat
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 LetterStat
impl PartialEq for LetterStat
Source§impl Serialize for LetterStat
impl Serialize for LetterStat
impl StructuralPartialEq for LetterStat
Auto Trait Implementations§
impl Forget for LetterStat
impl Freeze for LetterStat
impl Move for LetterStat
impl RefUnwindSafe for LetterStat
impl Send for LetterStat
impl Sync for LetterStat
impl Unpin for LetterStat
impl UnsafeUnpin for LetterStat
impl UnwindSafe for LetterStat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more