demo/doc / (root)

(root)

The fixture package's root module. It depends on shelf and documents one item of its own.

Items

stack_of
total_widthThe whole shelf's width, given a slot count.

stack_offnpub

fn stack_of(n: int) -> int

Undocumented. (This item has no doc comment; the coverage report names it.)

total_widthfnpub

fn total_width(slots: int) -> int

The whole shelf's width, given a slot count. Undocumented items exist in this fixture too — stack_of below is one, deliberately, so the coverage report has something to name.

doctest

use shelf
shelf.slot_of(1) == 2