vsdb 13.4.5

A std-collection-like database
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::common::error::VsdbError;
use thiserror::Error;

#[derive(Error, Debug)]
pub enum TrieError {
    #[error("Invalid state: {0}")]
    InvalidState(String),
}

pub type Result<T> = std::result::Result<T, TrieError>;

impl From<TrieError> for VsdbError {
    fn from(e: TrieError) -> Self {
        Self::Trie {
            detail: e.to_string(),
        }
    }
}