ascii art uwu

This commit is contained in:
nora 2021-12-20 22:03:37 +01:00
parent ef6c357b27
commit a7fbd67746
2 changed files with 34 additions and 34 deletions

View file

@ -16,22 +16,22 @@
//! ```txt
//!
//! Vechonk<str>
//! ------------------------------------
//! | ptr | len | cap | elem_size |
//! ---|---------------|--------|-------
//! | | |
//! | |_______ | ______________________________________
//! | | |
//! | _________| |
//! Heap v v v
//! -----------------------|-----------------------------------------------
//! value | "hello" | "uwu" | <uninit> | 0 - 5 | 5 - 3 |
//! |------------|---------|-----------------|--------------|--------------|
//! size | dynamic | dynamic | rest of alloc | usize + meta | usize + meta |
//! --------------------------------------------|--------------|------------
//! ^ ^ | |
//! |___________ | _________________________| |
//! |_________________________________________|
//! ╭──────────────────────────────────╮
//! │ ptr | len | cap | elem_size │
//! ╰──────────────────────────────────╯
//! │ │ │
//! │ ╰────────│──────────────────────────────────────╮
//! │ │ │
//! │ ╭────────╯ │
//! Heap ▼ ▼ ▼
//! ╭────────────┬─────────┬─────────────────┬──────────────┬──────────────╮
//! value │ "hello" │ "uwu" │ <uninit> │ 0 - 5 │ 5 - 3 │
//! ├────────────┼─────────┼─────────────────┼──────────────┼──────────────┤
//! size │ dynamic │ dynamic │ rest of alloc │ usize + meta │ usize + meta │
//! ╰────────────┴─────────┴─────────────────┴──────────────┴──────────────╯
//! ▲ ▲ │ │
//! ╰────────────│──────────────────────────╯ │
//! ╰─────────────────────────────────────────╯
//! ```
mod test;