Enum ink_lang_ir::InkTraitItem[][src]

pub enum InkTraitItem<'a> {
    Constructor(InkTraitConstructor<'a>),
    Message(InkTraitMessage<'a>),
}

An ink! item within an ink! trait definition.

Variants

Constructor(InkTraitConstructor<'a>)
Message(InkTraitMessage<'a>)

Implementations

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

pub fn filter_map_constructor(self) -> Option<InkTraitConstructor<'a>>[src]

Returns Some if the ink! trait item is a constructor.

pub fn filter_map_message(self) -> Option<InkTraitMessage<'a>>[src]

Returns Some if the ink! trait item is a message.

Trait Implementations

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for InkTraitItem<'a>

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

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

impl<'a> Unpin for InkTraitItem<'a>

impl<'a> UnwindSafe for InkTraitItem<'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> Same<T> for T

type Output = T

Should always be Self

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.