Struct ink_lang_ir::ChainExtension[][src]

pub struct ChainExtension { /* fields omitted */ }

An ink! chain extension.

Implementations

impl ChainExtension[src]

pub fn attrs(&self) -> Vec<Attribute>[src]

Returns the Rust attributes of the ink! chain extension.

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

Returns the span of the ink! chain extension.

pub fn ident(&self) -> &Ident[src]

Returns the identifier of the ink! chain extension.

pub fn iter_methods(&self) -> SliceIter<'_, ChainExtensionMethod>[src]

Returns a slice over all the chain extension methods.

pub fn error_code(&self) -> &Type[src]

Returns the type of the error code of the chain extension.

impl ChainExtension[src]

pub fn new(attr: TokenStream2, input: TokenStream2) -> Result<Self>[src]

Returns Ok if the trait matches all requirements for an ink! chain extension.

Trait Implementations

impl Debug for ChainExtension[src]

impl Eq for ChainExtension[src]

impl PartialEq<ChainExtension> for ChainExtension[src]

impl StructuralEq for ChainExtension[src]

impl StructuralPartialEq for ChainExtension[src]

impl TryFrom<ItemTrait> for ChainExtension[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

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