pub trait Extractor {
// Required methods
fn get(&self, key: &str) -> Option<&str>;
fn keys(&self) -> Vec<&str>;
// Provided method
fn get_all(&self, key: &str) -> Option<Vec<&str>> { ... }
}Expand description
Extractor provides an interface for removing fields from an underlying struct like HashMap
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".