09 2022 档案

摘要:环境 Time 2022-08-23 Rust 1.63.0 Tui 0.19.0 前言 说明 参考:https://github.com/fdehau/tui-rs/tree/master/examples/demo 目标 实现 tui-rs 的综合示例程序。 定义布局 pub fn draw<B 阅读全文
posted @ 2022-09-30 21:20 jiangbo4444 阅读(61) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-23 Rust 1.63.0 Tui 0.19.0 前言 说明 参考:https://github.com/fdehau/tui-rs/tree/master/examples/demo 目标 实现 tui-rs 的综合示例程序,应用数据定义。 静态数据 use ra 阅读全文
posted @ 2022-09-30 21:19 jiangbo4444 阅读(17) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-23 Rust 1.63.0 Tui 0.19.0 前言 说明 参考:https://github.com/fdehau/tui-rs/tree/master/examples/demo 目标 实现 tui-rs 的综合示例程序,终端的开启和还原。 main.rs m 阅读全文
posted @ 2022-09-30 21:18 jiangbo4444 阅读(46) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-23 Rust 1.63.0 Tui 0.19.0 前言 说明 参考:https://github.com/fdehau/tui-rs/tree/master/examples/demo 目标 实现 tui-rs 的综合示例程序,读取命令行参数。 定义组件 use a 阅读全文
posted @ 2022-09-30 21:15 jiangbo4444 阅读(105) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-18 Rust 1.63.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/user_input.rs 目标 使用 tui-rs 来处理用户的输入。 Cargo.to 阅读全文
posted @ 2022-09-30 21:13 jiangbo4444 阅读(67) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-17 Rust 1.63.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/panic.rs 目标 使用 tui-rs 定义一个 panic hook。 定义组件 # 阅读全文
posted @ 2022-09-30 21:12 jiangbo4444 阅读(38) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-17 Rust 1.63.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/custom_widget.rs 目标 使用 tui-rs 自定义一个组件。 定义组件 # 阅读全文
posted @ 2022-09-30 21:11 jiangbo4444 阅读(93) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-17 Rust 1.63.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/canvas.rs 目标 使用 tui-rs 显示 Canvas。 定义应用 struct 阅读全文
posted @ 2022-09-30 21:10 jiangbo4444 阅读(40) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-16 Rust 1.63.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/chart.rs 目标 使用 tui-rs 显示图表。 常量数据 const DATA: 阅读全文
posted @ 2022-09-30 21:08 jiangbo4444 阅读(25) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-16 Rust 1.63.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/tabs.rs 目标 使用 tui-rs 显示页签。 定义应用 struct App<'a 阅读全文
posted @ 2022-09-30 21:04 jiangbo4444 阅读(41) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-16 Rust 1.63.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/table.rs 目标 使用 tui-rs 显示表格。 定义应用 struct App<' 阅读全文
posted @ 2022-09-30 21:02 jiangbo4444 阅读(109) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-16 Rust 1.63.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/sparkline.rs 目标 使用 tui-rs 显示迷你图。 生成数据 #[deriv 阅读全文
posted @ 2022-09-30 21:00 jiangbo4444 阅读(69) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-15 Rust 1.63.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/list.rs 目标 使用 tui-rs 显示列表。 定义数据 struct App<'a 阅读全文
posted @ 2022-09-30 20:58 jiangbo4444 阅读(49) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-15 Rust 1.63.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/popup.rs 目标 使用 tui-rs 显示弹出框。 定义数据 struct App 阅读全文
posted @ 2022-09-30 20:56 jiangbo4444 阅读(47) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-12 Rust 1.63.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/paragraph.rs 目标 使用 tui-rs 显示段落。 定义数据 const 山海 阅读全文
posted @ 2022-09-30 20:54 jiangbo4444 阅读(47) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-11 Rust 1.62.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/gauge.rs 目标 使用 tui-rs 显示进度条。 render_gauge1 fn 阅读全文
posted @ 2022-09-30 20:49 jiangbo4444 阅读(80) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-11 Rust 1.62.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/gauge.rs 目标 使用 tui-rs 显示进度条。 定义数据 struct App 阅读全文
posted @ 2022-09-30 20:45 jiangbo4444 阅读(50) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-09 Rust 1.62.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/barchart.rs 目标 使用 tui-rs 显示条形图。 第一个 fn render 阅读全文
posted @ 2022-09-30 20:43 jiangbo4444 阅读(85) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-09 Rust 1.62.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/barchart.rs 目标 使用 tui-rs 显示动态的柱形图。 定义数据类型 str 阅读全文
posted @ 2022-09-30 20:42 jiangbo4444 阅读(58) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-09 Rust 1.62.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/barchart.rs 目标 使用 tui-rs 显示静态的柱形图。 定义需要展示的数据 阅读全文
posted @ 2022-09-30 20:40 jiangbo4444 阅读(67) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-09 Rust 1.62.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/block.rs 目标 使用 tui-rs 对方块设置各种不同的样式。 设置背景色 let 阅读全文
posted @ 2022-09-30 20:34 jiangbo4444 阅读(63) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-09 Rust 1.62.0 Tui 0.18.0 前言 说明 参考:https://github.com/fdehau/tui-rs/blob/master/examples/block.rs 目标 使用 tui-rs 来控制终端的按键,通过不同的按键退出终端。 分 阅读全文
posted @ 2022-09-30 20:32 jiangbo4444 阅读(73) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-09 Rust 1.62.0 Tui 0.18.0 前言 说明 参考:https://docs.rs/tui/latest/tui/index.html 目标 使用 tui-rs 来控制终端界面的布局。 Cargo.toml [package] edition = " 阅读全文
posted @ 2022-09-30 20:30 jiangbo4444 阅读(63) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-08-08 Rust 1.62.0 Tui 0.18.0 前言 说明 参考:https://docs.rs/tui/latest/tui/index.html 目标 使用 tui-rs 和 crossterm 启动一个控制台的终端界面。 Cargo.toml [packag 阅读全文
posted @ 2022-09-30 20:28 jiangbo4444 阅读(175) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-05-29 Rust 1.61.0 Bytes 1.1.0 前言 说明 参考:https://docs.rs/bytes/latest/bytes/trait.BufMut.html 目标 使用 BufMut 的方法。 remaining_mut fn main() { l 阅读全文
posted @ 2022-09-30 20:26 jiangbo4444 阅读(142) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-05-29 Rust 1.61.0 Bytes 1.1.0 前言 说明 参考:https://docs.rs/bytes/latest/bytes/struct.BytesMut.html 目标 使用 BytesMut 的方法。 with_capacity fn main( 阅读全文
posted @ 2022-09-30 20:25 jiangbo4444 阅读(462) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-05-29 Rust 1.61.0 Bytes 1.1.0 前言 说明 参考:https://docs.rs/bytes/latest/bytes/trait.Buf.html 目标 Bytes 实现了 Buf,使用一下其中的方法。 remaining fn main() 阅读全文
posted @ 2022-09-30 20:23 jiangbo4444 阅读(38) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-05-29 Rust 1.61.0 Bytes 1.1.0 前言 说明 参考:https://docs.rs/bytes/latest/bytes/struct.Bytes.html 目标 Bytes 的源码基本上看完了,简单使用一下其中的方法。 new fn main() 阅读全文
posted @ 2022-09-30 20:21 jiangbo4444 阅读(44) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-05-29 Rust 1.61.0 Bytes 1.1.0 前言 说明 参考:https://github.com/tokio-rs/bytes 目标 Buf 是一个 trait,里面有几个方法需要实现,Bytes 实现了 Buf。 remaining fn remaini 阅读全文
posted @ 2022-09-30 20:20 jiangbo4444 阅读(40) 评论(0) 推荐(0) 编辑
摘要:环境 Time 2022-05-29 Rust 1.61.0 Bytes 1.1.0 前言 说明 参考:https://github.com/tokio-rs/bytes 目标 Bytes 实现迭代器。 IntoIter #[derive(Debug)] pub struct IntoIter<T> 阅读全文
posted @ 2022-09-30 20:17 jiangbo4444 阅读(34) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示