Rust for C++
Introduction
1.
Rust concepts
1.1.
Type deduction
1.2.
Pointers
1.3.
Memory zones
1.4.
Closures
1.5.
Parameters
1.6.
Mutability
1.7.
Clone
1.8.
Drop
1.9.
Operator overloading
1.10.
Visibility
1.11.
Dispatch
1.12.
Error handling
1.13.
Threads
1.14.
FFI
2.
Patterns
2.1.
PIMPL
2.2.
Observer
2.3.
API
3.
Under the hood
3.1.
Generics
3.2.
Trait objects
3.3.
Closures Internals
3.4.
Lifetimes
Powered by
GitBook
A
A
Serif
Sans
White
Sepia
Night
Share on Twitter
Share on Google
Share on Facebook
Share on Weibo
Share on Instapaper
Rust for C++
Type deduction
Rust
let
s1 =
"hello"
;
let
s2: &'static
str
=
"hello"
;
Run
C++
auto
s1 =
"hello"
;
string
s2 =
"hello"
;
Run