[][src]Trait macro_input_core::FromMeta

pub trait FromMeta: Sized {
    pub fn from(meta: Option<Meta>) -> Result<Self>;
}

a trait for extracting a value from Option<syn::Meta>

Required methods

pub fn from(meta: Option<Meta>) -> Result<Self>[src]

extract the value

Errors

may return an Error if the meta doesn't contain the correct value

Loading content...

Implementations on Foreign Types

impl FromMeta for Option<()>[src]

impl FromMeta for Vec<Ident>[src]

impl FromMeta for Option<Vec<Ident>>[src]

Loading content...

Implementors

impl<F: FromLit> FromMeta for F[src]

Loading content...