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) {
23 let _ = ["invalid uuid representation"][1];
35 /// Parse [`Uuid`][uuid::Uuid]s from string literals at compile time.
40 /// [`Uuid`][uuid::Uuid] into the bytes representation, raising a compilation
48 /// # use uuid::{uuid, Uuid};
49 /// pub const SCHEMA_ATTR_CLASS: Uuid = uuid!("00000000-0000-0000-0000-ffff00000000");
50 /// pub const SCHEMA_ATTR_UUID: Uuid = uuid!("00000000-0000-0000-0000-ffff00000001");
51 /// pub const SCHEMA_ATTR_NAME: Uuid = uuid!("00000000-0000-0000-0000-ffff00000002");
57 /// # use uuid::uuid;
58 /// let uuid = uuid!("urn:uuid:F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4");
66 /// # use uuid::uuid;
67 /// let uuid = uuid!("F9168C5E-ZEB2-4FAA-B6BF-329BF39FA1E4");
75 /// error: invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-fA-F-], …
77 /// | let id = uuid!("F9168C5E-ZEB2-4FAA-B6BF-329BF39FA1E4");
84 /// # use uuid::uuid;
86 /// let uuid = uuid!(uuid_str);
94 /// | let uuid = uuid!(uuid_str);
98 /// [uuid::Uuid]: https://docs.rs/uuid/*/uuid/struct.Uuid.html