pub trait LocatedAt<T> {
// Required method
fn located(self, key: &str) -> Result<T, ModelError>;
}Expand description
An error located at a key, as one function per value type rather than a closure per call.
Required Methods§
Sourcefn located(self, key: &str) -> Result<T, ModelError>
fn located(self, key: &str) -> Result<T, ModelError>
The error, if any, located at key.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".