pub struct ShuffleBuffer { /* private fields */ }Expand description
Shuffle transform - randomize sample order using a reservoir buffer.
Maintains a buffer of capacity samples. When the buffer is full,
a random sample is evicted and yielded. This provides streaming
approximate shuffling with bounded memory.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShuffleBuffer
impl RefUnwindSafe for ShuffleBuffer
impl Send for ShuffleBuffer
impl Sync for ShuffleBuffer
impl Unpin for ShuffleBuffer
impl UnsafeUnpin for ShuffleBuffer
impl UnwindSafe for ShuffleBuffer
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