Skip to main content

EventIndexEncodable

Trait EventIndexEncodable 

Source
pub trait EventIndexEncodable: Sized {
    // Required method
    fn indexed_event_encode(&self) -> Vec<H256>;
}
Expand description

A type implements EventIndexEncodable must be a tuple of types implement EventIndexEncodable. For convenient, for the tuple with only one element like (U256,), we implement EventIndexEncodable for U256 instead.

Required Methods§

Source

fn indexed_event_encode(&self) -> Vec<H256>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl EventIndexEncodable for ()

Source§

impl<A: ABIVariable, B: ABIVariable, C: ABIVariable, D: ABIVariable, E: ABIVariable> EventIndexEncodable for (A, B, C, D, E)

Source§

impl<A: ABIVariable, B: ABIVariable, C: ABIVariable, D: ABIVariable> EventIndexEncodable for (A, B, C, D)

Source§

impl<A: ABIVariable, B: ABIVariable, C: ABIVariable> EventIndexEncodable for (A, B, C)

Source§

impl<A: ABIVariable, B: ABIVariable> EventIndexEncodable for (A, B)

Implementors§