pub trait PairMap<'a, K = String, V = String>{
const NAME: &'static str = "key-value pair";
const EXPECTED: &'static str = "<key>=<value>";
// Required method
fn map(&mut self) -> &mut HashMap<K, V>;
// Provided methods
fn pair(input: &'a str) -> Option<(K, V)> { ... }
fn set(&mut self, input: &'a str) { ... }
}
Provided Associated Constants§
const NAME: &'static str = "key-value pair"
const EXPECTED: &'static str = "<key>=<value>"
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.