字符串处理函数 (String Handling)
String::new
String::from
String::with_capacity
String::capacity
String::clear
String::push_str
String::push
String::resize
String::truncate
String::pop
String::insert
String::split
String::split_whitespace
String::split_terminator
str::trim
str::trim_left
str::trim_right
str::contains
str::starts_with
str::ends_with
str::find
str::rfind
str::splitn
str::rsplitn
str::matches
str::replace
str::repeat
str::to_uppercase
str::to_lowercase
str::parse
集合操作 (Collections)
Vec::new
Vec::with_capacity
Vec::push
Vec::pop
Vec::insert
Vec::remove
Vec::len
Vec::capacity
Vec::clear
Vec::resize
Vec::reserve
Vec::shrink_to_fit
Vec::split_off
Vec::iter
VecDeque::new
VecDeque::with_capacity
VecDeque::push_front
VecDeque::push_back
VecDeque::pop_front
VecDeque::pop_back
VecDeque::len
VecDeque::capacity
LinkedList::new
LinkedList::push_front
LinkedList::push_back
LinkedList::pop_front
LinkedList::pop_back
LinkedList::len
BinaryHeap::new
BinaryHeap::push
BinaryHeap::pop
BinaryHeap::peek
BinaryHeap::len
HashMap::new
HashMap::with_capacity
HashMap::insert
HashMap::remove
HashMap::get
HashMap::contains_key
HashMap::len
HashSet::new
HashSet::with_capacity
HashSet::insert
HashSet::remove
HashSet::contains
HashSet::len
文件操作 (File Operations)
File::open
File::create
File::read_to_string
File::write
File::metadata
File::sync_all
File::sync_data
File::set_len
File::try_clone
File::seek
File::read
File::write_all
File::flush
OpenOptions::new
OpenOptions::read
OpenOptions::write
OpenOptions::append
OpenOptions::truncate
OpenOptions::create
OpenOptions::open
DirBuilder::new
DirBuilder::create
ReadDir::new
fs::copy
fs::create_dir
fs::create_dir_all
fs::remove_dir
fs::remove_dir_all
fs::rename
fs::set_permissions
fs::read
fs::write
fs::read_to_string
错误处理 (Error Handling)
Result::ok
Result::err
Result::is_ok
Result::is_err
Result::ok_or
Result::ok_or_else
Result::unwrap
Result::expect
Result::map
Result::map_err
Result::and_then
Option::is_some
Option::is_none
Option::unwrap
Option::expect
Option::map
Option::and_then
Option::or
Option::or_else
并发 (Concurrency)
thread::spawn
thread::sleep
thread::yield_now
thread::current
thread::park
thread::unpark
thread::panicking
thread::Builder::new
thread::Builder::name
thread::Builder::stack_size
thread::Builder::spawn
thread::Builder::scoped
Mutex::new
Mutex::lock
RwLock::new
RwLock::read
RwLock::write
Arc::new
Arc::clone
Condvar::new
Condvar::wait
Condvar::notify_one
Condvar::notify_all
Barrier::new
Barrier::wait
数学函数 (Math Functions)
f64::sqrt
f64::powi
f64::powf
f64::exp
f64::ln
f64::log
f64::sin
f64::cos
f64::tan
f64::asin
f64::acos
f64::atan
f64::atan2
f64::max
f64::min
f64::hypot
f64::floor
f64::ceil
i64::abs
u64::pow
f64::abs
迭代器 (Iterators)
Iterator::next
Iterator::collect
Iterator::map
Iterator::filter
Iterator::filter_map
Iterator::take
Iterator::skip
Iterator::take_while
Iterator::skip_while
Iterator::enumerate
Iterator::peekable
Iterator::chain
Iterator::zip
Iterator::rev
Iterator::fold
Iterator::for_each
Iterator::nth
Iterator::last
IntoIterator::into_iter
时间 (Time)
Instant::now
Instant::elapsed
Instant::duration_since
SystemTime::now
SystemTime::duration_since
Duration::new
Duration::from_secs
Duration::from_millis
Duration::from_micros
Duration::from_nanos
Duration::as_secs
Duration::as_millis
Duration::as_micros
Duration::as_nanos
格式化和解析 (Formatting and Parsing)
format!
write!
writeln!
print!
println!
debug_assert!
parse::<T>
iter::repeat
iter::repeat_with
文件路径 (File Paths)
Path::new
PathBuf::new
PathBuf::from
Path::join
Path::to_str
Path::exists
Path::is_file
Path::is_dir
网络 (Networking)
TcpStream::connect
TcpStream::try_clone
TcpListener::bind
TcpListener::incoming
UdpSocket::bind
UdpSocket::send_to
UdpSocket::recv_from
进程 (Process)
Command::new
Command::arg
Command::args
Command::env
Command::spawn
Command::status
Command::output
操作系统接口 (Operating System Interface)
env::args
env::set_var
env::var
env::current_dir
env::set_current_dir
env::home_dir
env::temp_dir
高级特性 (Advanced Features)
mem::replace
mem::swap
mem::transmute
ptr::null
ptr::null_mut
ptr::read
ptr::write
ptr::copy
ptr::copy_nonoverlapping
ptr::replace
ptr::swap
类型转换 (Type Conversion)
From::from
Into::into
TryFrom::try_from
TryInto::try_into
AsRef::as_ref
AsMut::as_mut
对照整理 (Comparison and Ordering)
PartialEq::eq
PartialEq::ne
PartialOrd::partial_cmp
Ord::cmp
Ordering::reverse
错误处理(标准库宏)(Error Handling Macros)
assert!
assert_eq!
assert_ne!
debug_assert!
debug_assert_eq!
debug_assert_ne!
panic!
unreachable!
unimplemented!
Lazy Static and Initialization (Lazy Static)
lazy_static! (需要 lazy_static crate)
Once::new
Once::call_once
Lazy::new (需要 once_cell crate)
序列化和反序列化(Serialization & Deserialization)
serde::Serialize
serde::Deserialize
bincode::serialize
bincode::deserialize
serde_json::to_string
serde_json::from_str
toml::to_string
toml::from_str
随机数生成 (Random Number Generation)
rand::random
rand::thread_rng
rand::rngs::ThreadRng::gen
rand::seq::SliceRandom::choose
rand::seq::SliceRandom::shuffle
内存布局工具 (Memory Layout Tools)
mem::size_of
mem::align_of
mem::align_of_val
类型信息(Type Info)
any::Any
any::TypeId
原始操作 (Primitive Operations)
intrinsics::likely
intrinsics::unlikely
Unsafe 操作 (Unsafe Operations)
unsafe
ptr::read_volatile
ptr::write_volatile
内联汇编 (Inline Assembly)
asm! (需要 nightly)
内存分配 (Memory Allocation)
alloc::alloc
alloc::dealloc
平台特定功能(Platform-Specific Functionality)
windows::WinAPI
unix::UnixAPI
宏 (Macros)
vec!
vec_from_elem
format!
write!
writeln!
print!
println!
assert_eq!
assert_ne!
debug_assert!
debug_assert_eq!
debug_assert_ne!
panic!
assert!
debug_assert!
unreachable!
unimplemented!
todo!
try!
catch!
cfg!
module_path!
file!
line!
column!
include!
include_str!
include_bytes!
option_env!
cfg_attr!
类型代数 (Type Algebra)
PhantomData
Generic
泛型 (Generics)
Generic::new
From::from
特征扩展 (Trait Extension)
Deref
DerefMut
原子操作 (Atomic Operations)
atomic::AtomicBool
atomic::AtomicIsize
atomic::AtomicUsize
atomic::AtomicI8
atomic::AtomicU8
atomic::AtomicI16
atomic::AtomicU16
atomic::AtomicI32
atomic::AtomicU32
atomic::AtomicI64
atomic::AtomicU64
atomic::Ordering::Relaxed
atomic::Ordering::Release
atomic::Ordering::Acquire
atomic::Ordering::AcqRel
atomic::Ordering::SeqCst
并行处理 (Parallel Processing)
rayon::join
rayon::scope
rayon::ThreadPool
rayon::scope::spawn
rayon::slice::ParallelSlice
rayon::iter::IntoParallelIterator
rayon::iter::ParallelIterator
编译期函数(Compile-time Functions)
compile_time_assert!
compile_time_is_true!
常用工具 (Utility Tools)
std::thread::spawn
std::process::abort
std::fs::read_to_string
std::fs::write
std::time::SystemTime::now
std::time::Duration::from_secs
std::convert::TryFrom::try_from
std::string::ToString::to_string
std::vec::Vec::new
std::option::Option::unwrap_or
std::option::Option::unwrap_or_else
高性能相关(High Performance)
simd
simd::f32x4
simd::f64x2
simd::i32x4
simd::u32x4
simd::i64x2
simd::u64x2
测试框架 (Test Framework)
test::Bencher::bench
test::Bencher::iter
test::Bencher::run
环境变量 (Environment Variables)
env::vars
env::vars_os
env::var
env::var_os
env::set_var
env::remove_var
env::home_dir
env::temp_dir
生命周期管理 (Lifetime Management)
ScopeGuard::defer
ScopeGuard::defer_on_unwind
泛型编程 (Generic Programming)
Generic::new
Invariant::new
Contravariant::new
Covariant::new
迭代器适配器 (Iterator Adapters)
iter::DoubleEndedIterator
iter::ExactSizeIterator
iter::FromIterator
枚举 (Enums)
enum::IntoEnum
enum::TryIntoEnum
data::Optionnal
data::Nullable
type::Typeable
type::Transmutate
type::Overload
type::Closure
算法相关 (Algorithm Related)
algorithm::Sort
algorithm::Search
algorithm::BinarySearch
algorithm::InsertionSort
algorithm::QuickSort
algorithm::MergeSort
并行与分布式 (Parallel and Distributed)
parallel::Join
parallel::Wait
parallel::Task
网络编程 (Network Programming)
network::Socket
network::Stream
安全特性 (Security Features)
crypto::Hash
crypto::Cipher
crypto::Signer
类型特性 (Type Features)
type_traits::Movable
type_traits::Copyable
数据特性 (Data Features)
data::Transformable
data::Serializable
data::Deserializable
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。