Struct despatma_lib::AnnotatedType[][src]

pub struct AnnotatedType<T = Type> {
    pub attrs: OptionsAttribute,
    pub inner_type: T,
}

Holds a type that is optionally annotated with key-value options.

An acceptable stream will have the following form:

#[option1 = value1, option2 = value2]
SomeType

The outer attribute (hash part) is optional. SomeType will be parsed to T.

Fields

attrs: OptionsAttributeinner_type: T

Trait Implementations

impl<T: Parse> Parse for AnnotatedType<T>[src]

Make AnnotatedType parsable from token stream

Auto Trait Implementations

impl<T> RefUnwindSafe for AnnotatedType<T> where
    T: RefUnwindSafe
[src]

impl<T = Type> !Send for AnnotatedType<T>[src]

impl<T = Type> !Sync for AnnotatedType<T>[src]

impl<T> Unpin for AnnotatedType<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for AnnotatedType<T> where
    T: UnwindSafe
[src]

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, 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.