[−][src]Crate cargo_zzq
crate
my_crate
is a collection of utilities to make performing certain
calculations more convenient.
Re-exports
pub use self::kinds::PrimaryColor; |
pub use self::kinds::SecondaryColor; |
pub use self::utils::mix; |
Modules
kinds | |
utils |
Functions
add_one | 三个斜杠的注释可以生成html,可以用md语法。用cargo doc --open命令在target目录生成文档 这里使用了Examples标题,另外常用的标题还有Panics,Errors和Safety Panics把可能导致panic的用法列出 Errors把返回Result中可能出错的情况列出 Safety把unsafe的情况列出 执行cargo test时,会执行文档注释中的代码 //!表示对整个文件的文档注释,他们必须出现在最前面,不然会报错 发布crate时先登录cargo login LizXTHqWzoPeayGSu9kVVSGx8qQOW3Ny,输入命令后会存在~/.cargo/credentials中 Adds one to the number given. |