RustbyExample
Introduction
Hello World
Comments
Formatted print
Debug
Display
Testcase: List
Formatting
Primitives
Literals and operators
Tuples
Arrays and Slices
Custom types
Structures
Enums
use
C-like
Testcase: linked-list
constants
Variable Bindings
Mutability
Scope and shadowing
Declare first
Casting
Literals
Inference
Alias
Expressions
Flow Control
if/else
loop
Nesting and labels
while
for and range
match
Destructuring
tuples
enums
pointers/ref
structs
Guards
Binding
if let
while let
Functions
Methods
Closures
Capturing
As input parameters
Type anonymity
Input functions
As output parameters
Examples in std
Iterator::any
Iterator::find
Higher Order Functions
Modules
Visibility
Struct visibility
The use declaration
super and self
File hierarchy
Crates
Library
extern crate
Attributes
dead_code
Crates
cfg
Custom
Generics
Functions
Implementation
Traits
Bounds
Testcase: empty bounds
Multiple bounds
Where clauses
Associated items
The Problem
Associated types
Phantom type parameters
Testcase: unit clarification
Scoping rules
RAII
Ownership and moves
Mutability
Borrowing
Mutability
Freezing
Aliasing
The ref pattern
Lifetimes
Explicit annotation
Functions
Methods
Structs
Bounds
Coercion
static
elision
Traits
Derive
Operator Overloading
Drop
Iterators
Clone
macro_rules!
Designators
Overload
Repeat
DRY (Don't Repeat Yourself)
Error handling
panic
Option & unwrap
Combinators: map
Combinators: and_then
Result
map for Result
aliases for Result
Multiple error types
Early returns
Introducing try!
Defining an error type
Other uses of try!
Boxing errors
Std library types
Box, stack and heap
Vectors
Strings
Option
Result
try!
panic!
HashMap
Alternate/custom key types
HashSet
Std misc
Threads
Channels
Path
File I/O
open
create
Child processes
Pipes
Wait
Filesystem Operations
Program arguments
Argument parsing
Foreign Function Interface
Meta
Documentation
Testing
Unsafe operations
Powered by
GitBook
Std misc
18 Std misc
많은 다른 타입들이 std 라이브러리로 제공되며 이런 것들이 있다:
Threads
Channels
File I/O
이들은
기본형
이 제공하는 것 이상으로 확장된다.
See also:
primitives
and
the std library
results matching "
"
No results matching "
"