[][src]Struct weedle::argument::SingleArgument

pub struct SingleArgument<'a> {
    pub attributes: Option<ExtendedAttributeList<'a>>,
    pub optional: Option<Optional>,
    pub type_: AttributedType<'a>,
    pub identifier: Identifier<'a>,
    pub default: Option<Default<'a>>,
}

Parses [attributes]? optional? attributedtype identifier ( = default )?

Note: = default is only allowed if optional is present

Fields

attributes: Option<ExtendedAttributeList<'a>>optional: Option<Optional>type_: AttributedType<'a>identifier: Identifier<'a>default: Option<Default<'a>>

Trait Implementations

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

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

impl<'a> Eq for SingleArgument<'a>[src]

impl<'a> From<SingleArgument<'a>> for Argument<'a>[src]

impl<'a> Hash for SingleArgument<'a>[src]

impl<'a> Ord for SingleArgument<'a>[src]

impl<'a> Parse<'a> for SingleArgument<'a>[src]

impl<'a> PartialEq<SingleArgument<'a>> for SingleArgument<'a>[src]

impl<'a> PartialOrd<SingleArgument<'a>> for SingleArgument<'a>[src]

impl<'a> StructuralEq for SingleArgument<'a>[src]

impl<'a> StructuralPartialEq for SingleArgument<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for SingleArgument<'a>

impl<'a> Send for SingleArgument<'a>

impl<'a> Sync for SingleArgument<'a>

impl<'a> Unpin for SingleArgument<'a>

impl<'a> UnwindSafe for SingleArgument<'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> 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.