memesearch
C String Types to Rust Equivalents

C String Types to Rust Equivalents

Download Find similar pictures
Text on the meme
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
What it means

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.

Objects
Tags
Sources
Type
image
Size
594×721 · 54.4 KiB
Mood
саркастичный
Language
en
Added

Similar memes