nines 0.0.0-9S

9-Slice scaling math
Documentation

9-Slice scaling math.

left             right   ┌──→ +x
┊←──── outer ────→┊     │
┊                 ┊     ↓
┊  ┊←─ inner ─→┊  ┊    + y
┊  ┊           ┊  ┊
┌──┬───────────┬──┐┈┈┈┈┈┈┈┈ top
│  │           │  │          ↑
├──┼───────────┼──┤┈┈┈┈      │
│  │           │  │   ↑      │
│  │           │  │ inner  outer
│  │           │  │   ↓      │
├──┼───────────┼──┤┈┈┈┈      │
│  │           │  │          ↓
└──┴───────────┴──┘┈┈┈┈┈┈ bottom

References

Crate Features

feature Overview
debug Enable extra asserts for debugging nines itself.
unsigned-scalar Allow Scalar to use underflow-prone uNN types.