# learn_rust **Repository Path**: roiwk/learn_rust ## Basic Information - **Project Name**: learn_rust - **Description**: 自学rust - **Primary Language**: Rust - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-03 - **Last Updated**: 2022-06-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Learn Rust lang ## 环境安装 略 略 略 ## 运行示例 例: 运行hello_world目录的例子 ```shell cargo run -p hello_world ``` ## 目录 - [x] **Hello Rust**: 注释+格式化打印输出 - [x] **基础**: 数据类型,元组,数组,切片 - [x] **自定义类型**: 结构体,枚举, 常量 - [x] **变量**: 变量(定义,可变性,变量作用域), 类型(原始类型转换), 复合类型转换(结构体转换-trait), 字符串转换 - [x] **控制语句**: 表达式, 控制流程(条件,循环,match,match解构, if let, while let) - [x] **方法/函数**: 方法,闭包,高阶函数(函数式) - [x] **模块**: 访问修饰符(可见性),声明(use), super|self, 文件结构,crates - [x] **属性**: 属性功能,自定义属性 - [x]**泛型**: 泛型结构体,泛型函数/方法,泛型trait, 泛型限定参数范围,幻影类型参数 - [x]**生命周期**: RAII ,所有权, 借用/移动, 生命周期 - []**Trait**: - []**宏**: - []**错误处理**: > 源学习地址[rust-by-example](https://doc.rust-lang.org/stable/rust-by-example) [MIT LICENSE](./LICENSE)