openpql-runner 0.1.4

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
1
2
3
4
5
6
7
8
9
use super::*;

#[pqlfn]
pub const fn max_rank(ranks: PQLRankSet) -> Result<PQLRank, RuntimeError> {
    match ranks.max_rank() {
        Some(r) => Ok(r),
        None => Err(RuntimeError::ValueRetrievalFailed(PQLType::RANK)),
    }
}