- 浏览: 732171 次
- 性别:
- 来自: 深圳
-
文章分类
- 全部博客 (1044)
- 数据结构 (36)
- UML与设计模式 (42)
- c++ (87)
- rust (36)
- Qt (41)
- boost模板元编程 (43)
- Linux (77)
- 汇编 (4)
- 其它 (2)
- 烹饪 (3)
- unix c / socket (73)
- 软件工程 (4)
- shell (53)
- Python (37)
- c++ primer 5th(c++11) (22)
- 数据库/MySQL (27)
- 数据存储 (4)
- lisp (7)
- git (4)
- Utility (3)
- CDN与DNS (54)
- Http (53)
- php (7)
- nginx/lua/openresty (41)
- redis (11)
- TCP/IP (16)
- 互联网 (6)
- kernel (2)
- go (34)
- 区块链 (43)
- 比特股 (13)
- 以太坊 (23)
- 比特币 (23)
- 密码学 (10)
- EOS (53)
- DAG (1)
- docker (1)
- filecoin (7)
- solidity (64)
- ipfs (8)
- 零知识证明 (1)
- openzeppelin (3)
- java (1)
- defi (7)
最新评论
fn main() { //vec!是一个宏,用来创建向量字面量,宏语句可以使用圆括号,也可以使用中括号和花括号,一般使用中括号表示数组 let mut v1 = vec![];//vec!{},vec!() v1.push(1); assert_eq!(v1[0],1); let mut v2 = vec![0;10]; assert_eq!(v2[3],0); }
fn testFnVec(v :&[i32]) { for vv in v { print!("{} ",vv) } } fn main() { let mut v = vec![1, 2, 3, 4, 5]; v.push(6); v.remove(0); for vv in &mut v { *vv += 10; } testFnVec(&v); println!(); let third: &i32 = &v[2]; println!("The third element is {}", third); match v.get(0) { Some(vv) => println!("index value is {}", vv), None => println!("not found") } match v.get(5) { Some(vv) => println!("index value is {}", vv), None => println!("not found") } println!("len:{}",v.len()); println!("empty:{}",v.is_empty()) } 12 13 14 15 16 The third element is 14 index value is 12 not found len:5 empty:false
发表评论
-
模式匹配
2022-03-27 17:35 144fn main() { //if let ... -
rust mutex
2022-03-27 12:14 198use std::sync::{Arc,Mutex}; ... -
rust channel
2022-03-27 11:58 213use std::sync::mpsc; use std ... -
rust智能指针
2022-03-26 12:31 198Box,Rc,RefCell都是不可变借用,只不过RefCel ... -
test框架
2022-03-25 10:18 197#[derive(Debug)] struct Rect ... -
lifeCycle
2022-03-24 14:10 139fn longest<'info>(x: &a ... -
hashmap
2022-03-24 11:11 155use std::collections::HashMap ... -
rust map
2020-08-18 16:02 475fn test_map(){ let a=[1, ... -
rust call
2020-08-13 10:27 316fn call<F>(clousure:F) ... -
rust闭包
2020-08-12 11:00 218返回闭包 fn returns_closure() -&g ... -
rust cell
2020-08-06 11:47 212fn test_cell(){ use std: ... -
rust引用记数
2020-08-06 11:10 287fn test_ref(){ use std:: ... -
rust内存泄漏
2020-08-03 10:20 435原因主要有三种: 1.线程崩溃,析构无法调用 2.使用引用记数 ... -
rust as类型转换
2020-07-24 10:34 547fn testAs(){ let a = 1u3 ... -
rust 线程 spawn
2020-07-24 10:03 273use std::thread; use std::ti ... -
rust println!
2020-07-20 11:09 307fn testPrintln(){ printl ... -
rust trait
2020-07-16 20:27 250使用trait可以让不用的类型实现同一个行为,定义函数的默认实 ... -
rust 范型
2020-07-15 20:00 251fn testOption(){ let i : ... -
rust 优先队列BinaryHeap
2020-07-15 09:22 802Rust提供的优先队列是基于二叉最大堆实现的 fn te ... -
rust set
2020-07-15 09:23 460HashSet<K>和BTreeSet<K& ...
相关推荐
Rust标准库内部原理(inside-rust-std-library)
官方的 Rust 独立安装程序包含一个单独的 Rust 版本,适合离线安装。它们以三种形式出现:tarball(扩展名.tar.gz),适用于任何类 Unix 环境、Windows 安装程序(.msi)和 Mac 安装程序(.pkg)。这些安装程序附带 ...
rust配置文件读取器,实现通用快捷的调用方式,符合开发项目时所需,以及其精简的方式实现于调用,非常方便用户自定义拓展,适用于web框架的配置读取,或者桌面引用配置读取,目前只实现conf的读取可在文档中写注释...
rust-1.70.0-x86_64-pc-windows-gnu.msi
rust-1.25.0-i686 rust-1.25.0-i686 rust-1.25.0-i686 rust-1.25.0-i686
rust-book-chinese 中文最新版,rust-book-chinese 中文最新版
Rust企业级应用最佳实践-rust-china-conf-2020.pdf
rust-postgres-macros, 支持 Rust Postgres的宏 rust-postgres-macros一套用于铁锈锈蚀的支持宏。 你可以通过 crates.io 上的发行版将rust-postgres-macros集成到项目中:# Cargo.toml[dependencies]
rust 语言编译器.rust-1.15.1-i686-pc-windows-msvc rust-1.15.1-i686-pc-windows-msvc
引言RUST无疑是编程语言史中最难学的高级语言,在仅依靠静态编译的前提下实现一门安全的编程语言,这是必须付出的代价。无论如何,成为一门编程语言的老手的最佳办法就
rust-musl-cross Docker镜像,用于使用musl-cross-make编译静态Rust二进制文件,灵感来自rust-musl-builder预制映像,目前,我们拥有rust-musl-cross Docker镜像,用于使用musl-cross-make编译静态Rust二进制文件,...
rust-code-analysis rust-code-analysis是一个Rust库,用于分析和提取从许多不同编程中编写的源代码中的信息。lan rust-code-analysis rust-code-analysis是一个Rust库,用于从源代码中分析和提取信息用许多不同的...
rust-in-action配套代码,方便不好翻墙的同学
rust-beta-aarch64-apple-darwin.pkg 2020-12-5 BETA官网版 适用于苹果M1芯片的RUST离线安装包 RUST 编译器、标准库、CARGO、文档、RLS
rust-clockpro-cache Rust 的 CLOCK-Pro 缓存替换算法
rust 最新版本Windows安装包,可直接下载进行安装开发。
practical-rust-web-projects-applications.7z
rust-1.48.0-x86_64-pc-windows-gnu rust 稳定版本,国外下载慢,放在这里
离线安装包,亲测可用
终于找到个win7可以用的rust安装包了,不用init安装就是快 !!