Struct streaming_algorithms::SampleUnstable[][src]

pub struct SampleUnstable<T> { /* fields omitted */ }

Reservoir sampling. Without replacement, and the returned order is unstable.

Methods

impl<T> SampleUnstable<T>
[src]

Create a SampleUnstable that will provide a sample of size samples.

"Visit" this element

Trait Implementations

impl<T: Clone> Clone for SampleUnstable<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for SampleUnstable<T>
[src]

Formats the value using the given formatter. Read more

impl<T> IntoIterator for SampleUnstable<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<T> Sum for SampleUnstable<T>
[src]

Method which takes an iterator and generates Self from the elements by "summing up" the items. Read more

impl<T> Add for SampleUnstable<T>
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl<T> AddAssign for SampleUnstable<T>
[src]

Performs the += operation.

Auto Trait Implementations

impl<T> Send for SampleUnstable<T> where
    T: Send

impl<T> Sync for SampleUnstable<T> where
    T: Sync