Some bytemuck traits like Pod have a 'static constraint. When implementing such traits for types having an Unsigned type parameter, I have to add a 'static constraint. For example
impl <T: 'static + Unsigned> Pod for MyType<T> {}
Since Unsigned should only be implemented for internal types, and all these types are 'static, can the Unsigned types be marked as 'static?
And if the answer is yes, are there any other marker traits that should receive the same treatment?
Some bytemuck traits like
Pod
have a'static
constraint. When implementing such traits for types having anUnsigned
type parameter, I have to add a'static
constraint. For exampleSince
Unsigned
should only be implemented for internal types, and all these types are'static
, can theUnsigned
types be marked as'static
?And if the answer is yes, are there any other marker traits that should receive the same treatment?
If the answer is yes, I could write a PR.