swiftide_core::indexing_traits

Trait Loader

source
pub trait Loader {
    // 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§

source§

impl Loader for &dyn Loader