1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#![cfg_attr(not(any(feature = "std", test)), no_std)]
#![deny(clippy::all, clippy::cargo)]
#![allow(clippy::missing_safety_doc)]
#[allow(unused_macros)]
macro_rules! item_group {
($($item:item)*) => {
$($item)*
}
}
#[cfg(test)]
mod tests;
mod polyfill;
#[macro_use]
mod generic;
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
item_group! {
pub mod avx2;
pub mod sse41;
}
mod auto;
pub mod fallback;
pub use self::auto::*;
use core::fmt;
#[derive(Debug)]
pub struct Error(());
pub(crate) const ERROR: Error = Error(());
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str("UUID Error")
}
}
#[cfg(feature = "std")]
impl std::error::Error for Error {}