2025-03-242025年3月24日 · 阅读需 7 分钟语言更新 Bytes 现在可以使用 array pattern 进行模式匹配 fn main { let bytes : Bytes = "Hello, world!"; match bytes { [..b"Hello", ..] => { println("Starts with \"Hello\""); } _ => { println("Doesn't start with \"Hello\""); } } } 字符字面量使用为 Int 和 Byte 值