miden_gpu/
lib.rs

1#[cfg(all(target_arch = "aarch64", target_os = "macos"))]
2pub mod metal;
3
4/// Supported Hash functions
5#[derive(Copy, Clone, PartialEq)]
6pub enum HashFn {
7    Rpo256,
8    Rpx256,
9}
10
11impl std::fmt::Display for HashFn {
12    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
13        match self {
14            HashFn::Rpo256 => write!(f, "rpo_256"),
15            HashFn::Rpx256 => write!(f, "rpx_256"),
16        }
17    }
18}