Skip to main content

IntoLoader

Trait IntoLoader 

Source
pub trait IntoLoader<T> {
    // Required method
    fn into_loader(self) -> Loader<T>;
}
Expand description

Anything that can act as one level of a load path over T.

Implemented by ThenLoad — which is what the generated relation mods return — and by a bare Loader<T>, so a hand-written loader nests exactly like a generated one.

Required Methods§

Source

fn into_loader(self) -> Loader<T>

The loader payload this level runs.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<P, C, K> IntoLoader<<P as View>::Row> for ThenLoad<P, C, K>
where P: View, C: View, K: Ord + Clone + Send + Sync + 'static,

Source§

impl<T> IntoLoader<T> for Loader<T>