C String Types to Rust Equivalents
For this type in C... | ...use this type in Rust char * | &str char * | String char * | &[u8] char * | &[u8; N] char * | Vec<u8> char * | &u8 char * | OsStr char * | OsString char * | Path char * | PathBuf char * | CStr char * | CString char * | &'static str
A comparison table maps the C type `char *` to various Rust string, byte-slice, operating-system, path, and C-compatible string types. The joke is the overwhelming number of possible Rust equivalents, poking fun at how choosing the correct string type in Rust depends on context.
comparison table / сравнительная таблицаprogramming code / программный кодC language reference / ссылка на язык CRust language reference / ссылка на язык Rusttext rows / строки текстаvertical divider / вертикальный разделительhorizontal lines / горизонтальные линииmonospaced font / моноширинный шрифт
- @profunctor_io / 4656 2020-05-25
- @profunctor_io / 9268 2023-09-21
- @dev_meme / 5520 2023-09-27
- Type
- image
- Size
- 594×721 · 54.4 KiB
- Mood
- саркастичный
- Language
- en
- Added