From c0f0a3a01716ec48d91fa3daf035e506f3a36165 Mon Sep 17 00:00:00 2001 From: Pantonshire Date: Wed, 25 May 2022 20:22:04 +0100 Subject: [PATCH] Note to self as a todo comment --- src/uuid.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/uuid.rs b/src/uuid.rs index 5a2bcd9..ab2a1ae 100644 --- a/src/uuid.rs +++ b/src/uuid.rs @@ -2,6 +2,9 @@ use std::{error, fmt, str}; use crate::hex::{self, HexBytes}; +// TODO: make conformity to RFC 4122 an invariant of this type (which means it cannot be created +// safely from an arbitrary [u8; 16]). + #[derive(Clone, Copy, PartialEq, Eq, Debug)] #[repr(transparent)] pub struct Uuid([u8; 16]);