pub struct SampleOptions {
pub n: Option<usize>,
pub fraction: Option<f64>,
pub seed: Option<u64>,
pub strategy: SampleStrategy,
pub categories: Vec<String>,
pub category_mode: CategoryMode,
}Expand description
Sampling options.
Fields§
§n: Option<usize>§fraction: Option<f64>§seed: Option<u64>§strategy: SampleStrategy§categories: Vec<String>§category_mode: CategoryModeTrait Implementations§
Source§impl Clone for SampleOptions
impl Clone for SampleOptions
Source§fn clone(&self) -> SampleOptions
fn clone(&self) -> SampleOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SampleOptions
impl RefUnwindSafe for SampleOptions
impl Send for SampleOptions
impl Sync for SampleOptions
impl Unpin for SampleOptions
impl UnsafeUnpin for SampleOptions
impl UnwindSafe for SampleOptions
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