use num_bigint::BigUint;
use sim_lib_rank::Nat;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct SpaceDescriptor {
pub id: &'static str,
pub version: u32,
pub params: Vec<(&'static str, String)>,
pub order: &'static str,
pub metric: &'static str,
}
pub fn to_nat(value: BigUint) -> Nat {
Nat::from_biguint(value)
}
pub fn from_nat(value: &Nat) -> BigUint {
value.as_biguint().clone()
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct CardSpec {
pub key: &'static str,
pub summary: &'static str,
pub order: &'static str,
pub metric: &'static str,
}