pub struct OriginPreSampler<M: MathsCore, I: Iterator<Item = u64>> { /* private fields */ }
Implementations§
source§impl<M: MathsCore, I: Iterator<Item = u64>> OriginPreSampler<M, I>
impl<M: MathsCore, I: Iterator<Item = u64>> OriginPreSampler<M, I>
pub fn get_sample_proportion(&self) -> ClosedUnitF64
source§impl<M: MathsCore, I: Iterator<Item = u64>> OriginPreSampler<M, I>
impl<M: MathsCore, I: Iterator<Item = u64>> OriginPreSampler<M, I>
pub fn percentage( self, percentage: ClosedUnitF64 ) -> OriginPreSampler<M, impl Iterator<Item = u64>>
pub fn partition( self, partition: Partition ) -> OriginPreSampler<M, impl Iterator<Item = u64>>
Trait Implementations§
Auto Trait Implementations§
impl<M, I> Freeze for OriginPreSampler<M, I>where
I: Freeze,
impl<M, I> RefUnwindSafe for OriginPreSampler<M, I>where
I: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, I> Send for OriginPreSampler<M, I>where
I: Send,
impl<M, I> Sync for OriginPreSampler<M, I>where
I: Sync,
impl<M, I> Unpin for OriginPreSampler<M, I>
impl<M, I> UnwindSafe for OriginPreSampler<M, I>where
I: UnwindSafe,
M: UnwindSafe,
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> ExtractDiscriminant for T
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by
core::mem::Discriminant
. Read more