You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our derives are not able to support all generic types. However, sometimes a user may not need a given trait to be implemented for every instantiation of type variables. In this case, we could permit them to specify concrete types for which they want zerocopy trait impls:
#[derive(IntoBytes)]#[zerocopy(derive_for = Foo<u64, u64>)]#[repr(C)]structFoo<A,B>(A,B);// Emitted by derive:unsafeimplIntoBytesforFoo<u64,u64>{ ... }
The text was updated successfully, but these errors were encountered:
Credit to @kupiakos for this idea
Our derives are not able to support all generic types. However, sometimes a user may not need a given trait to be implemented for every instantiation of type variables. In this case, we could permit them to specify concrete types for which they want zerocopy trait impls:
The text was updated successfully, but these errors were encountered: