Function gen_slice_and_subview

Source
pub fn gen_slice_and_subview(
    max_dims: usize,
    max_len: usize,
) -> impl Strategy<Value = (Slice, Slice)>
Expand description

Generates a pair (base, subview) where:

  • base is a randomly shaped row-major Slice,
  • subview is a valid rectangular region within base.