Expand description
A Rust implementation of The Library of Babel
Structs§
- Address
- Struct containing
Address
to a page in a book on a shelf in the wall in the hex room - PAGE_
MULT - Page multiplier
- TITLE_
MULT - Title multiplier
Enums§
- LibError
- Enum of errors that this crate can return
Constants§
- BABEL_
SET - BABEL set of chars
- BASE64_
SET - BASE64 set of chars
- COLUMNS
- Number of columns in a page
- PAGE_
LENGTH - Total length of a page
- ROWS
- Number of rows in a page
- TITLE_
LENGTH - Max length of a book title
Functions§
- check_
address - Check if all values in the
Address
are within allowed constraints - get_
page - Get a page at an
Address
in the library - get_
title_ of_ page - Get a title of the page at an
Address
in the library - search_
page_ by_ title - Search page by a title in the library and return a
Address
to the book pointing to first page - search_
text_ in_ library - Search specific text in the library and return a page