[][src]Trait devise::FromMeta

pub trait FromMeta {
    fn from_meta(meta: MetaItem) -> Result<Self, Diagnostic>;

    fn from_attr(name: &str, attr: &Attribute) -> Result<Self, Diagnostic> { ... }
fn from_attrs(
        name: &str,
        attrs: &[Attribute]
    ) -> Option<Result<Self, Diagnostic>> { ... }
fn default() -> Option<Self> { ... } }

Required methods

fn from_meta(meta: MetaItem) -> Result<Self, Diagnostic>

Loading content...

Provided methods

fn from_attr(name: &str, attr: &Attribute) -> Result<Self, Diagnostic>

fn from_attrs(
    name: &str,
    attrs: &[Attribute]
) -> Option<Result<Self, Diagnostic>>

fn default() -> Option<Self>

Loading content...

Implementations on Foreign Types

impl<T> FromMeta for Option<T> where
    T: FromMeta
[src]

impl FromMeta for String[src]

impl FromMeta for usize[src]

impl FromMeta for isize[src]

impl FromMeta for bool[src]

Loading content...

Implementors

impl<T> FromMeta for SpanWrapped<T> where
    T: FromMeta
[src]

Loading content...