Mercurial > crates > nonstick
comparison src/logging.rs @ 186:5e4ea9650f87
Derive `hash` where it makes sense.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Thu, 31 Jul 2025 14:48:32 -0400 |
| parents | 9e4ce1631bd3 |
| children |
comparison
equal
deleted
inserted
replaced
| 185:fb8b547b36b7 | 186:5e4ea9650f87 |
|---|---|
| 62 /// The levels are in descending order of importance and correspond roughly | 62 /// The levels are in descending order of importance and correspond roughly |
| 63 /// to the similarly-named levels in the `log` crate. | 63 /// to the similarly-named levels in the `log` crate. |
| 64 /// | 64 /// |
| 65 /// Their values are ordered monotonically, either increasing or decreasing, | 65 /// Their values are ordered monotonically, either increasing or decreasing, |
| 66 /// depending upon the implementation. | 66 /// depending upon the implementation. |
| 67 #[derive(Clone, Copy, Debug, PartialEq, Eq)] | 67 #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] |
| 68 pub enum Level { | 68 pub enum Level { |
| 69 Error, | 69 Error, |
| 70 Warn, | 70 Warn, |
| 71 Info, | 71 Info, |
| 72 Debug, | 72 Debug, |
