Booleans (bool
)
let is_morning = true;
if is_morning {
println!("Good morning!");
}
Characters (char
)
fn main() {
let c1 = 'a'; // 字母
let c2 = '中'; // 中文
let c3 = '
标签:字符,primitive,uppercase,true,lowercase,ASCII,type,类型,ascii
From: https://www.cnblogs.com/learnForLife/p/18673408