Trait Element

Source
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<'_, str>;
}

Required Associated Types§

Required Methods§

Source

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

Source

fn to_cow(&self) -> Cow<'_, 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§