Closed Manishearth closed 1 week ago
The zerovec crate uses byte_slice and bytes to talk about methods working with &[u8]. We should pick one (I suggest as_bytes() etc since that's what the stdlib does)
zerovec
byte_slice
bytes
&[u8]
as_bytes()
$ rg "\b[a-zA-Z_]*_byte_slice[a-zA-Z_]*\b" --no-filename --only-matching -N | sort -u as_byte_slice from_byte_slice_unchecked from_byte_slice_unchecked_mut impl_byte_slice_signed_type impl_byte_slice_size impl_byte_slice_type impl_byte_slice_unsigned_type iule_from_byte_slice_unchecked_mut parse_byte_slice parse_byte_slice_with_length parse_owned_byte_slice validate_byte_slice
*_bytes*
Everything but the impl ones should probably be changed,
The
zerovec
crate usesbyte_slice
andbytes
to talk about methods working with&[u8]
. We should pick one (I suggestas_bytes()
etc since that's what the stdlib does)*_bytes*
usageEverything but the impl ones should probably be changed,