Skip to main content

is_graded

Function is_graded 

Source
pub fn is_graded<C: Chunk>(chunks: &[C]) -> bool
Expand description

Whether chunks satisfy the Chunk::TARGET grading invariant: every chunk at most TARGET, and every adjacent pair summing to more than TARGET (so no two neighbours could be combined into one legal chunk — a maximal packing).

This is the post-settle shape; useful as a test/debug check.