Last active
May 2, 2020 08:48
-
-
Save asnimansari/08ab25715264aef40e7f7567076e815e to your computer and use it in GitHub Desktop.
Rust String & Charecter types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| | Example | # sets | Characters | Escapes | | |
|-----------------|-------------|------------|-------------|-------------------------| | |
| Character | 'H' | 0 | All Unicode | Quote & ASCII & Unicode | | |
| String | "hello" | 0 | All Unicode | Quote & ASCII & Unicode | | |
| Raw string | r#"hello"# | 0 or more* | All Unicode | N/A | | |
| Byte | b'H' | 0 | All ASCII | Quote & Byte | | |
| Byte string | b"hello" | 0 | All ASCII | Quote & Byte | | |
| Raw byte string | br#"hello"# | 0 or more* | All ASCII | N/A | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment