Skip to content

Close docs gaps from #22: custom-strategy grid access, example naming - #34

Merged
kylecarow merged 1 commit into
mainfrom
docs/custom-strategy-guidance
Aug 7, 2026
Merged

Close docs gaps from #22: custom-strategy grid access, example naming#34
kylecarow merged 1 commit into
mainfrom
docs/custom-strategy-guidance

Conversation

@kylecarow

@kylecarow kylecarow commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Closes #22

  • Warn against .as_slice() on strategy grid data (panics on non-contiguous storage, reachable via Interp*Viewed) and point to strategy::utils::locate_lower_index as the ready-made bracket search, in both the custom_strategy.rs example and the Strategy*D::interpolate trait docs.
  • Rename examples/dynamic_strategy.rs and dynamic_interpolator.rs to swap_strategy.rs / swap_interpolator.rs, since "dynamic" overloads with "dyn" dispatch even though the examples also cover the non-dyn enum swapping approach. Updates all cross-references (README, enum module docs).

- Warn against .as_slice() on strategy grid data (panics on non-contiguous
  storage, reachable via Interp*Viewed) and point to
  strategy::utils::locate_lower_index as the ready-made bracket search, in
  both the custom_strategy.rs example and the Strategy*D::interpolate trait
  docs.
- Rename examples/dynamic_strategy.rs and dynamic_interpolator.rs to
  swap_strategy.rs / swap_interpolator.rs, since "dynamic" overloads with
  "dyn" dispatch even though the examples also cover the non-dyn enum
  swapping approach. Updates all cross-references (README, enum module docs).
@kylecarow
kylecarow merged commit fcd1eb7 into main Aug 7, 2026
1 check passed
@kylecarow
kylecarow deleted the docs/custom-strategy-guidance branch August 7, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improvements to example files

1 participant