Back to Developer Roadmap

Character

src/data/roadmaps/rust/content/[email protected]

4.0765 B
Original Source

Character

Rust's char type represents a Unicode Scalar Value, supporting far more than ASCII including emojis, accented letters, and various scripts. Each char occupies 4 bytes (32 bits) in memory and is defined using single quotes. Example: let letter: char = 'z'; or let emoji: char = '🦀';

Visit the following resources to learn more: