Trait Loader

Source
pub trait Loader:
    DynClone
    + Send
    + Sync {
    // Required method
    fn into_stream(self) -> IndexingStream;

    // Provided methods
    fn into_stream_boxed(self: Box<Self>) -> IndexingStream { ... }
    fn name(&self) -> &'static str { ... }
}
Expand description

Starting point of a stream

Required Methods§

Provided Methods§

Source

fn into_stream_boxed(self: Box<Self>) -> IndexingStream

Intended for use with Box

Only needed if you use trait objects (Box)

§Example
fn into_stream_boxed(self: Box<Self>) -> IndexingStream {
   self.into_stream()
 }
Source

fn name(&self) -> &'static str

Trait Implementations§

Source§

impl Loader for &dyn Loader

Source§

fn into_stream(self) -> IndexingStream

Source§

fn into_stream_boxed(self: Box<Self>) -> IndexingStream

Intended for use with Box Read more
Source§

fn name(&self) -> &'static str

Source§

impl Loader for Box<dyn Loader>

Source§

fn into_stream(self) -> IndexingStream

Source§

fn into_stream_boxed(self: Box<Self>) -> IndexingStream

Intended for use with Box Read more
Source§

fn name(&self) -> &'static str

Implementations on Foreign Types§

Source§

impl Loader for Box<dyn Loader>

Implementors§