pub struct FileLoader { /* private fields */ }

Implementations§

source§

impl FileLoader

source

pub fn new(files: Vec<PathBuf>) -> Self

source

pub fn from_directory<P: AsRef<Path>>(path: P) -> Self

Trait Implementations§

source§

impl Clone for FileLoader

source§

fn clone(&self) -> FileLoader

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Node<Vec<(), Global>> for FileLoader

§

type Output = Vec<(PathBuf, Vec<u8, Global>), Global>

source§

fn process(&mut self, input: Vec<()>) -> Self::Output

Process a batch of data
source§

fn reset(&mut self)

Reset signal propogates through pipeline
source§

fn data_remaining(&self, _before: usize) -> usize

Get number of examples left

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<Input, Output, E> ExtendNode<Input, Output, E> for Ewhere E: Node<Input, Output = Output>,

source§

fn chain<O, N>(self, node: N) -> (E, N)where N: Node<Output, Output = O>,

source§

impl<Input, Output, E> ExtendNodeMap<Input, Output, E> for Ewhere E: Node<Input, Output = Vec<Output, Global>>,

source§

fn map<O, N>(self, node: N) -> (E, Map<Output, N>)where N: Node<Output, Output = O>,

source§

fn filter_map<O, N>(self, node: N) -> (E, FilterMap<Output, N>)where N: Node<Output, Output = Option<O>>,

source§

fn filter<F>(self, function: F) -> (E, Filter<Output, F>)where F: FnMut(&Output) -> bool,

source§

impl<Input, Output, E> ExtendNodeSplit<Input, Output, E> for Ewhere Output: Clone, E: Node<Input, Output = Output>,

source§

fn split<O1, O2, E1, E2>( self, node1: E1, node2: E2 ) -> (E, Duplicator<Output>, Pair<Output, Output, E1, E2>)where E1: Node<Output, Output = O1>, E2: Node<Output, Output = O2>,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere 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 Twhere 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.
§

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

§

fn vzip(self) -> V