Skip to content

Commit

Permalink
enum iterator (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbetcke authored Oct 28, 2024
1 parent 18fbc93 commit f724e04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ mpi = { version = "0.8.*", optional = true }
num = "0.4"
rlst = { version = "0.2.0", default-features = false }
serde = { version = "1", features = ["derive"], optional = true }
strum = "0.26"
strum_macros = "0.26"

[dev-dependencies]
paste = "1.*"
Expand Down
3 changes: 2 additions & 1 deletion src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#[cfg(feature = "mpi")]
use mpi::traits::Equivalence;
use rlst::{Array, BaseArray, VectorContainer};
use strum_macros::EnumIter;

/// An N-dimensional array
pub type ArrayND<const N: usize, T> = Array<T, BaseArray<T, VectorContainer<T>, N>, N>;
Expand Down Expand Up @@ -44,7 +45,7 @@ pub enum MapType {

/// The type of a reference cell
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
#[derive(EnumIter, Debug, PartialEq, Eq, Clone, Copy, Hash)]
#[repr(u8)]
pub enum ReferenceCellType {
/// A point
Expand Down

0 comments on commit f724e04

Please sign in to comment.