Struct ink_lang_ir::ChainExtensionMethod
source · [−]pub struct ChainExtensionMethod { /* private fields */ }
Expand description
An ink! chain extension method.
Implementations
sourceimpl 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)]
.
sourcepub fn returns_result(&self) -> bool
pub fn returns_result(&self) -> bool
Returns true
if the chain extension method was flagged with #[ink(returns_result)]
.
Trait Implementations
sourceimpl Debug for ChainExtensionMethod
impl Debug for ChainExtensionMethod
sourceimpl PartialEq<ChainExtensionMethod> for ChainExtensionMethod
impl PartialEq<ChainExtensionMethod> for ChainExtensionMethod
sourcefn eq(&self, other: &ChainExtensionMethod) -> bool
fn eq(&self, other: &ChainExtensionMethod) -> bool
impl Eq for ChainExtensionMethod
impl StructuralEq for ChainExtensionMethod
impl StructuralPartialEq for ChainExtensionMethod
Auto Trait Implementations
impl RefUnwindSafe for ChainExtensionMethod
impl !Send for ChainExtensionMethod
impl !Sync for ChainExtensionMethod
impl Unpin for ChainExtensionMethod
impl UnwindSafe for ChainExtensionMethod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more