pub trait LinqSource { }Expand description
Marker trait implemented by query source types (QueryBuilder<T>, DbSet<T>).
LinqSource enables the linq! macro to accept untyped closures
(|b| ...) when the source expression carries entity type information
via turbofish (e.g. ctx.set::<Blog>()). The macro extracts the type
from the source and generates a typed closure internally.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".