openpql-runner 0.1.3

A high-performance Rust implementation of Poker Query Language (PQL), enabling SQL-like queries for poker analysis and calculations. This project is a spiritual successor to the original Java implementation developed by Odds Oracle.
Documentation
use super::*;

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct PQLError {
    pub loc: LocInfo,
    pub kind: PQLErrorKind,
}

impl<E> From<(LocInfo, E)> for PQLError
where
    PQLErrorKind: From<E>,
{
    fn from((loc, kind): (LocInfo, E)) -> Self {
        Self {
            loc,
            kind: PQLErrorKind::from(kind),
        }
    }
}