[][src]Trait macro_input::FromMeta

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

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

Required methods

pub fn from(meta: Option<Meta>) -> Result<Self, Error>[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<Vec<Ident, Global>>[src]

impl FromMeta for Vec<Ident, Global>[src]

impl FromMeta for Option<()>[src]

Loading content...

Implementors

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

Loading content...