Files
brk/_src/structs/block_path.rs
2025-02-23 01:25:15 +01:00

18 lines
386 B
Rust

use allocative::Allocative;
use bincode::{Decode, Encode};
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Copy, Encode, Decode, Allocative)]
pub struct BlockPath {
pub date_index: u16,
pub block_index: u16,
}
impl BlockPath {
pub fn new(date_index: u16, block_index: u16) -> Self {
Self {
date_index,
block_index,
}
}
}