nines 0.0.0-9S

9-Slice scaling math
Documentation
  • Coverage
  • 60.71%
    17 out of 28 items documented1 out of 2 items with examples
  • Size
  • Source code size: 45.98 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 5.22 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • MaulingMonkey/nines
    4 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • MaulingMonkey

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.