global: init readmes

This commit is contained in:
nym21
2025-02-26 10:07:05 +01:00
parent 01ecae8979
commit bb61b3dc22
19 changed files with 75 additions and 44 deletions

View File

@@ -88,6 +88,11 @@ impl From<TxidPrefix> for ByteView {
Self::from(&value)
}
}
impl From<[u8; 8]> for TxidPrefix {
fn from(value: [u8; 8]) -> Self {
Self(value)
}
}
fn copy_first_8bytes(slice: &[u8]) -> Result<[u8; 8], ()> {
let mut buf: [u8; 8] = [0; 8];

View File

@@ -1,6 +1,8 @@
use byteview::ByteView;
#[derive(Debug)]
pub struct Unit();
impl From<ByteView> for Unit {
fn from(_: ByteView) -> Self {
Self()