原书出处
Rust编程之道
07 结构化编程 7.1 面向对象风格编程
rs 中增加Colorize trait
代码清单7-5定义了这个Colorize trait,该trait包含了FG_RED和BG_YELLOW两个常量,这两个常量叫关联常量。
关联常量是Rust 2018 版本中加入
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Rust编程之道/_epub-src/text/part0013_split_001.html
EPUB SHA-256:585074c6844ba06a529a7623f659130564e9907ec38a9d661f661974f9787ac8