pub struct BatchSamplerState<S> {
pub sampler: S,
pub batch_size: u64,
pub drop_last: bool,
pub next_batch: u64,
pub next_logical_sample: u64,
}Expand description
Serialized cursor for a compositional BatchSampler.
Fields§
§sampler: SInner sampler configuration and cursor.
batch_size: u64Configured batch size.
drop_last: boolWhether an incomplete final batch is omitted.
next_batch: u64Next visible batch number.
next_logical_sample: u64Next logical sample occurrence.
Trait Implementations§
Source§impl<S: Clone> Clone for BatchSamplerState<S>
impl<S: Clone> Clone for BatchSamplerState<S>
Source§impl<S: Debug> Debug for BatchSamplerState<S>
impl<S: Debug> Debug for BatchSamplerState<S>
Source§impl<'de, S> Deserialize<'de> for BatchSamplerState<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for BatchSamplerState<S>where
S: Deserialize<'de>,
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<S> Forget for BatchSamplerState<S>
impl<S> Freeze for BatchSamplerState<S>where
S: Freeze,
impl<S> RefUnwindSafe for BatchSamplerState<S>where
S: RefUnwindSafe,
impl<S> Send for BatchSamplerState<S>where
S: Send,
impl<S> Sync for BatchSamplerState<S>where
S: Sync,
impl<S> Unpin for BatchSamplerState<S>where
S: Unpin,
impl<S> UnsafeUnpin for BatchSamplerState<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for BatchSamplerState<S>where
S: 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