摘要:
变量和可变性 Rust变量默认是不可改变的(immutable),一旦值被绑定一个名称上,你就不能改变这个值 let x = 5; x = 6; 报错cannot assign twice to immutable variable 对不可变变量 x 赋第二个值,如果想要重新赋值,可以这样做: le 阅读全文
摘要:
变量和可变性 Rust变量默认是不可改变的(immutable),一旦值被绑定一个名称上,你就不能改变这个值 let x = 5; x = 6; 报错cannot assign twice to immutable variable 对不可变变量 x 赋第二个值,如果想要重新赋值,可以这样做: le 阅读全文
摘要:
use std::io; fn main() { println!("Guess the number!"); println!("Please input your guess."); let mut guess = String::new(); io::stdin().read_line(&mu 阅读全文
摘要:
1.安装 在线安装: $ curl https://sh.rustup.rs -sSf | sh 离线安装 Other ways to install rustup 2.配置环境 $ source $HOME/.cargo/env 或者可以在~/.bash_profile 或者 ~/.bashrc最 阅读全文
摘要:
Ubuntu开机提示fsck exited with status code 4的解决办法 Ubuntu开机的时候会check磁盘,如果check fail,会提示sdax check fail(sdax为sda0 、sda1等等) 这是因为关机不当导致磁盘内的数据损坏 解决办法: fsck -y 阅读全文
摘要:
quic协议的rust实现库quiche-master作为rust的编译目标 如何在64系统的rust下编译32位的rust程序或库 0.已离线安装64位的rust https://forge.rust-lang.org/infra/other-installation-methods.html x 阅读全文
摘要:
USER NAME:TEAM_BRAiGHTLiNG_2007 CODE:XPNMF-ISDYF-LCSED-BPATU RPTME-IMDHD-MIEPX-VLXAW 阅读全文
摘要:
rust安装 https://www.rust-lang.org/tools/install IntelliJ IDEA下载地址 https://www.jetbrains.com/idea/ 安装插件参考 Idea插件安装和管理 在线安装点击 File → Settings 菜单 , 或Ctrl 阅读全文
摘要:
本来安装增强功能后, udo adduser gw root sudo usermod -aG vboxsf $(whoami) 可以打开共享目录。 后来不知道改了啥,导致只有root用户可以访问,chown无效,始终是root用户的,网上查到检查或者方案基本如下: 解决方案1 编辑文件/et 阅读全文
摘要:
sudo tcpdump -i lo src host localhost and dst host localhost and src port 443 or dst port 443 -v -c 6 -w /home/gw/opensource/daemon.out 阅读全文
摘要:
$ git log fatal: write failure on 'stdout': Bad file descriptor 网上搜了下没有找到答案。重装git for windows就好了 阅读全文
|