摘要:https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git Aliases Alias Command g git ga git add gaa git add --all gapa git add --patch gau git add -
阅读全文
摘要:https://calcpad.blog/2022/04/28/how-to-calculate-square-cubic-root-by-hand/ 今天,技术让我们的一切变得简单快捷。有时,当我们看到古代的工程奇迹时,我们会想:“他们是如何在没有计算机的情况下设计出来的”?答案是:“凭借知识、灵
阅读全文
摘要:https://calcpad.blog/2022/11/01/5-reasons-to-choose-math-worksheets-over-excel-spreadsheets-for-structural-calculations/ 虽然现在有很多软件,但工程师仍然需要开发自定义计算来解决特
阅读全文
摘要:1、 主函数使用 new 一个 Runtime: let rt = tokio::runtime::Builder::new_multi_thread().enable_all().build().unwrap(); rt.block_on(async move { // some task wit
阅读全文
摘要:https://github.com/emilk/egui#why-immediate-mode 为什么立即模式 egui是立即模式 GUI 库,与保留模式GUI 库相对。保留模式和立即模式之间的区别最好用按钮的例子来说明:在保留的 GUI 中,您创建一个按钮,将其添加到某些 UI 并安装一些单击处
阅读全文
摘要:// 定义二叉树节点 struct Node { // 节点值 value: i32, // 左子树 left: Option<Box<Node>>, // 右子树 right: Option<Box<Node>>, } // 定义二叉树 struct BinaryTree { // 根节点 roo
阅读全文
摘要:mirrors.ustc.edu.cn-12df342d903acd47/tokio-1.21.2/src/fs/file.rs //! Types for working with [`File`]. //! //! [`File`]: File use self::State::*; use c
阅读全文
摘要:https://blog.iany.me/2019/02/rust-cell-and-refcell/ Rust Cell and RefCell In Rust document, Cell is “A mutable memory location”, and RefCell is “A mut
阅读全文