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§
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.