Derive Macro yoke_derive::Yokeable

source · []
    // Attributes available to this derive:
Expand description

Custom derive for yoke::Yokeable,

If your struct contains zerovec::ZeroMap, then the compiler will not be able to guarantee the lifetime covariance due to the generic types on the ZeroMap itself. You must add the following attribute in order for the custom derive to work with ZeroMap.


Beyond this case, if the derive fails to compile due to lifetime issues, it means that the lifetime is not covariant and Yokeable is not safe to implement.