上一页 1 2 3 4 5 6 7 8 ··· 68 下一页
摘要: title: 0xffffffffc1131d1d in ?? () Cannot find bounds of current function date: 2021-01-23 00:38:06 其实并不是崩了,只是gdb找不到目前在哪一行而已。为了验证,输入l命令打印附近的代码 (gdb) n 阅读全文
posted @ 2024-09-29 12:50 寻找繁星 阅读(128) 评论(0) 推荐(0)
摘要: 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 寻找繁星 阅读(1949) 评论(0) 推荐(0)
摘要: 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 寻找繁星 阅读(179) 评论(0) 推荐(0)
摘要: 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 寻找繁星 阅读(35) 评论(0) 推荐(0)
摘要: 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 寻找繁星 阅读(102) 评论(0) 推荐(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 寻找繁星 阅读(44) 评论(0) 推荐(0)
摘要: 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 寻找繁星 阅读(66) 评论(0) 推荐(0)
摘要: 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 寻找繁星 阅读(103) 评论(0) 推荐(0)
摘要: 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 寻找繁星 阅读(72) 评论(0) 推荐(0)
摘要: 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)
上一页 1 2 3 4 5 6 7 8 ··· 68 下一页