pub trait Mixin<C>: Sealed + 'staticwhere
C: NativeClass,{ }
Expand description
Trait for mixins, manually registered #[methods]
blocks that may be applied to multiple types.
This trait is implemented on generated types by the #[methods]
proc-macro only, and has no public interface.
Use ClassBuilder::mixin
to register mixins to NativeClass
types.
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.