Add Nil variant #181
No reviewers
Labels
No labels
breaking
bug
dependencies
good first issue
help wanted
unstable
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-uuid-rs/uuid!181
Loading…
Reference in a new issue
No description provided.
Delete branch "nil-variant"
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?
I'm submitting a ...
Description
Adds
Nilvariant to theUuidVersion.Motivation
nilUuid, containing all zeros, is a validUuid, as per the specification. This will allow users doing pattern matching to explicitly check for it.Tests
Updated
test_nilto ensure thatRelated Issue(s)
closes #133
supersedes #176
@ -151,6 +151,10 @@ pub type UuidBytes = [u8; 16];/// The version of the UUID, denoting the generating algorithm.What do we have the [
struct.Uuid.html] here for? Does this render in the docs asstruct.Uuid.html?@ -151,6 +151,10 @@ pub type UuidBytes = [u8; 16];/// The version of the UUID, denoting the generating algorithm.Woops I forgot to link it will fix it ASAP
@ -151,6 +151,10 @@ pub type UuidBytes = [u8; 16];/// The version of the UUID, denoting the generating algorithm.That was supposed to be
Uuid@ -151,6 +151,10 @@ pub type UuidBytes = [u8; 16];/// The version of the UUID, denoting the generating algorithm.@KodrAus fixed.. can you approve
bors: r+
Build succeeded