pub struct RelevancyLive {
pub name: String,
pub window_mean: f64,
pub total_mean: f64,
pub total_count: u64,
pub window_len: usize,
}Expand description
Live snapshot of a relevancy metric: window mean, all-time mean, how many scores have been recorded, and the current window size.
Fields§
§name: String§window_mean: f64§total_mean: f64§total_count: u64§window_len: usizeTrait Implementations§
Source§impl Clone for RelevancyLive
impl Clone for RelevancyLive
Auto Trait Implementations§
impl Freeze for RelevancyLive
impl RefUnwindSafe for RelevancyLive
impl Send for RelevancyLive
impl Sync for RelevancyLive
impl Unpin for RelevancyLive
impl UnsafeUnpin for RelevancyLive
impl UnwindSafe for RelevancyLive
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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