pub trait SolEventInterface: Sized {
const NAME: &'static str;
const COUNT: usize;
// Required method
fn decode_raw_log(
topics: &[Word],
data: &[u8],
validate: bool,
) -> Result<Self>;
// Provided method
fn decode_log(log: &Log, validate: bool) -> Result<Log<Self>> { ... }
}
Expand description
Required Associated Constants§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.