Struct ink_ir::ChainExtensionMethod
source · pub struct ChainExtensionMethod { /* private fields */ }
Expand description
An ink! chain extension method.
Implementations§
source§impl ChainExtensionMethod
impl ChainExtensionMethod
sourcepub fn attrs(&self) -> Vec<Attribute>
pub fn attrs(&self) -> Vec<Attribute>
Returns the Rust attributes of the ink! chain extension method.
sourcepub fn sig(&self) -> &Signature
pub fn sig(&self) -> &Signature
Returns the method signature of the ink! chain extension method.
sourcepub fn id(&self) -> ExtensionId
pub fn id(&self) -> ExtensionId
Returns the unique ID of the chain extension method.
sourcepub fn inputs(&self) -> ChainExtensionMethodInputs<'_>
pub fn inputs(&self) -> ChainExtensionMethodInputs<'_>
Returns an iterator over the inputs of the chain extension method.
sourcepub fn handle_status(&self) -> bool
pub fn handle_status(&self) -> bool
Returns true
if the chain extension method was flagged with #[ink(handle_status)]
.
Trait Implementations§
source§impl Debug for ChainExtensionMethod
impl Debug for ChainExtensionMethod
source§impl PartialEq<ChainExtensionMethod> for ChainExtensionMethod
impl PartialEq<ChainExtensionMethod> for ChainExtensionMethod
source§fn eq(&self, other: &ChainExtensionMethod) -> bool
fn eq(&self, other: &ChainExtensionMethod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.