Struct multi_skill::data_processing::ClosureDataset[][src]

pub struct ClosureDataset<T, F: Fn(usize) -> T> { /* fields omitted */ }

A Dataset defined in terms of a closure, which acts as a "getter".

Implementations

impl<T, F: Fn(usize) -> T> ClosureDataset<T, F>[src]

pub fn new(length: usize, closure: F) -> Self[src]

Trait Implementations

impl<T, F: Fn(usize) -> T> Dataset for ClosureDataset<T, F>[src]

type Item = T

The type of objects procured by the Dataset.

Auto Trait Implementations

impl<T, F> RefUnwindSafe for ClosureDataset<T, F> where
    F: RefUnwindSafe
[src]

impl<T, F> Send for ClosureDataset<T, F> where
    F: Send
[src]

impl<T, F> Sync for ClosureDataset<T, F> where
    F: Sync
[src]

impl<T, F> Unpin for ClosureDataset<T, F> where
    F: Unpin
[src]

impl<T, F> UnwindSafe for ClosureDataset<T, F> where
    F: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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