Lines Matching full:uuid
6 macro_rules! uuid {
7 ($uuid:literal) => {{
8 $crate::Uuid::from_bytes($crate::uuid_macro_internal::parse_lit!($uuid))
15 macro_rules! uuid {
16 ($uuid:literal) => {{
17 const OUTPUT: $crate::Uuid = match $crate::Uuid::try_parse($uuid) {
19 $crate::__macro_support::Err(_) => panic!("invalid UUID"),
28 /// Parse [`Uuid`][uuid::Uuid]s from string literals at compile time.
33 /// [`Uuid`][uuid::Uuid] into the bytes representation, raising a compilation
41 /// # use uuid::{uuid, Uuid};
42 /// pub const SCHEMA_ATTR_CLASS: Uuid = uuid!("00000000-0000-0000-0000-ffff00000000");
43 /// pub const SCHEMA_ATTR_UUID: Uuid = uuid!("00000000-0000-0000-0000-ffff00000001");
44 /// pub const SCHEMA_ATTR_NAME: Uuid = uuid!("00000000-0000-0000-0000-ffff00000002");
50 /// # use uuid::uuid;
51 /// let uuid = uuid!("urn:uuid:F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4");
59 /// # use uuid::uuid;
60 /// let uuid = uuid!("F9168C5E-ZEB2-4FAA-B6BF-329BF39FA1E4");
68 /// error: invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], …
70 /// | let id = uuid!("F9168C5E-ZEB2-4FAA-B6BF-329BF39FA1E4");
77 /// # use uuid::uuid;
79 /// let uuid = uuid!(uuid_str);
87 /// | let uuid = uuid!(uuid_str);
91 /// [uuid::Uuid]: https://docs.rs/uuid/*/uuid/struct.Uuid.html