Note to self as a todo comment

main
Pantonshire 4 years ago
parent bd2b3a8a29
commit c0f0a3a017

@ -2,6 +2,9 @@ use std::{error, fmt, str};
use crate::hex::{self, HexBytes}; 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)] #[derive(Clone, Copy, PartialEq, Eq, Debug)]
#[repr(transparent)] #[repr(transparent)]
pub struct Uuid([u8; 16]); pub struct Uuid([u8; 16]);

Loading…
Cancel
Save