pub trait Element:
Clone
+ PartialEq
+ Eq
+ Hash
+ Debug
+ Sized {
type Property: Property;
// Required methods
fn try_parse<P>(key: &Key<'_, Self::Property>, value: &str) -> Option<Self>;
fn to_cow(&self) -> Cow<'static, str>;
}
Required Associated Types§
Required Methods§
fn try_parse<P>(key: &Key<'_, Self::Property>, value: &str) -> Option<Self>
fn to_cow(&self) -> Cow<'static, str>
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.