Lines Matching full:uuid
4 impl Uuid { implementation
5 /// Creates a UUID using a name from a namespace, based on the MD5
22 pub fn new_v3(namespace: &Uuid, name: &[u8]) -> Uuid { in new_v3() argument
47 static FIXTURE: &'static [(&'static Uuid, &'static str, &'static str)] = &[ variable
49 &Uuid::NAMESPACE_DNS,
54 &Uuid::NAMESPACE_DNS,
59 &Uuid::NAMESPACE_DNS,
64 &Uuid::NAMESPACE_DNS,
69 &Uuid::NAMESPACE_URL,
74 &Uuid::NAMESPACE_URL,
79 &Uuid::NAMESPACE_URL,
84 &Uuid::NAMESPACE_URL,
89 &Uuid::NAMESPACE_OID,
94 &Uuid::NAMESPACE_OID,
99 &Uuid::NAMESPACE_OID,
104 &Uuid::NAMESPACE_OID,
109 &Uuid::NAMESPACE_X500,
114 &Uuid::NAMESPACE_X500,
119 &Uuid::NAMESPACE_X500,
124 &Uuid::NAMESPACE_X500,
133 let uuid = Uuid::new_v3(*ns, name.as_bytes()); in test_new() localVariable
134 assert_eq!(uuid.get_version().unwrap(), Version::Md5); in test_new()
135 assert_eq!(uuid.get_variant().unwrap(), Variant::RFC4122); in test_new()
142 let uuid = Uuid::new_v3(*ns, name.as_bytes()); in test_to_hyphenated_string() localVariable
143 assert_eq!(uuid.to_hyphenated().to_string(), *expected); in test_to_hyphenated_string()