Closed
Description
Progress
-
FromBytes::ref_from_prefix
inconsistent withFromBytes::from_prefix_with_trailing_elements
? - Finalize naming as outlined in Revising the (`Try`)`FromBytes` Conversion Methods in 0.8 #1095
- Consider replacing
with_trailing_elements
withwith_elems
in method names - Finalize all
#[doc(hidden)]
pub
functions/methods - finalize naming or delete - Add methods with old names, marked
#[doc(hidden)]
and#[deprecated]
- Audit to make sure that all deprecation messages mention the current names (since names have changed somewhat since some
#[deprecated]
attributes were added) - Resolve all
TODO(#871)
comments - Does the name
Ref::from
cause inference issues since Rust thinks it might beFrom::from
rather than inherent? - Rename
Ref::unaligned_from
tounaligned_from_bytes
- Rename
FromBytes::ref_from[_with_elems]
toref_from_bytes[_with_elems]
- Rename
FromBytes::read_from
toread_from_bytes
? - Audit
TryFromBytes
methods for naming consistency w/FromBytes
methods - Make deprecated
Ref
methods returnOption
s instead ofResult
s (ie, consistent with old signatures)?
Details
In the same vein as #253, we should audit our API for:
- Internal consistency
- Consistency with existing conventions