Progress
Description
Now that AsBytes permits UnsafeCells as part of #251, it can be implemented for types which support value-only transmutation (ie, for which fn as_bytes(&self) -> &[u8] where Self: NoCell is not available because Self: !NoCell). Given this change, a more appropriate name for the trait would be IntoBytes. This also brings our pair of FromBytes/IntoBytes into line with the existing pattern of From/Into.
Progress
ToBytesandIntoBytesIntoBytesso thatFromBytes/IntoBytesis symmetrical with stdlib'sFrom/IntoDescription
Now that
AsBytespermitsUnsafeCellsas part of #251, it can be implemented for types which support value-only transmutation (ie, for whichfn as_bytes(&self) -> &[u8] where Self: NoCellis not available becauseSelf: !NoCell). Given this change, a more appropriate name for the trait would beIntoBytes. This also brings our pair ofFromBytes/IntoBytesinto line with the existing pattern ofFrom/Into.