jubako 0.3.0

The reference implementation of the Jubako container format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::bases::*;
use std::fmt::Debug;

#[derive(Debug, PartialEq, Eq, Clone, Copy, Default)]
pub struct ContentAddress {
    pub pack_id: PackId,
    pub content_id: ContentIdx,
}

impl ContentAddress {
    pub fn new(pack_id: PackId, content_id: ContentIdx) -> Self {
        Self {
            pack_id,
            content_id,
        }
    }
}