# dshikiy/nnnn architecture

> Architecture diagram of the GitHub repository dshikiy/nnnn, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dshikiy/nnnn
- Repository: https://github.com/dshikiy/nnnn

## Overview

This repository is a collection of independent Rust learning exercises, not a single application. The visible workflow is typically a caller supplying values to a crate’s function or type and receiving a computed result; the examples cover algorithms, text transformations, domain rules, and Rust programming concepts. The tree and excerpts support a few internal module relationships, but no README describes a unified workflow, and most crates are independent. The graph focuses on the sampled exercises and indexed core modules; other small crates follow the same standalone pattern.

Main entry points: [`does_it_fit/src/lib.rs`](https://github.com/dshikiy/nnnn/blob/master/does_it_fit/src/lib.rs) (Area and volume fit), [`boxing_todo/src/lib.rs`](https://github.com/dshikiy/nnnn/blob/master/boxing_todo/src/lib.rs) (Todo file parsing), [`does_it_fit/src/areas_volumes.rs`](https://github.com/dshikiy/nnnn/blob/master/does_it_fit/src/areas_volumes.rs) (Shape calculations), [`boxing_todo/src/err.rs`](https://github.com/dshikiy/nnnn/blob/master/boxing_todo/src/err.rs) (Todo errors)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_geometry["Geometry exercises"]
  node_area_fit["Area and volume fit<br/>[lib.rs]"]
  node_shape_math["Shape calculations<br/>[areas_volumes.rs]"]
  node_circle["Circle calculations<br/>[lib.rs]"]
end

subgraph group_domain["Domain exercises"]
  node_bowling["Bowling scoring<br/>[lib.rs]"]
  node_blood["Blood compatibility<br/>[lib.rs]"]
  node_form["Form validation<br/>[lib.rs]"]
  node_todo["Todo file parsing<br/>[lib.rs]"]
  node_todo_errors["Todo errors<br/>[err.rs]"]
  node_mall_example["Mall example<br/>[main.rs]"]
  node_mob_example["Mob example<br/>[main.rs]"]
  node_card_deck["Card deck<br/>[lib.rs]"]
  node_minesweeper["Minesweeper logic<br/>[lib.rs]"]
  node_tic_tac_toe["Tic-tac-toe logic<br/>[lib.rs]"]
end

subgraph group_text["Text and algorithms"]
  node_invert["Word-order inversion<br/>[lib.rs]"]
  node_spelling["Spelling exercise<br/>[lib.rs]"]
  node_roman["Roman numerals<br/>[lib.rs]"]
  node_pig_latin["Pig Latin<br/>[lib.rs]"]
  node_rot["ROT cipher<br/>[lib.rs]"]
  node_scytale["Scytale cipher<br/>[lib.rs]"]
  node_distance["Edit distance<br/>[lib.rs]"]
  node_capitalizing["Capitalization<br/>[lib.rs]"]
  node_banner["Banner formatting<br/>[lib.rs]"]
  node_expected_variable["Variable-name matching<br/>[main.rs]"]
end

subgraph group_rust["Rust concepts"]
  node_generics["Generic collections<br/>[lib.rs]"]
  node_traits["Trait examples<br/>[lib.rs]"]
  node_box_recursion["Recursive boxing<br/>[lib.rs]"]
  node_borrow_box["Borrowed boxes<br/>[lib.rs]"]
  node_drop_thread["Thread lifecycle<br/>[lib.rs]"]
  node_looping["Input loop example<br/>[main.rs]"]
end

node_area_fit -->|"calculates shapes"| node_shape_math
node_todo -->|"builds errors"| node_todo_errors

click node_area_fit "https://github.com/dshikiy/nnnn/blob/master/does_it_fit/src/lib.rs"
click node_shape_math "https://github.com/dshikiy/nnnn/blob/master/does_it_fit/src/areas_volumes.rs"
click node_bowling "https://github.com/dshikiy/nnnn/blob/master/bowling_score/src/lib.rs"
click node_blood "https://github.com/dshikiy/nnnn/blob/master/blood_types/src/lib.rs"
click node_form "https://github.com/dshikiy/nnnn/blob/master/error_types/src/lib.rs"
click node_todo "https://github.com/dshikiy/nnnn/blob/master/boxing_todo/src/lib.rs"
click node_todo_errors "https://github.com/dshikiy/nnnn/blob/master/boxing_todo/src/err.rs"
click node_mall_example "https://github.com/dshikiy/nnnn/blob/master/shopping_mall/src/main.rs"
click node_mob_example "https://github.com/dshikiy/nnnn/blob/master/mobs/src/main.rs"
click node_invert "https://github.com/dshikiy/nnnn/blob/master/invert_sentence/src/lib.rs"
click node_spelling "https://github.com/dshikiy/nnnn/blob/master/spelling/src/lib.rs"
click node_roman "https://github.com/dshikiy/nnnn/blob/master/roman_numbers/src/lib.rs"
click node_pig_latin "https://github.com/dshikiy/nnnn/blob/master/pig_latin/src/lib.rs"
click node_rot "https://github.com/dshikiy/nnnn/blob/master/rot/src/lib.rs"
click node_scytale "https://github.com/dshikiy/nnnn/blob/master/scytale_cipher/src/lib.rs"
click node_distance "https://github.com/dshikiy/nnnn/blob/master/edit_distance/src/lib.rs"
click node_capitalizing "https://github.com/dshikiy/nnnn/blob/master/capitalizing/src/lib.rs"
click node_banner "https://github.com/dshikiy/nnnn/blob/master/banner/src/lib.rs"
click node_card_deck "https://github.com/dshikiy/nnnn/blob/master/card_deck/src/lib.rs"
click node_circle "https://github.com/dshikiy/nnnn/blob/master/circle/src/lib.rs"
click node_minesweeper "https://github.com/dshikiy/nnnn/blob/master/minesweeper/src/lib.rs"
click node_tic_tac_toe "https://github.com/dshikiy/nnnn/blob/master/tic_tac_toe/src/lib.rs"
click node_generics "https://github.com/dshikiy/nnnn/blob/master/generics_list/src/lib.rs"
click node_traits "https://github.com/dshikiy/nnnn/blob/master/traits/src/lib.rs"
click node_box_recursion "https://github.com/dshikiy/nnnn/blob/master/box_recursion/src/lib.rs"
click node_borrow_box "https://github.com/dshikiy/nnnn/blob/master/borrow_box/src/lib.rs"
click node_drop_thread "https://github.com/dshikiy/nnnn/blob/master/drop_the_thread/src/lib.rs"
click node_expected_variable "https://github.com/dshikiy/nnnn/blob/master/expected_variable/src/main.rs"
click node_looping "https://github.com/dshikiy/nnnn/blob/master/looping/src/main.rs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_area_fit,node_shape_math,node_circle toneBlue
class node_bowling,node_blood,node_form,node_todo,node_todo_errors,node_mall_example,node_mob_example,node_card_deck,node_minesweeper,node_tic_tac_toe toneAmber
class node_invert,node_spelling,node_roman,node_pig_latin,node_rot,node_scytale,node_distance,node_capitalizing,node_banner,node_expected_variable toneMint
class node_generics,node_traits,node_box_recursion,node_borrow_box,node_drop_thread,node_looping toneRose
```

## Components

### Geometry exercises

- [Area and volume fit](https://github.com/dshikiy/nnnn/blob/master/does_it_fit/src/lib.rs): `does_it_fit/src/lib.rs`
- [Shape calculations](https://github.com/dshikiy/nnnn/blob/master/does_it_fit/src/areas_volumes.rs): `does_it_fit/src/areas_volumes.rs`
- [Circle calculations](https://github.com/dshikiy/nnnn/blob/master/circle/src/lib.rs): `circle/src/lib.rs`

### Domain exercises

- [Bowling scoring](https://github.com/dshikiy/nnnn/blob/master/bowling_score/src/lib.rs): `bowling_score/src/lib.rs`
- [Blood compatibility](https://github.com/dshikiy/nnnn/blob/master/blood_types/src/lib.rs): `blood_types/src/lib.rs`
- [Form validation](https://github.com/dshikiy/nnnn/blob/master/error_types/src/lib.rs): `error_types/src/lib.rs`
- [Todo file parsing](https://github.com/dshikiy/nnnn/blob/master/boxing_todo/src/lib.rs): `boxing_todo/src/lib.rs`
- [Todo errors](https://github.com/dshikiy/nnnn/blob/master/boxing_todo/src/err.rs): `boxing_todo/src/err.rs`
- [Mall example](https://github.com/dshikiy/nnnn/blob/master/shopping_mall/src/main.rs): `shopping_mall/src/main.rs`
- [Mob example](https://github.com/dshikiy/nnnn/blob/master/mobs/src/main.rs): `mobs/src/main.rs`
- [Card deck](https://github.com/dshikiy/nnnn/blob/master/card_deck/src/lib.rs): `card_deck/src/lib.rs`
- [Minesweeper logic](https://github.com/dshikiy/nnnn/blob/master/minesweeper/src/lib.rs): `minesweeper/src/lib.rs`
- [Tic-tac-toe logic](https://github.com/dshikiy/nnnn/blob/master/tic_tac_toe/src/lib.rs): `tic_tac_toe/src/lib.rs`

### Text and algorithms

- [Word-order inversion](https://github.com/dshikiy/nnnn/blob/master/invert_sentence/src/lib.rs): `invert_sentence/src/lib.rs`
- [Spelling exercise](https://github.com/dshikiy/nnnn/blob/master/spelling/src/lib.rs): `spelling/src/lib.rs`
- [Roman numerals](https://github.com/dshikiy/nnnn/blob/master/roman_numbers/src/lib.rs): `roman_numbers/src/lib.rs`
- [Pig Latin](https://github.com/dshikiy/nnnn/blob/master/pig_latin/src/lib.rs): `pig_latin/src/lib.rs`
- [ROT cipher](https://github.com/dshikiy/nnnn/blob/master/rot/src/lib.rs): `rot/src/lib.rs`
- [Scytale cipher](https://github.com/dshikiy/nnnn/blob/master/scytale_cipher/src/lib.rs): `scytale_cipher/src/lib.rs`
- [Edit distance](https://github.com/dshikiy/nnnn/blob/master/edit_distance/src/lib.rs): `edit_distance/src/lib.rs`
- [Capitalization](https://github.com/dshikiy/nnnn/blob/master/capitalizing/src/lib.rs): `capitalizing/src/lib.rs`
- [Banner formatting](https://github.com/dshikiy/nnnn/blob/master/banner/src/lib.rs): `banner/src/lib.rs`
- [Variable-name matching](https://github.com/dshikiy/nnnn/blob/master/expected_variable/src/main.rs): `expected_variable/src/main.rs`

### Rust concepts

- [Generic collections](https://github.com/dshikiy/nnnn/blob/master/generics_list/src/lib.rs): `generics_list/src/lib.rs`
- [Trait examples](https://github.com/dshikiy/nnnn/blob/master/traits/src/lib.rs): `traits/src/lib.rs`
- [Recursive boxing](https://github.com/dshikiy/nnnn/blob/master/box_recursion/src/lib.rs): `box_recursion/src/lib.rs`
- [Borrowed boxes](https://github.com/dshikiy/nnnn/blob/master/borrow_box/src/lib.rs): `borrow_box/src/lib.rs`
- [Thread lifecycle](https://github.com/dshikiy/nnnn/blob/master/drop_the_thread/src/lib.rs): `drop_the_thread/src/lib.rs`
- [Input loop example](https://github.com/dshikiy/nnnn/blob/master/looping/src/main.rs): `looping/src/main.rs`

## Connections

- Area and volume fit → Shape calculations: calculates shapes (evidence: `does_it_fit/src/lib.rs`)
- Todo file parsing → Todo errors: builds errors (evidence: `boxing_todo/src/lib.rs`)
