Struct ink_ir::ChainExtension
source · pub struct ChainExtension { /* private fields */ }
Expand description
An ink! chain extension.
Implementations§
source§impl ChainExtension
impl ChainExtension
sourcepub fn iter_methods(&self) -> SliceIter<'_, ChainExtensionMethod>
pub fn iter_methods(&self) -> SliceIter<'_, ChainExtensionMethod>
Returns a slice over all the chain extension methods.
sourcepub fn error_code(&self) -> &Type
pub fn error_code(&self) -> &Type
Returns the type of the error code of the chain extension.
source§impl ChainExtension
impl ChainExtension
sourcepub fn new(attr: TokenStream2, input: TokenStream2) -> Result<Self>
pub fn new(attr: TokenStream2, input: TokenStream2) -> Result<Self>
Returns Ok
if the trait matches all requirements for an ink! chain extension.
Trait Implementations§
source§impl Debug for ChainExtension
impl Debug for ChainExtension
source§impl PartialEq<ChainExtension> for ChainExtension
impl PartialEq<ChainExtension> for ChainExtension
source§fn eq(&self, other: &ChainExtension) -> bool
fn eq(&self, other: &ChainExtension) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.