Macro rkyv_dyn::register_impl[][src]

macro_rules! register_impl {
    ($type:ty as $trait:ty) => { ... };
}

Registers a new impl with the trait object system.

This is called by #[archive_dyn] when attached to a trait implementation. You might need to call this manually if you’re using generic traits and types, since each specific instance needs to be individually registered.

Call it like register_impl!(MyType as dyn MyTrait).