pub struct RandomSamplerState {
pub length: u64,
pub num_samples: u64,
pub replacement: RandomReplacement,
pub seed: u64,
pub epoch: u64,
pub position: u64,
}Expand description
Serialized configuration and cursor for RandomSampler.
Fields§
§length: u64Configured index range length.
num_samples: u64Number of generated occurrences.
replacement: RandomReplacementReplacement policy.
seed: u64Base seed.
epoch: u64Active epoch.
position: u64Next occurrence position.
Trait Implementations§
Source§impl Clone for RandomSamplerState
impl Clone for RandomSamplerState
Source§impl Debug for RandomSamplerState
impl Debug for RandomSamplerState
Source§impl<'de> Deserialize<'de> for RandomSamplerState
impl<'de> Deserialize<'de> for RandomSamplerState
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
Auto Trait Implementations§
impl Forget for RandomSamplerState
impl Freeze for RandomSamplerState
impl RefUnwindSafe for RandomSamplerState
impl Send for RandomSamplerState
impl Sync for RandomSamplerState
impl Unpin for RandomSamplerState
impl UnsafeUnpin for RandomSamplerState
impl UnwindSafe for RandomSamplerState
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