pub struct Dataset<I> {
    pub items: Vec<I>,
}

Fields§

§items: Vec<I>

Implementations§

Trait Implementations§

source§

impl<I> FromIterator<I> for Dataset<I>

source§

fn from_iter<T>(iter: T) -> Self
where T: IntoIterator<Item = I>,

Creates a value from an iterator. Read more
source§

impl<I> FromParallelDataset<I> for Dataset<I>
where I: Send,

source§

fn from_par_dataset<D>(iter: D) -> Self
where D: IntoParallelIterator<Item = I>,

source§

impl<I> IntoParallelIterator for Dataset<I>
where I: Send,

§

type Iter = IntoIter<<Dataset<I> as IntoParallelIterator>::Item>

The parallel iterator type that will be created.
§

type Item = I

The type of item that the parallel iterator will produce.
source§

fn into_par_iter(self) -> Self::Iter

Converts self into a parallel iterator. Read more
source§

impl<I> ParallelDataset for Dataset<I>
where I: Send,

source§

fn map<F, R>(self, op: F) -> MapOp<Self, F>
where F: Fn(Self::Item) -> R + Sync + Send, R: Send,

source§

fn flat_map<F, R>(self, op: F) -> FlatMapOp<Self, F>
where F: Fn(Self::Item) -> R + Sync + Send, R: IntoParallelIterator,

source§

fn filter<F>(self, op: F) -> FilterOp<Self, F>
where F: Fn(&Self::Item) -> bool + Sync,

source§

fn fold<T, ID, F>(self, identity: ID, op: F) -> FoldOp<Self, ID, F>
where F: Fn(T, Self::Item) -> T + Sync + Send, ID: Fn() -> T + Sync + Send, T: Send,

source§

fn reduce<ID, F>(self, identity: ID, op: F) -> Self::Item
where F: Fn(Self::Item, Self::Item) -> Self::Item + Sync + Send, ID: Fn() -> Self::Item + Sync + Send,

source§

fn sort_by_key<F, K>(self, op: F, ascending: bool) -> SortByKeyOp<Self, F>
where F: Fn(&Self::Item) -> K + Sync, K: Ord + Send,

source§

fn group_by<F, K>(self, key: F) -> MapDataset<K, Vec<Self::Item>>
where F: Fn(&Self::Item) -> K + Sync, K: Hash + Eq + Send,

source§

fn group_by_map<K, V, F1, F2>(self, key: F1, value: F2) -> MapDataset<K, Vec<V>>
where F1: Fn(&Self::Item) -> K + Sync, F2: Fn(&Self::Item) -> V + Sync, K: Hash + Eq + Send, V: Send,

source§

fn count(self) -> usize

source§

fn take_any(self, n: usize) -> TakeAny<Self>

source§

fn collect<C>(self) -> C
where C: FromParallelDataset<Self::Item>,

Auto Trait Implementations§

§

impl<I> Freeze for Dataset<I>

§

impl<I> RefUnwindSafe for Dataset<I>
where I: RefUnwindSafe,

§

impl<I> Send for Dataset<I>
where I: Send,

§

impl<I> Sync for Dataset<I>
where I: Sync,

§

impl<I> Unpin for Dataset<I>
where I: Unpin,

§

impl<I> UnwindSafe for Dataset<I>
where I: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> Ungil for T
where T: Send,