defuse_nep245

Trait MtEventEmit

Source
pub trait MtEventEmit<'a>: Into<MtEvent<'a>> {
    // Provided method
    fn emit(self) { ... }
}
Expand description

A trait that’s used to make it possible to call emit() on the enum arms’ contents without having to explicitly construct the enum MtEvent itself

Provided Methods§

Source

fn emit(self)

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.

Implementors§

Source§

impl<'a, T> MtEventEmit<'a> for T
where T: Into<MtEvent<'a>>,