Trait Property

Source
pub trait Property:
    Debug
    + Clone
    + PartialEq
    + Eq
    + PartialOrd
    + Ord
    + Hash {
    // Required methods
    fn try_parse(key: Option<&Key<'_, Self>>, value: &str) -> Option<Self>;
    fn to_cow(&self) -> Cow<'static, str>;
}

Required Methods§

Source

fn try_parse(key: Option<&Key<'_, Self>>, value: &str) -> Option<Self>

Source

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.

Implementors§