原书出处
Rust编程之道
07 结构化编程 7.1 面向对象风格编程
ng和&'a str实现Colorize
如果只需要为字符串设置前景色或背景色中的某一种颜色,那么只需要为&'a str 实现Colorize,就可以满足像"Hello".red()这样的调用。
但是如果希望像"Hello".red()
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Rust编程之道/_epub-src/text/part0013_split_001.html
EPUB SHA-256:585074c6844ba06a529a7623f659130564e9907ec38a9d661f661974f9787ac8