20 lines
483 B
Rust
20 lines
483 B
Rust
use tree_hash::TreeHashType;
|
|
|
|
#[derive(Debug, PartialEq, Clone)]
|
|
pub enum Error {
|
|
ShouldNotProduceBTreeOverlay,
|
|
NoFirstNode,
|
|
NoBytesForRoot,
|
|
UnableToObtainSlices,
|
|
UnableToGrowMerkleTree,
|
|
UnableToShrinkMerkleTree,
|
|
TreeCannotHaveZeroNodes,
|
|
CacheNotInitialized,
|
|
ShouldNeverBePacked(TreeHashType),
|
|
BytesAreNotEvenChunks(usize),
|
|
NoModifiedFieldForChunk(usize),
|
|
NoBytesForChunk(usize),
|
|
NoSchemaForIndex(usize),
|
|
NotLeafNode(usize),
|
|
}
|