[][src]Enum devise::MetaItem

pub enum MetaItem<'a> {
    Ident(&'a Ident),
    Literal(&'a Lit),
    KeyValue(&'a Ident, &'a Lit),
    List(MetaItemList<'a>),
}

Variants

Ident(&'a Ident)
Literal(&'a Lit)
KeyValue(&'a Ident, &'a Lit)
List(MetaItemList<'a>)

Methods

impl<'a> MetaItem<'a>[src]

pub fn name(&self) -> Option<&Ident>[src]

pub fn description(&self) -> &'static str[src]

pub fn is_bare(&self) -> bool[src]

pub fn lit(&self) -> Result<&Lit, Diagnostic>[src]

pub fn value_span(&self) -> Span[src]

Trait Implementations

impl<'a> Clone for MetaItem<'a>[src]

impl<'a> Copy for MetaItem<'a>[src]

impl<'a> Debug for MetaItem<'a>[src]

impl<'a> From<&'a Meta> for MetaItem<'a>[src]

impl<'a> From<&'a NestedMeta> for MetaItem<'a>[src]

impl<'a> Spanned for MetaItem<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for MetaItem<'a>

impl<'a> !Send for MetaItem<'a>

impl<'a> !Sync for MetaItem<'a>

impl<'a> Unpin for MetaItem<'a>

impl<'a> !UnwindSafe for MetaItem<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Spanned for T where
    T: ToTokens
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.