pub trait EntityOrSelect<E: EntityTrait> {
// Required method
fn select(self) -> Select<E>;
}Expand description
Either an Entity or a Select<Entity>; accepted by LoaderTrait so
you can pass the entity directly when no filtering is needed, or a
pre-filtered Select when it is.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".