feat: derive ord and partialord for blake3digest
tohrnii 100405913+tohrnii@users.noreply.github.com
Fri, 11 Aug 2023 20:09:34 +0000
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/hash/blake/mod.rs
→
src/hash/blake/mod.rs
@@ -26,7 +26,7 @@ /// N-bytes output of a blake3 function.
/// /// Note: `N` can't be greater than `32` because [`Digest::as_bytes`] currently supports only 32 /// bytes. -#[derive(Debug, Copy, Clone, Eq, PartialEq)] +#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] #[cfg_attr(feature = "serde", serde(into = "String", try_from = "&str"))] pub struct Blake3Digest<const N: usize>([u8; N]);