会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
谷粒-笔记
无中生有是本质,物极必反是规律
博客园
首页
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
···
37
下一页
2022年2月7日
【Rust】HashMap
摘要: 1. new 2. 所有权 3. get 4. iterator 5. insert 6. or_insert 1. new let mut scores = HashMap::new(); scores.insert(String::from("Blue"), 10); 2. 所有权 let ke
阅读全文
posted @ 2022-02-07 21:09 谷粒-笔记
阅读(376)
评论(0)
推荐(0)
2022年2月5日
【Rust】库 crate
摘要: 音频DSP库:fundsp https://github.com/SamiPerttu/fundsp 命令行工具:uwuifyy https://github.com/sgoudham/uwuifyy 搜索引擎:Meilisearch https://github.com/meilisearch M
阅读全文
posted @ 2022-02-05 21:29 谷粒-笔记
阅读(142)
评论(0)
推荐(0)
2022年2月4日
【Rust】模块
摘要: 包(Packages): Cargo 的一个功能,它允许你构建、测试和分享 crate。Crates :一个模块的树形结构,它形成了库或二进制项目。模块(Modules)和 use: 允许你控制作用域和路径的私有性。路径(path):一个命名例如结构体、函数或模块等项的方式 创建一个库 cargo
阅读全文
posted @ 2022-02-04 18:27 谷粒-笔记
阅读(101)
评论(0)
推荐(0)
2022年1月27日
【IntelliJ Idea】RunDashboard
摘要: 2021.1.1 <component name="RunDashboard"> <option name="configurationTypes"> <set> <option value="SpringBootApplicationConfigurationType" /> </set> </o
阅读全文
posted @ 2022-01-27 20:30 谷粒-笔记
阅读(40)
评论(0)
推荐(0)
2022年1月21日
【Spring Boot】启动时执行:CommandLineRunner、ApplicationRunner 和 ApplicationListener
摘要: 【Spring Boot】启动时执行:CommandLineRunner、ApplicationRunner 和 ApplicationListener
阅读全文
posted @ 2022-01-21 11:27 谷粒-笔记
阅读(214)
评论(0)
推荐(0)
2022年1月17日
URLConnection
摘要: post public static String doPost(String url, String json) { PrintWriter out = null; BufferedReader in = null; String result = ""; try { URL realUrl =
阅读全文
posted @ 2022-01-17 19:54 谷粒-笔记
阅读(84)
评论(0)
推荐(0)
2022年1月13日
【Rust】枚举 enum
摘要: 【Rust】枚举 enum
阅读全文
posted @ 2022-01-13 21:05 谷粒-笔记
阅读(55)
评论(0)
推荐(0)
【Rust】结构体 struct
摘要: 定义结构体 #[derive(Debug)] struct Rectangle { name: String, width: u32, height: u32, } 定义结构体方法 impl Rectangle { // 方法 fn area(&self) -> u32 { self.width *
阅读全文
posted @ 2022-01-13 21:04 谷粒-笔记
阅读(209)
评论(0)
推荐(0)
2022年1月8日
【Rust】所有权、引用、借用
摘要: 所有权 所有权的规则 1. Rust 中的每一个值都有一个被称为其 所有者(owner)的变量。 2. 值在任一时刻有且只有一个所有者。 3. 当所有者(变量)离开作用域,这个值将被丢弃。 Rust 采取了一个不同的策略:内存在拥有它的变量离开作用域后就被自动释放 变量与数据交互 方式(一):移动,
阅读全文
posted @ 2022-01-08 20:57 谷粒-笔记
阅读(299)
评论(0)
推荐(0)
2022年1月6日
【Rust】String
摘要: String类 1. push_str 2. push 3. as_bytes 4. chars 5. bytes 6. slice 7. as_str 定义字符串 // 不可变 let s = String::from("hello"); // 可变 let mut s = String::fro
阅读全文
posted @ 2022-01-06 22:08 谷粒-笔记
阅读(102)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
21
···
37
下一页