Skip to main content

EntityProp

Trait EntityProp 

Source
pub trait EntityProp<'a>: Sized {
    // Required method
    fn parse(raw: &'a str) -> Result<Self, EntityParseError>;
}

Required Methods§

Source

fn parse(raw: &'a str) -> Result<Self, EntityParseError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl EntityProp<'_> for bool

Source§

impl<'a> EntityProp<'a> for &'a str

Source§

fn parse(raw: &'a str) -> Result<Self, EntityParseError>

Source§

impl<'a, T: EntityProp<'a>> EntityProp<'a> for Option<T>

Source§

fn parse(raw: &'a str) -> Result<Self, EntityParseError>

Source§

impl<T: FromStrProp, const N: usize> EntityProp<'_> for [T; N]

Implementors§

Source§

impl<T: FromStrProp> EntityProp<'_> for T
where EntityParseError: From<<T as FromStr>::Err>,