1分钟内可阅读完
内容来源 · Tour of Rust / Rust 语言之旅
原文链接: https://tourofrust.com/64_zh-cn.html
如果你需要使用大量文本,可以尝试用宏 include_str! 来从本地文件中导入文本到程序中:
include_str!
1
let hello_html = include_str!("hello.html");