Skip to content
Snippets Groups Projects

Draft: fix(kv_typed): BTreeSet<T: zerocopy::Unaligned>

Open Pascal Engélibert requested to merge tuxmain/duniter-core:btreeset_unaligned into master
1 unresolved thread
8 files
+ 142
34
Compare changes
  • Side-by-side
  • Inline
Files
8
+ 10
1
@@ -17,7 +17,16 @@ use crate::*;
use std::{collections::HashMap, ops::Deref};
#[derive(
Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd, zerocopy::AsBytes, zerocopy::FromBytes,
Clone,
Copy,
Debug,
Eq,
Ord,
PartialEq,
PartialOrd,
zerocopy::AsBytes,
zerocopy::FromBytes,
zerocopy::Unaligned,
)]
#[repr(transparent)]
pub struct UtxoValV2([u8; 52]); // 16(SourceAmount) + 32(Hash) + 4(u32)
Loading