Struct glean_core::metrics::Rate
source · pub struct Rate {
pub numerator: i32,
pub denominator: i32,
}
Expand description
A rate value as given by its numerator and denominator.
Fields§
§numerator: i32
A rate’s numerator
denominator: i32
A rate’s denominator
Trait Implementations§
source§impl PartialEq for Rate
impl PartialEq for Rate
impl Eq for Rate
impl StructuralEq for Rate
impl StructuralPartialEq for Rate
Auto Trait Implementations§
impl RefUnwindSafe for Rate
impl Send for Rate
impl Sync for Rate
impl Unpin for Rate
impl UnwindSafe for Rate
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<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more