Property

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.

Implementations on Foreign Types§

Source§

impl Property for ()

Source§

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

Source§

fn to_cow(&self) -> Cow<'static, str>

Implementors§