zerocopy icon indicating copy to clipboard operation
zerocopy copied to clipboard

Rename `LayoutVerified` to `Ref`

Open joshlf opened this issue 3 years ago • 2 comments

The LayoutVerified type wraps a byte slice reference. It is a witness type that guarantees that the length and alignment have been validated to be compatible with a type parameter, T. It's named based on this witness role (the layout has been "verified"), but the name is confusing for consumers. We should rename it to Ref or similar - it's a reference type that enables zero-copy operations, hence zerocopy::Ref.

joshlf avatar Oct 15 '22 23:10 joshlf

I'll take this one

MSalah73 avatar Oct 16 '22 16:10 MSalah73

Hi @MSalah73 , this one isn't ready for contribution yet unfortunately - I'm going to need to go through and make sure that this change doesn't break anything in Fuchsia. Once I've done that, I'll add the https://github.com/google/zerocopy/labels/good%20first%20issue label. In the meantime, check out that label for stuff that we need help with!

joshlf avatar Oct 16 '22 18:10 joshlf