Skip to main content

FunctionExt

Trait FunctionExt 

Source
pub trait FunctionExt {
    // Required methods
    fn abi_signature(&self) -> String;
    fn selector(&self) -> H32;
}
Expand description

Extension trait for ethabi::Function.

Required Methods§

Source

fn abi_signature(&self) -> String

Computes the method signature in the standard ABI format. This does not include the output types.

Source

fn selector(&self) -> H32

Computes the Keccak256 function selector used by contract ABIs.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FunctionExt for Function

Implementors§