pub trait EntitySource:
Send
+ Sync
+ Debug {
// Required method
fn decode(&self, span: Range<usize>) -> Entity;
}Expand description
Decodes the entities of a lazily loaded Model.
Implemented by codecs; the model never knows what format a span is in.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".