Skip to main content

Mixin

Trait Mixin 

Source
pub trait Mixin<C>: Sealed + 'static
where 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".

Implementors§