会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
寻找繁星
Synced with https://seekstar.github.io
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
68
下一页
2024年9月29日
flatpak教程
摘要: title: flatpak教程 date: 2021-12-30 22:53:10 tags: 安装 flatpak是一款跨发行版的包管理器。官网:https://flatpak.org/ 这里有各个发行版的安装方法:https://flatpak.org/setup/ 这里以Deepin为例。
阅读全文
posted @ 2024-09-29 00:40 寻找繁星
阅读(1908)
评论(0)
推荐(0)
2024年9月28日
Rust字节数组和整型互转
摘要: title: Rust字节数组和整型互转 date: 2022-10-18 22:23:25 tags: 整型转字节数组 小端序:i16::to_le_bytes 大端序:i16::to_be_bytes 字节数组转整型 小端序:i16::from_le_bytes 大端序:i16::from_be
阅读全文
posted @ 2024-09-28 14:16 寻找繁星
阅读(173)
评论(0)
推荐(0)
tokio JoinHandle abort不起作用
摘要: title: tokio JoinHandle abort不起作用 date: 2021-08-25 17:36:59 可能是因为这个线程在一个没有await的死循环里? 参考:https://users.rust-lang.org/t/abort-asynchronous-task/61961
阅读全文
posted @ 2024-09-28 14:16 寻找繁星
阅读(31)
评论(0)
推荐(0)
rust进度条
摘要: title: rust进度条 date: 2021-07-07 16:45:40 用indicatif即可。 官方文档:https://docs.rs/indicatif/0.16.2/indicatif/ 一个简单的例子: use indicatif::ProgressBar; fn main()
阅读全文
posted @ 2024-09-28 14:16 寻找繁星
阅读(99)
评论(0)
推荐(0)
rust泛型初始化成0
摘要: title: rust泛型初始化成0 date: 2020-09-04 00:02:25 tags: std::num::Int被deprecated了。所以只能用别人的crate或者自己实现Zero了。 github上有一个不错的: https://github.com/rust-num/num-
阅读全文
posted @ 2024-09-28 14:16 寻找繁星
阅读(40)
评论(0)
推荐(0)
rust存取一个含有borrowed域的结构体
摘要: title: rust存取一个含有borrowed域的结构体 date: 2021-07-28 10:31:32 直接存取不可以: use std::io; use serde::{Serialize, Deserialize}; extern crate bincode; #[derive(Deb
阅读全文
posted @ 2024-09-28 14:16 寻找繁星
阅读(63)
评论(0)
推荐(0)
rust 定时执行
摘要: title: rust 定时执行 date: 2021-08-16 16:20:40 tokio = { "version" = "1.10", features = ["full"] } use tokio::time; async fn print() { let mut interval =
阅读全文
posted @ 2024-09-28 14:16 寻找繁星
阅读(101)
评论(0)
推荐(0)
rust 堆上二维数组
摘要: title: rust 堆上二维数组 date: 2021-09-15 16:56:00 用ndarray: https://docs.rs/ndarray/0.15.3/ndarray/ Rust 多维数组 ndarray 例子: use ndarray::Array2; fn main() {
阅读全文
posted @ 2024-09-28 14:16 寻找繁星
阅读(68)
评论(0)
推荐(0)
rust serde deserialize borrowed member
摘要: title: rust serde deserialize borrowed member date: 2021-07-27 17:04:01 对于borrowed成员,deserializer可以借用输入里的对应部分。serde_json序列化时会将所有部分转换成字符串,这样除非这个成员是字符串,
阅读全文
posted @ 2024-09-28 14:16 寻找繁星
阅读(54)
评论(0)
推荐(0)
rust scoped thread
摘要: title: rust scoped thread date: 2021-05-19 19:00:03 rust里,std::thread::spawn要求传入的闭包的生命周期必须是'static的,也就是说闭包中不能借用局部变量,因为rust不知道这个局部变量会不会突然就被释放了。但是一般情况下,
阅读全文
posted @ 2024-09-28 14:16 寻找繁星
阅读(113)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
68
下一页
公告