griffin-core 0.3.0

UTXO framework for Substrate and Polkadot.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use alloc::boxed::Box;

pub enum Filler {
    FillerStart(Box<Filler>),
    FillerEnd,
}

impl Filler {
    pub fn length(&self) -> usize {
        match self {
            Filler::FillerStart(f) => f.length() + 1,
            Filler::FillerEnd => 1,
        }
    }
}