Lines Matching full:uuid

4 impl Uuid {  implementation
5 /// Creates a UUID using a name from a namespace, based on the SHA-1 hash.
17 /// [`NAMESPACE_DNS`]: struct.Uuid.html#associatedconst.NAMESPACE_DNS
18 /// [`NAMESPACE_OID`]: struct.Uuid.html#associatedconst.NAMESPACE_OID
19 /// [`NAMESPACE_URL`]: struct.Uuid.html#associatedconst.NAMESPACE_URL
20 /// [`NAMESPACE_X500`]: struct.Uuid.html#associatedconst.NAMESPACE_X500
21 pub fn new_v5(namespace: &Uuid, name: &[u8]) -> Uuid { in new_v5() 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,
132 let uuid = in test_get_version() localVariable
133 Uuid::new_v5(&Uuid::NAMESPACE_DNS, "rust-lang.org".as_bytes()); in test_get_version()
135 assert_eq!(uuid.get_version(), Some(Version::Sha1)); in test_get_version()
136 assert_eq!(uuid.get_version_num(), 5); in test_get_version()
142 let uuid = Uuid::new_v5(*ns, name.as_bytes()); in test_hyphenated() localVariable
144 assert_eq!(uuid.to_hyphenated().to_string(), *expected) in test_hyphenated()
151 let uuid = Uuid::new_v5(*ns, name.as_bytes()); in test_new() localVariable
153 assert_eq!(uuid.get_variant(), Some(Variant::RFC4122)); in test_new()
154 assert_eq!(uuid.get_version(), Some(Version::Sha1)); in test_new()
155 assert_eq!(Ok(uuid), u.parse()); in test_new()