Method in arbitrary · Gen compiler

Gen::enter

pub fn enter()
Import
use arbitrary::{Gen};
Source: compiler/src/prelude/arbitrary.hy

Around the parts of a value. Once deep(), collections are empty and derived enums take a variant without payloads, so recursive types end.

Called on a Gen value as value.enter(…).

See also#

  • Gen::deep
  • Gen: A seeded source of random values.
  • Gen::new: A generator seeded with seed (0 is replaced by a fixed non-zero seed), starting at size 10.
  • Gen::size: The current size bound.
  • Gen::resize: Sets the size bound; negative sizes become 0.
  • Gen::bits: 32 random bits.
  • Gen::below: Uniform in [0, n); 0 when n <= 0.
  • Gen::int_in: Uniform in [lo, hi].
↑ ↓ navigate ↵ open