blockset-lib 0.7.0

BLOCKSET internal library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::io;

use crate::uint::{u224::U224, u256::U256};

pub trait TreeAdd {
    fn push(&mut self, node_id: &U256, main_height: usize) -> io::Result<u64>;
    fn end(&mut self, node_id: &U224, main_height: usize) -> io::Result<u64>;
}

impl TreeAdd for () {
    fn push(&mut self, _: &U256, _: usize) -> io::Result<u64> {
        Ok(0)
    }
    fn end(&mut self, _: &U224, _: usize) -> io::Result<u64> {
        Ok(0)
    }
}