Element

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<'static, 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<'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 Element for ()

Source§

type Property = ()

Source§

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

Source§

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

Implementors§