Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-q committed May 14, 2024
1 parent 5305fd2 commit 99c3fd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hugr/src/proptest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ use crate::Hugr;
///
/// With this invariant in place we are guaranteed to generate a finite tree
/// because there are only finitely many different types a node can take.
///
/// We could instead use the `proptest-recurse` crate to implement [Arbitrary]
/// impls for these mutually recursive types. We did try, but it wasn't simple
/// enough to be obviously better, so this will do for now.
pub struct RecursionDepth(usize);

impl RecursionDepth {
Expand Down

0 comments on commit 99c3fd2

Please sign in to comment.