Struct infinity_sampler::RawReservoir
source · pub struct RawReservoir<T, const N: usize> { /* private fields */ }Expand description
Underlying non-sampling reservoir
You probably want to use the SamplingReservoir wrapper. See there for documentation of most methods as well.
Implementations§
source§impl<T, const N: usize> RawReservoir<T, N>
impl<T, const N: usize> RawReservoir<T, N>
pub const fn new() -> Self
pub const fn capacity(&self) -> usize
pub const fn len(&self) -> usize
pub fn into_inner(self) -> ([Item<T>; N], InfinitySamplerIndexer<N>)
pub fn as_unordered_slice(&self) -> &[InitializedItem<T>]
pub fn into_ordered_iter(self) -> ReservoirOrderedIter<T, N> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl<T, const N: usize> RefUnwindSafe for RawReservoir<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for RawReservoir<T, N>where
T: Send,
impl<T, const N: usize> Sync for RawReservoir<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for RawReservoir<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for RawReservoir<T, N>where
T: 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