INNER CODE UNIT · Rust
to_model_data_type
kaist-ina/BWA-MEME · RMI/rmi_lib/src/models/mod.rs:76
pub fn to_model_data_type(self) -> ModelDataType {
match self {
KeyType::U32 => ModelDataType::Int,
KeyType::U64 => ModelDataType::Int,
KeyType::U128 => ModelDataType::Int128,
KeyType::U512 => ModelDataType::Int512,
KeyType::F64 => ModelDataType::Float,
KeyType::F512 =>ModelDataType::Float512
}
}
}
// struct wrap_inegeter{
// elem: Integer,
// }
// impl wrap_inegeter{
// fn new() -> Self {