pub trait Loader:
DynClone
+ Send
+ Sync {
type Output: Chunk;
// Required method
fn into_stream(self) -> IndexingStream<Self::Output>;
// Provided methods
fn into_stream_boxed(self: Box<Self>) -> IndexingStream<Self::Output> { ... }
fn name(&self) -> &'static str { ... }
}Expand description
Starting point of a stream
Required Associated Types§
Required Methods§
fn into_stream(self) -> IndexingStream<Self::Output>
Provided Methods§
Sourcefn into_stream_boxed(self: Box<Self>) -> IndexingStream<Self::Output>
fn into_stream_boxed(self: Box<Self>) -> IndexingStream<Self::Output>
fn name(&self) -> &'static str
Trait Implementations§
Source§impl<O> Loader for Box<dyn Loader<Output = O>>where
O: Chunk,
impl<O> Loader for Box<dyn Loader<Output = O>>where
O: Chunk,
type Output = O
fn into_stream( self, ) -> IndexingStream<<Box<dyn Loader<Output = O>> as Loader>::Output>
Source§fn into_stream_boxed(
self: Box<Box<dyn Loader<Output = O>>>,
) -> IndexingStream<<Box<dyn Loader<Output = O>> as Loader>::Output>
fn into_stream_boxed( self: Box<Box<dyn Loader<Output = O>>>, ) -> IndexingStream<<Box<dyn Loader<Output = O>> as Loader>::Output>
Intended for use with Box Read more
fn name(&self) -> &'static str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".