ring-db 0.2.0

A Rust library for ring queries in high-dimensional vector spaces.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// All errors that ringdb can produce.
#[derive(Debug, thiserror::Error)]
pub enum RingDbError {
    #[error("dimension mismatch: expected {expected}, got {got}")]
    DimensionMismatch { expected: usize, got: usize },

    #[error("payload serialization error: {0}")]
    Payload(String),

    #[error("io error: {0}")]
    Io(#[from] std::io::Error),
}

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