-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Labels
compatibility-breakingChanges that are (likely to be) breakingChanges that are (likely to be) breaking
Description
Progress
- Decide between
ToBytesandIntoBytes- Decided to go with
IntoBytesso thatFromBytes/IntoBytesis symmetrical with stdlib'sFrom/Into
- Decided to go with
- Implementation
- In progress in #700
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.
kupiakos
Metadata
Metadata
Assignees
Labels
compatibility-breakingChanges that are (likely to be) breakingChanges that are (likely to be) breaking