首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
Rust
阿祖收手吧
创建于2021-12-25
订阅专栏
Rust Study
等 2 人订阅
共11篇文章
创建于2021-12-25
订阅专栏
默认顺序
默认顺序
最早发布
最新发布
Scalar Data types
Integer Size Signed Unsigned 8 bit i8 u8 16 bit i16 u16 32 bit i32 u32 64 bit i64 u64 128 bit i128 u
Variables
Variables Rust is a strongly typed language Variable type is optional if it can be inferred Type can
Overview
Language basics Variables Scalar data types Strings Constants Operators Functions
println!
Print to the console directly Formatting Expressions Positional arguments Named arguments Printing t
Comments
Line comments Multi-line comments are allowed but rarely used Doc comments Markdown comments: Headin
User input
Here's an example to show how to input. use std::io;
Package manager
Cargo Cargo is the package manager for Rust. cargo new cargo build cargo run cargo clean cargo check
Installation
Using rustup It looks like you’re running macOS, Linux, or another Unix-like OS. To download Rustup
Overview
Project basics Install Rust and set up a Hello World project Cargo package manager User input Commen
Introduction
Selling points Systems programming Memory safety without garbage collection Performance Strongly typ
为什么要学习 Rust?
Rust 安全性 Rust 的思想和优点 思想:明确/(零成本)抽象/赋能 优点:兼具高性能/安全性/表达力