Make ctors that accept slices infallible using arrays and other breaking changes #536
No reviewers
Labels
No labels
breaking
bug
dependencies
good first issue
help wanted
unstable
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-uuid-rs/uuid!536
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/infallible-ctors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #150 #459 #329 #533
Infallible array inputs
This is a breaking change that changes
&[u8]inputs toUuidmethods to&[u8; N]. This lets us make these methods infallible so they can be used in otherconstfunctions. If a caller only has a&[u8]to pass in, they can usetry_intoto convert it into a&[u8; N].Infallible variant
It's not possible for the variant to ever return
None, so we don't need to return anOptionfor it.Compact serializer by default
We now serialize a 16 element tuple instead of a slice of bytes in non-human-readable formats.
While working on this I've also catalogued our unstable dependencies. I think the only public one left is
winapi, which is unlikely to change in a hurry, but we should consider shifting it out into an external library that just offers two functions: