msgid ""
msgstr ""
"Project-Id-Version: [ํ๊ตญ์ด]Comprehensive Rust ๐ฆ\n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ko\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Poedit 3.2.2\n"
#: src/SUMMARY.md:3
msgid "Welcome to Comprehensive Rust ๐ฆ"
msgstr "Comprehensive Rust์ ์ค์ ๊ฒ์ ํ์ํฉ๋๋ค ๐ฆ"
#: src/SUMMARY.md:4
msgid "Running the Course"
msgstr "๊ฐ์ ์งํ"
#: src/SUMMARY.md:5
msgid "Course Structure"
msgstr "๊ฐ์ ๊ตฌ์ฑ"
#: src/SUMMARY.md:6
msgid "Keyboard Shortcuts"
msgstr "๋จ์ถํค"
#: src/SUMMARY.md:7
msgid "Translations"
msgstr "๋ค๋ฅธ ์ธ์ด๋ค"
#: src/SUMMARY.md:8
msgid "Using Cargo"
msgstr "์นด๊ณ ์ฌ์ฉํ๊ธฐ"
#: src/SUMMARY.md:9
msgid "Rust Ecosystem"
msgstr "๋ฌ์คํธ ์ํ๊ณ"
#: src/SUMMARY.md:10
msgid "Code Samples"
msgstr "์ฝ๋ ์ํ"
#: src/SUMMARY.md:11
msgid "Running Cargo Locally"
msgstr "์นด๊ณ (Cargo) ์ํํ๊ธฐ"
#: src/SUMMARY.md:14
msgid "Day 1: Morning"
msgstr "1์ผ์ฐจ ์ค์ "
#: src/SUMMARY.md:18 src/SUMMARY.md:74 src/SUMMARY.md:127 src/SUMMARY.md:183
msgid "Welcome"
msgstr "๊ฐ์"
#: src/SUMMARY.md:19
msgid "What is Rust?"
msgstr "๋ฌ์คํธ๋?"
#: src/SUMMARY.md:20
msgid "Hello World!"
msgstr "Hello World!"
#: src/SUMMARY.md:21
msgid "Small Example"
msgstr "์์ ์์ "
#: src/SUMMARY.md:22
msgid "Why Rust?"
msgstr "๋ฌ์คํธ๋ฅผ ์จ์ผํ๋ ์ด์ "
#: src/SUMMARY.md:23
msgid "Compile Time Guarantees"
msgstr "์ปดํ์ผ ์ ๋ณด์ฅ๋๋ ๊ฒ๋ค"
#: src/SUMMARY.md:24
msgid "Runtime Guarantees"
msgstr "๋ฐํ์ ์ ๋ณด์ฅ๋๋ ๊ฒ๋ค"
#: src/SUMMARY.md:25
msgid "Modern Features"
msgstr "ํ๋์ ์ธ ํน์ง"
#: src/SUMMARY.md:26
msgid "Basic Syntax"
msgstr "๊ธฐ๋ณธ ๋ฌธ๋ฒ"
#: src/SUMMARY.md:27
msgid "Scalar Types"
msgstr "์ค์นผ๋ผ ํ์
"
#: src/SUMMARY.md:28
msgid "Compound Types"
msgstr "๋ณตํฉ ํ์
"
#: src/SUMMARY.md:29
msgid "References"
msgstr "์ฐธ์กฐ"
#: src/SUMMARY.md:30
msgid "Dangling References"
msgstr "ํ์(dangling) ์ฐธ์กฐ"
#: src/SUMMARY.md:31
msgid "Slices"
msgstr "์ฌ๋ผ์ด์ค"
#: src/SUMMARY.md:32
msgid "String vs str"
msgstr "String๊ณผ str"
#: src/SUMMARY.md:33
msgid "Functions"
msgstr "ํจ์"
#: src/SUMMARY.md:34 src/SUMMARY.md:81
msgid "Methods"
msgstr "๋ฉ์๋"
#: src/SUMMARY.md:35
msgid "Overloading"
msgstr "์ค๋ฒ๋ก๋ฉ"
#: src/SUMMARY.md:36 src/SUMMARY.md:65 src/SUMMARY.md:89 src/SUMMARY.md:118
#: src/SUMMARY.md:147 src/SUMMARY.md:175 src/SUMMARY.md:198 src/SUMMARY.md:225
msgid "Exercises"
msgstr "์ฐ์ต๋ฌธ์ "
#: src/SUMMARY.md:37
msgid "Implicit Conversions"
msgstr "๋ฌต์์ ํ๋ณํ"
#: src/SUMMARY.md:38
msgid "Arrays and for Loops"
msgstr "๋ฐฐ์ด๊ณผ for ๋ฐ๋ณต๋ฌธ"
#: src/SUMMARY.md:40
msgid "Day 1: Afternoon"
msgstr "1์ผ์ฐจ ์คํ"
#: src/SUMMARY.md:42
msgid "Variables"
msgstr "๋ณ์"
#: src/SUMMARY.md:43
msgid "Type Inference"
msgstr "ํ์
์ถ๋ก "
#: src/SUMMARY.md:44
msgid "static & const"
msgstr "์ ์ ๋ณ์(static)์ ์์(const)"
#: src/SUMMARY.md:45
msgid "Scopes and Shadowing"
msgstr "๋ฒ์(Scopes)์ ์๋์(Shadowing)"
#: src/SUMMARY.md:46
msgid "Memory Management"
msgstr "๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ"
#: src/SUMMARY.md:47
msgid "Stack vs Heap"
msgstr "์คํ(Stack)๊ณผ ํ(Heap)"
#: src/SUMMARY.md:48
msgid "Stack Memory"
msgstr "์คํ ๋ฉ๋ชจ๋ฆฌ"
#: src/SUMMARY.md:49
msgid "Manual Memory Management"
msgstr "์๋ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ"
#: src/SUMMARY.md:50
msgid "Scope-Based Memory Management"
msgstr "๋ฒ์๊ธฐ๋ฐ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ"
#: src/SUMMARY.md:51
msgid "Garbage Collection"
msgstr "๊ฐ๋น์ง ์ปฌ๋ ์
"
#: src/SUMMARY.md:52
msgid "Rust Memory Management"
msgstr "๋ฌ์คํธ์ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ"
#: src/SUMMARY.md:53
msgid "Comparison"
msgstr "๋น๊ต"
#: src/SUMMARY.md:54
msgid "Ownership"
msgstr "์์ ๊ถ"
#: src/SUMMARY.md:55
msgid "Move Semantics"
msgstr "Move ๋ฌธ๋ฒ"
#: src/SUMMARY.md:56
msgid "Moved Strings in Rust"
msgstr "๋ฌ์คํธ์์์ ๋ฌธ์์ด ์ด๋"
#: src/SUMMARY.md:57
msgid "Double Frees in Modern C++"
msgstr "Modern C++์์ ์ด์คํด์ ๋ฌธ์ "
#: src/SUMMARY.md:58
msgid "Moves in Function Calls"
msgstr "ํจ์ ํธ์ถ์์์ ์ด๋(Move)"
#: src/SUMMARY.md:59
msgid "Copying and Cloning"
msgstr "๋ณต์ฌ์ ๋ณต์ "
#: src/SUMMARY.md:60
msgid "Borrowing"
msgstr "๋น๋ฆผ"
#: src/SUMMARY.md:61
msgid "Shared and Unique Borrows"
msgstr "๊ณต์ ์ ๊ณ ์ ๋น๋ฆผ"
#: src/SUMMARY.md:62
msgid "Lifetimes"
msgstr "์๋ช
"
#: src/SUMMARY.md:63
msgid "Lifetimes in Function Calls"
msgstr "ํจ์ ํธ์ถ์์์ ์๋ช
"
#: src/SUMMARY.md:64
msgid "Lifetimes in Data Structures"
msgstr "๊ตฌ์กฐ์ฒด์์์ ์๋ช
"
#: src/SUMMARY.md:66
msgid "Designing a Library"
msgstr "๋์๊ด ์ค๊ณ"
#: src/SUMMARY.md:67
msgid "Iterators and Ownership"
msgstr "๋ฐ๋ณต์์ ์์ ๊ถ"
#: src/SUMMARY.md:70
msgid "Day 2: Morning"
msgstr "2์ผ์ฐจ ์ค์ "
#: src/SUMMARY.md:75
msgid "Structs"
msgstr "๊ตฌ์กฐ์ฒด"
#: src/SUMMARY.md:76
msgid "Tuple Structs"
msgstr "ํํ"
#: src/SUMMARY.md:77
msgid "Field Shorthand Syntax"
msgstr "ํ๋ ํ ๋น ๋จ์ถ ๋ฌธ๋ฒ"
#: src/SUMMARY.md:78
msgid "Enums"
msgstr "์ด๊ฑฐํ"
#: src/SUMMARY.md:79
msgid "Variant Payloads"
msgstr "๋ฐ์ดํฐ๋ฅผ ํฌํจํ๋ ์ด๊ฑฐํ(Variant Payloads)"
#: src/SUMMARY.md:80
msgid "Enum Sizes"
msgstr "์ด๊ฑฐํ์ ํฌ๊ธฐ"
#: src/SUMMARY.md:82
msgid "Method Receiver"
msgstr "๋ฉ์๋ ๋ฆฌ์๋ฒ(Receiver)"
#: src/SUMMARY.md:83 src/SUMMARY.md:158 src/SUMMARY.md:193
msgid "Example"
msgstr "์์ "
#: src/SUMMARY.md:84
msgid "Pattern Matching"
msgstr "ํจํด ๋งค์นญ"
#: src/SUMMARY.md:85
msgid "Destructuring Enums"
msgstr "์ด๊ฑฐํ ๋ถํด(์ญ๊ตฌ์กฐํ)"
#: src/SUMMARY.md:86
msgid "Destructuring Structs"
msgstr "๊ตฌ์กฐ์ฒด ๋ถํด(์ญ๊ตฌ์กฐํ)"
#: src/SUMMARY.md:87
msgid "Destructuring Arrays"
msgstr "๋ฐฐ์ด ๋ถํด(์ญ๊ตฌ์กฐํ)"
#: src/SUMMARY.md:88
msgid "Match Guards"
msgstr "๋งค์น ๊ฐ๋"
#: src/SUMMARY.md:90
msgid "Health Statistics"
msgstr "๊ฑด๊ฐ์ํ ๋ชจ๋ํฐ๋ง ์์คํ
"
#: src/SUMMARY.md:91
msgid "Points and Polygons"
msgstr "์ ๊ณผ ๋ค๊ฐํ"
#: src/SUMMARY.md:93
msgid "Day 2: Afternoon"
msgstr "2์ผ์ฐจ ์คํ"
#: src/SUMMARY.md:95
msgid "Control Flow"
msgstr "ํ๋ฆ ์ ์ด"
#: src/SUMMARY.md:96
msgid "Blocks"
msgstr "๋ธ๋ก"
#: src/SUMMARY.md:97
msgid "if expressions"
msgstr "if ํํ์"
#: src/SUMMARY.md:98
msgid "if let expressions"
msgstr "if let ํํ์"
#: src/SUMMARY.md:99
msgid "while expressions"
msgstr "while ํํ์"
#: src/SUMMARY.md:100
msgid "while let expressions"
msgstr "while let ํํ์"
#: src/SUMMARY.md:101
msgid "for expressions"
msgstr "for ํํ์"
#: src/SUMMARY.md:102
msgid "loop expressions"
msgstr "loop ํํ์"
#: src/SUMMARY.md:103
msgid "match expressions"
msgstr "match ํํ์"
#: src/SUMMARY.md:104
msgid "break & continue"
msgstr "break์ continue"
#: src/SUMMARY.md:105
msgid "Standard Library"
msgstr "ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ"
#: src/SUMMARY.md:106
msgid "Option and Result"
msgstr "Option๊ณผ Result"
#: src/SUMMARY.md:107
msgid "String"
msgstr "String"
#: src/SUMMARY.md:108
msgid "Vec"
msgstr "Vec"
#: src/SUMMARY.md:109
msgid "HashMap"
msgstr "HashMap"
#: src/SUMMARY.md:110
msgid "Box"
msgstr "Box"
#: src/SUMMARY.md:111
msgid "Recursive Data Types"
msgstr "์ฌ๊ท์ ์๋ฃ๊ตฌ์กฐ"
#: src/SUMMARY.md:112
msgid "Niche Optimization"
msgstr "๋์น(ํ์) ์ต์ ํ(Niche Optimization)"
#: src/SUMMARY.md:113
msgid "Rc"
msgstr "Rc"
#: src/SUMMARY.md:114
msgid "Modules"
msgstr "๋ชจ๋"
#: src/SUMMARY.md:115
msgid "Visibility"
msgstr "๊ฐ์์ฑ"
#: src/SUMMARY.md:116
msgid "Paths"
msgstr "๊ฒฝ๋ก"
#: src/SUMMARY.md:117
msgid "Filesystem Hierarchy"
msgstr "ํ์ผ์์คํ
๊ณ์ธต"
#: src/SUMMARY.md:119
msgid "Luhn Algorithm"
msgstr "๋ฃฌ ์๊ณ ๋ฆฌ์ฆ"
#: src/SUMMARY.md:120
msgid "Strings and Iterators"
msgstr "๋ฌธ์์ด๊ณผ ๋ฐ๋ณต์"
#: src/SUMMARY.md:123
msgid "Day 3: Morning"
msgstr "3์ผ์ฐจ ์ค์ "
#: src/SUMMARY.md:128
msgid "Traits"
msgstr "ํธ๋ ์(Trait)"
#: src/SUMMARY.md:129
msgid "Deriving Traits"
msgstr "ํธ๋ ์ ์์ํ๊ธฐ"
#: src/SUMMARY.md:130
msgid "Default Methods"
msgstr "๊ธฐ๋ณธ ๋ฉ์๋"
#: src/SUMMARY.md:131
msgid "Important Traits"
msgstr "์ค์ํ ํธ๋ ์"
#: src/SUMMARY.md:132
msgid "Iterator"
msgstr "Iterator"
#: src/SUMMARY.md:133
msgid "FromIterator"
msgstr "FromIterator"
#: src/SUMMARY.md:134
msgid "From and Into"
msgstr "From๊ณผ Into"
#: src/SUMMARY.md:135
msgid "Read and Write"
msgstr "Read์ Write"
#: src/SUMMARY.md:136
msgid "Add, Mul, ..."
msgstr "Add, Mul, ..."
#: src/SUMMARY.md:137
msgid "Drop"
msgstr "Drop"
#: src/SUMMARY.md:138
msgid "Default"
msgstr "Default"
#: src/SUMMARY.md:139
msgid "Generics"
msgstr "์ ๋ค๋ฆญ"
#: src/SUMMARY.md:140
msgid "Generic Data Types"
msgstr "์ ๋ค๋ฆญ ๋ฐ์ดํฐ ํ์
"
#: src/SUMMARY.md:141
msgid "Generic Methods"
msgstr "์ ๋ค๋ฆญ ๋ฉ์๋"
#: src/SUMMARY.md:142
msgid "Trait Bounds"
msgstr "์ ๋ค๋ฆญ ํ์
์ ํ(ํธ๋ ์ ๊ฒฝ๊ณ)"
#: src/SUMMARY.md:143
msgid "impl Trait"
msgstr "ํธ๋ ์ ๊ตฌํํ๊ธฐ"
#: src/SUMMARY.md:144
msgid "Closures"
msgstr "ํด๋ก์ "
#: src/SUMMARY.md:145
msgid "Monomorphization"
msgstr "๋จํํ"
#: src/SUMMARY.md:146
msgid "Trait Objects"
msgstr "ํธ๋ ์ ๊ฐ์ฒด"
#: src/SUMMARY.md:148
msgid "A Simple GUI Library"
msgstr "๊ฐ๋จํ GUI ๋ผ์ด๋ธ๋ฌ๋ฆฌ"
#: src/SUMMARY.md:150
msgid "Day 3: Afternoon"
msgstr "3์ผ์ฐจ ์คํ"
#: src/SUMMARY.md:152
msgid "Error Handling"
msgstr "์ค๋ฅ์ฒ๋ฆฌ"
#: src/SUMMARY.md:153
msgid "Panics"
msgstr "ํจ๋"
#: src/SUMMARY.md:154
msgid "Catching Stack Unwinding"
msgstr "์คํ ๋๊ฐ๊ธฐ"
#: src/SUMMARY.md:155
msgid "Structured Error Handling"
msgstr "๊ตฌ์กฐํ๋ ์ค๋ฅ์ฒ๋ฆฌ"
#: src/SUMMARY.md:156
msgid "Propagating Errors with ?"
msgstr "'?'๋ฅผ ์ด์ฉํ ์ค๋ฅ ์ ํ"
#: src/SUMMARY.md:157
msgid "Converting Error Types"
msgstr "์ค๋ฅํ์
๋ณํ"
#: src/SUMMARY.md:159
msgid "Deriving Error Enums"
msgstr "๋๋ค๋ฅธ ์ค๋ฅ ์ด๊ฑฐํ"
#: src/SUMMARY.md:160
msgid "Dynamic Error Types"
msgstr "๋์ ์ธ ์๋ฌ ํ์
"
#: src/SUMMARY.md:161
msgid "Adding Context to Errors"
msgstr "์ค๋ฅ์ ์ํฉ์ ๋ณด ์ถ๊ฐ"
#: src/SUMMARY.md:162
msgid "Testing"
msgstr "ํ
์คํธ"
#: src/SUMMARY.md:163
msgid "Unit Tests"
msgstr "๋จ์ ํ
์คํธ"
#: src/SUMMARY.md:164
msgid "Test Modules"
msgstr "ํ
์คํธ ๋ชจ๋"
#: src/SUMMARY.md:165
msgid "Documentation Tests"
msgstr "๋ฌธ์ํ์ฃผ์ ํ
์คํธ"
#: src/SUMMARY.md:166
msgid "Integration Tests"
msgstr "ํตํฉ ํ
์คํธ"
#: src/SUMMARY.md:167
msgid "Unsafe Rust"
msgstr "์์ ํ์ง ์์ ๋ฌ์คํธ"
#: src/SUMMARY.md:168
msgid "Dereferencing Raw Pointers"
msgstr "์์ ํฌ์ธํฐ ์ญ์ฐธ์กฐ(๋ฐ๋ผ๊ฐ๊ธฐ)"
#: src/SUMMARY.md:169
msgid "Mutable Static Variables"
msgstr "์ ์ ๊ฐ๋ณ ๋ณ์"
#: src/SUMMARY.md:170
msgid "Unions"
msgstr "Unions"
#: src/SUMMARY.md:171
msgid "Calling Unsafe Functions"
msgstr "์์ ํ์ง ์์ ํจ์ ํธ์ถ"
#: src/SUMMARY.md:172
msgid "Writing Unsafe Functions"
msgstr "์์ ํ์ง ์์ ํจ์ ์์ฑํ๊ธฐ"
#: src/SUMMARY.md:173
msgid "Extern Functions"
msgstr "์ธ๋ถ(๋ค๋ฅธ์ธ์ด) ํจ์๋ค"
#: src/SUMMARY.md:174
msgid "Implementing Unsafe Traits"
msgstr "์์ ํ์ง ์์ ํธ๋ ์ ๊ตฌํํ๊ธฐ"
#: src/SUMMARY.md:176
msgid "Safe FFI Wrapper"
msgstr "FFI๋ํผ"
#: src/SUMMARY.md:179
msgid "Day 4: Morning"
msgstr "4์ผ์ฐจ ์ค์ "
#: src/SUMMARY.md:184
msgid "Concurrency"
msgstr "๋์์ฑ"
#: src/SUMMARY.md:185
msgid "Threads"
msgstr "์ค๋ ๋"
#: src/SUMMARY.md:186
msgid "Scoped Threads"
msgstr "๋ฒ์ ์ค๋ ๋(Scoped Threads)"
#: src/SUMMARY.md:187
msgid "Channels"
msgstr "์ฑ๋"
#: src/SUMMARY.md:188
msgid "Unbounded Channels"
msgstr "๋ฌด๊ฒฝ๊ณ ์ฑ๋"
#: src/SUMMARY.md:189
msgid "Bounded Channels"
msgstr "๊ฒฝ๊ณ ์ฑ๋"
#: src/SUMMARY.md:190
msgid "Shared State"
msgstr "์ํ ๊ณต์ "
#: src/SUMMARY.md:191
msgid "Arc"
msgstr "Arc"
#: src/SUMMARY.md:192
msgid "Mutex"
msgstr "Mutex"
#: src/SUMMARY.md:194
msgid "Send and Sync"
msgstr "Send์ Sync"
#: src/SUMMARY.md:194
msgid "Send"
msgstr "Send"
#: src/SUMMARY.md:194
msgid "Sync"
msgstr "Sync"
#: src/SUMMARY.md:197
msgid "Examples"
msgstr "์์ "
#: src/SUMMARY.md:199
msgid "Dining Philosophers"
msgstr "์์ฌํ๋ ์ฒ ํ์๋ค"
#: src/SUMMARY.md:200
msgid "Multi-threaded Link Checker"
msgstr "๋ฉํฐ์ค๋ ๋ ๋งํฌ ๊ฒ์ฌ๊ธฐ"
#: src/SUMMARY.md:202
msgid "Day 4: Afternoon"
msgstr "4์ผ์ฐจ ์คํ"
#: src/SUMMARY.md:206
msgid "Android"
msgstr "์๋๋ก์ด๋"
#: src/SUMMARY.md:207
msgid "Setup"
msgstr "์ค์น"
#: src/SUMMARY.md:208
msgid "Build Rules"
msgstr "๋น๋ ๊ท์น"
#: src/SUMMARY.md:209
msgid "Binary"
msgstr "๋ฐ์ด๋๋ฆฌ"
#: src/SUMMARY.md:210
msgid "Library"
msgstr "๋ผ์ด๋ธ๋ฌ๋ฆฌ"
#: src/SUMMARY.md:211
msgid "AIDL"
msgstr "AIDL"
#: src/SUMMARY.md:212
msgid "Interface"
msgstr "AIDL ์ธํฐํ์ด์ค"
#: src/SUMMARY.md:213
msgid "Implementation"
msgstr "์๋น์ค ๊ตฌํ"
#: src/SUMMARY.md:214
msgid "Server"
msgstr "AIDL ์๋ฒ"
#: src/SUMMARY.md:215
msgid "Deploy"
msgstr "๋ฐฐํฌ"
#: src/SUMMARY.md:216
msgid "Client"
msgstr "ํด๋ผ์ด์ธํธ"
#: src/SUMMARY.md:217
msgid "Changing API"
msgstr "API ์์ "
#: src/SUMMARY.md:218
msgid "Logging"
msgstr "๋ก๊น
"
#: src/SUMMARY.md:219
msgid "Interoperability"
msgstr "์ํธ์ด์ฉ์ฑ"
#: src/SUMMARY.md:220
msgid "With C"
msgstr "C์์ ์ํธ์ด์ฉ์ฑ"
#: src/SUMMARY.md:221
msgid "Calling C with Bindgen"
msgstr "Bindgen์ ์ฌ์ฉํ Cํธ์ถ"
#: src/SUMMARY.md:222
msgid "Calling Rust from C"
msgstr "C์์ ๋ฌ์คํธ ํธ์ถ"
#: src/SUMMARY.md:223
msgid "With C++"
msgstr "C++ ์์ ์ํธ์ด์ฉ์ฑ"
#: src/SUMMARY.md:224
msgid "With Java"
msgstr "Java์์ ์ํธ์ด์ฉ์ฑ"
#: src/SUMMARY.md:227
msgid "Final Words"
msgstr "๋์ผ๋ก..."
#: src/SUMMARY.md:229
msgid "Thanks!"
msgstr "๊ฐ์ฌ์ธ์ฌ"
#: src/SUMMARY.md:230
msgid "Other Resources"
msgstr "๋ฌ์คํธ ์ฐธ๊ณ ์๋ฃ"
#: src/SUMMARY.md:231
msgid "Credits"
msgstr "๋์์ฃผ์ ๋ถ๋ค"
#: src/SUMMARY.md:235
msgid "Solutions"
msgstr "ํด๋ต"
#: src/SUMMARY.md:240
msgid "Day 1 Morning"
msgstr "1์ผ์ฐจ ์ค์ "
#: src/SUMMARY.md:241
msgid "Day 1 Afternoon"
msgstr "1์ผ์ฐจ ์คํ"
#: src/SUMMARY.md:242
msgid "Day 2 Morning"
msgstr "2์ผ์ฐจ ์ค์ "
#: src/SUMMARY.md:243
msgid "Day 2 Afternoon"
msgstr "2์ผ์ฐจ ์คํ"
#: src/SUMMARY.md:244
msgid "Day 3 Morning"
msgstr "3์ผ์ฐจ ์ค์ "
#: src/SUMMARY.md:245
msgid "Day 3 Afternoon"
msgstr "3์ผ์ฐจ ์คํ"
#: src/SUMMARY.md:246
msgid "Day 4 Morning"
msgstr "4์ผ์ฐจ ์ค์ "
#: src/welcome.md:1
msgid "# Welcome to Comprehensive Rust ๐ฆ"
msgstr "# Welcome to Comprehensive Rust ๐ฆ"
#: src/welcome.md:3
msgid ""
"This is a four day Rust course developed by the Android team. The course covers\n"
"the full spectrum of Rust, from basic syntax to advanced topics like generics\n"
"and error handling. It also includes Android-specific content on the last day."
msgstr "์ด 4์ผ์ง๋ฆฌ ๋ฌ์คํธ ๊ฐ์๋ ์๋๋ก์ด๋ ํ์ด ๋ง๋ค์์ต๋๋ค. ๊ธฐ๋ณธ ๋ฌธ๋ฒ๋ถํฐ ์ ๋ค๋ฆญ, ์๋ฌ ํธ๋ค๋ง๊ณผ ๊ฐ์ ๊ณ ๊ธ์ฃผ์ ๊น์ง ๋ฌ์คํธ์ ๋ชจ๋ ๊ฒ์ ํฌํจํฉ๋๋ค. ๋ง์ง๋ง ๋ ์๋ ์๋๋ก์ด๋์ ๋ํ ๊ฒ ๊น์ง ๋ค๋ฃน๋๋ค."
#: src/welcome.md:7
msgid ""
"The goal of the course is to teach you Rust. We assume you don't know anything\n"
"about Rust and hope to:"
msgstr "๊ฐ์๋ ๋น์ ์ด ๋ฌ์คํธ์ ๋ํด์ ์๋ฌด๊ฒ๋ ๋ชจ๋ฅธ๋ค๊ณ ๊ฐ์ ํ๊ณ ์๋์ ๋ชฉํ๋ฅผ ๊ฐ์ง๊ณ ์์ต๋๋ค:"
#: src/welcome.md:10
msgid ""
"* Give you a comprehensive understanding of the Rust syntax and language.\n"
"* Enable you to modify existing programs and write new programs in Rust.\n"
"* Show you common Rust idioms."
msgstr ""
"* ๋ฌ์คํธ ๊ตฌ๋ฌธ๊ณผ ์ธ์ด์ ๋ํ ํฌ๊ด์ ์ธ ์ดํด๋ฅผ ์ ๊ณตํฉ๋๋ค.\n"
"* ๊ธฐ์กด ํ๋ก๊ทธ๋จ์ ์์ ํ๊ณ ๋ฌ์คํธ์์ ์ ํ๋ก๊ทธ๋จ์ ์์ฑํ ์ ์์ต๋๋ค.\n"
"* ์ผ๋ฐ์ ์ธ ๋ฌ์คํธ ๊ด์ฉ๊ตฌ๋ฅผ ๋ณด์ฌ์ค๋๋ค."
#: src/welcome.md:14
msgid "On Day 4, we will cover Android-specific things such as:"
msgstr "4์ผ์ฐจ ๊ฐ์์ ์ฐ๋ฆฌ๋ ์๋์ ๊ฐ์ ์๋๋ก์ด๋ ํนํ๋ ๋ด์ฉ๋ค๋ ์ค๋ช
ํฉ๋๋ค:"
#: src/welcome.md:16
msgid ""
"* Building Android components in Rust.\n"
"* AIDL servers and clients.\n"
"* Interoperability with C, C++, and Java."
msgstr ""
"* ๋ฌ์คํธ์์ Android ๊ตฌ์ฑ ์์๋ฅผ ๊ตฌ์ถ.\n"
"* AIDL ์๋ฒ ๋ฐ ํด๋ผ์ด์ธํธ.\n"
"* C, C++ ๋ฐ Java์์ ์ํธ ์ด์ฉ์ฑ."
#: src/welcome.md:20
msgid ""
"It is important to note that this course does not cover Android **application** \n"
"development in Rust, and that the Android-specific parts are specifically about\n"
"writing code for Android itself, the operating system. "
msgstr "์ด ๊ฐ์์์๋ ๋ฌ์คํธ๋ก ์๋๋ก์ด๋ **์ ํ๋ฆฌ์ผ์ด์
**์ ๊ฐ๋ฐํ๋ ๊ฒ์ ๋ค๋ฃจ์ง ์์ต๋๋ค. ์ด ๊ฐ์์์ ๋ค๋ฃจ๋ ์๋๋ก์ด๋ ํนํ๋ ๋ด์ฉ์ ์๋๋ก์ด๋ OS์ ์ผ๋ถ๋ฅผ ๋ฌ์คํธ๋ก ๊ฐ๋ฐํ๋ ๊ฒ์ ๋ํ ๊ฒ์
๋๋ค. "
#: src/welcome.md:24
msgid "## Non-Goals"
msgstr "## ์ ์ธ์ฌํญ"
#: src/welcome.md:26
msgid ""
"Rust is a large language and we won't be able to cover all of it in a few days.\n"
"Some non-goals of this course are:"
msgstr "๋ฌ์คํธ๋ ๋ฉฐ์น ๋ง์ ๋ชจ๋ ๊ฒ์ ๋ค๋ฃจ๊ธฐ์๋ ๋๋ฌด ํฐ ์ธ์ด์
๋๋ค. ๊ทธ๋์ ์๋์ ๊ฐ์๊ฒ์ ๋ชฉํ๋ก ํ์ง ์์ต๋๋ค:"
#: src/welcome.md:29
msgid ""
"* Learn how to use async Rust --- we'll only mention async Rust when\n"
" covering traditional concurrency primitives. Please see [Asynchronous\n"
" Programming in Rust](https://rust-lang.github.io/async-book/) instead for\n"
" details on this topic.\n"
"* Learn how to develop macros, please see [Chapter 19.5 in the Rust\n"
" Book](https://doc.rust-lang.org/book/ch19-06-macros.html) and [Rust by\n"
" Example](https://doc.rust-lang.org/rust-by-example/macros.html) instead."
msgstr ""
"* ๋น๋๊ธฐ์ ๋ฌ์คํธ ์ฌ์ฉ๋ฒ. ๊ฐ๋จํ๊ฒ ์ธ๊ธ์ ๋๋ ํ๊ฒ ์ง๋ง ์ข ๋ ์์ธํ ๋ด์ฉ์ [Asynchronous Programming in Rust](https://rust-lang.github.io/async-book/)๋ฅผ ์ฐธ์กฐํด์ฃผ์ธ์.\n"
"* ๋งคํฌ๋ก๋ฅผ ๊ฐ๋ฐํ๋ ๋ฐฉ๋ฒ. [Chapter 19.5 in the Rust Book](https://doc.rust-lang.org/book/ch19-06-macros.html)์ [Rust by Example](https://doc.rust-lang.org/rust-by-example/macros.html)๋ฅผ ์ฐธ์กฐํ์ธ์."
#: src/welcome.md:37
msgid "## Assumptions"
msgstr "## ๋
์ ์์ค์ ๋ํ ๊ฐ์ "
#: src/welcome.md:39
msgid ""
"The course assumes that you already know how to program. Rust is a statically\n"
"typed language and we will sometimes make comparisons with C and C++ to better\n"
"explain or contrast the Rust approach."
msgstr "๋ณธ ๊ฐ์๋ ์ฌ๋ฌ๋ถ์ด ํ๋ก๊ทธ๋๋ฐ ์์ฒด์ ๋ํด์๋ ์๊ณ ์๋ค๊ณ ๊ฐ์ ํฉ๋๋ค. ๋ฌ์คํธ๋ ์ ์ ํ์
์ธ์ด์ด๋ฉฐ, ๊ฐ์ข์์๋ C/C++ ์์ ๋น๊ต, ๋์กฐ๋ฅผ ํตํด ๋ฌ์คํธ๋ฅผ ์ค๋ช
ํ ๊ฒ์
๋๋ค."
#: src/welcome.md:43
msgid ""
"If you know how to program in a dynamically typed language such as Python or\n"
"JavaScript, then you will be able to follow along just fine too."
msgstr "C/C++์ ๋ชจ๋ฅด๋๋ผ๋ ๋์ ํ์
์ธ์ด(Python์ด๋ JavaScript ๋ฑ) ํ๋ก๊ทธ๋๋ฐ ๊ฒฝํ์ด ์๋ค๋ฉด ๋ฐ๋ผ์ค๋๋ฐ ํฐ ๋ฌธ์ ๋ ์์ ๊ฒ์
๋๋ค."
#: src/welcome.md:46 src/cargo/rust-ecosystem.md:19
#: src/cargo/code-samples.md:22 src/cargo/running-locally.md:68
#: src/welcome-day-1.md:14 src/welcome-day-1/what-is-rust.md:19
#: src/hello-world.md:20 src/hello-world/small-example.md:21 src/why-rust.md:9
#: src/why-rust/compile-time.md:14 src/why-rust/runtime.md:8
#: src/why-rust/modern.md:19 src/basic-syntax/compound-types.md:28
#: src/basic-syntax/slices.md:18 src/basic-syntax/string-slices.md:25
#: src/basic-syntax/functions.md:33 src/basic-syntax/functions-interlude.md:25
#: src/exercises/day-1/morning.md:9 src/exercises/day-1/for-loops.md:90
#: src/basic-syntax/variables.md:15 src/basic-syntax/type-inference.md:24
#: src/basic-syntax/static-and-const.md:46
#: src/basic-syntax/scopes-shadowing.md:23 src/memory-management/stack.md:26
#: src/memory-management/rust.md:12 src/ownership/move-semantics.md:20
#: src/ownership/moves-function-calls.md:18 src/ownership/copy-clone.md:33
#: src/ownership/borrowing.md:25 src/ownership/shared-unique-borrows.md:23
#: src/ownership/lifetimes-function-calls.md:27
#: src/ownership/lifetimes-data-structures.md:23
#: src/exercises/day-1/afternoon.md:9 src/structs/tuple-structs.md:35
#: src/structs/field-shorthand.md:25 src/enums/variant-payloads.md:33
#: src/methods.md:28 src/pattern-matching/destructuring-enums.md:33
#: src/pattern-matching/destructuring-arrays.md:19
#: src/pattern-matching/match-guards.md:20 src/exercises/day-2/morning.md:9
#: src/exercises/day-2/points-polygons.md:115 src/control-flow/blocks.md:40
#: src/control-flow/if-expressions.md:29
#: src/control-flow/if-let-expressions.md:19
#: src/control-flow/while-let-expressions.md:25
#: src/control-flow/match-expressions.md:25 src/std/option-result.md:16
#: src/std/string.md:28 src/std/vec.md:35 src/std/hashmap.md:36
#: src/std/box.md:32 src/std/box-recursive.md:31 src/std/rc.md:29
#: src/modules.md:26 src/modules/visibility.md:37 src/modules/filesystem.md:24
#: src/exercises/day-2/afternoon.md:5 src/traits.md:39
#: src/traits/iterator.md:30 src/traits/from-iterator.md:15
#: src/traits/operators.md:24 src/traits/drop.md:32 src/traits/default.md:38
#: src/generics/methods.md:23 src/generics/trait-bounds.md:33
#: src/generics/impl-trait.md:22 src/generics/closures.md:23
#: src/exercises/day-3/morning.md:5 src/error-handling/result.md:25
#: src/error-handling/try-operator.md:48
#: src/error-handling/converting-error-types-example.md:48
#: src/error-handling/deriving-error-enums.md:37
#: src/error-handling/dynamic-errors.md:34
#: src/error-handling/error-contexts.md:33 src/unsafe.md:26
#: src/unsafe/raw-pointers.md:24 src/unsafe/mutable-static-variables.md:30
#: src/unsafe/unions.md:19 src/unsafe/writing-unsafe-functions.md:31
#: src/unsafe/extern-functions.md:19 src/unsafe/unsafe-traits.md:28
#: src/exercises/day-3/afternoon.md:5 src/concurrency/threads.md:28
#: src/concurrency/channels.md:25 src/concurrency/shared_state/arc.md:27
#: src/concurrency/shared_state/example.md:21 src/concurrency/send-sync.md:18
#: src/concurrency/send-sync/sync.md:12 src/exercises/day-4/morning.md:10
#: src/android/interoperability/with-c/rust.md:81
#: src/exercises/day-4/afternoon.md:10
msgid ""
msgstr ""
#: src/welcome.md:48
msgid ""
"This is an example of a _speaker note_. We will use these to add additional\n"
"information to the slides. This could be key points which the instructor should\n"
"cover as well as answers to typical questions which come up in class."
msgstr "์ด๊ฒ์ \"๋ฐํ์ ๋
ธํธ\"์ ์์ ์
๋๋ค. ์ด ๋ถ๋ถ์ ์ด์ฉํด์ ์ถ๊ฐ ์ ๋ณด๋ฅผ ์ ๊ณตํฉ๋๋ค. ์ฃผ๋ก ๊ฐ์์ค์์ ์ ๊ธฐ๋๋ ์ผ๋ฐ์ ์ธ ์ง๋ฌธ์ ๋ํ ๋ต๋ณ๊ณผ ๊ฐ์ฌ๊ฐ ๋ค๋ฃจ์ด์ผ ํ ํค ํฌ์ธํธ์ผ ์ ์์ต๋๋ค."
#: src/running-the-course.md:1
msgid "# Running the Course"
msgstr "# ๊ฐ์ ์งํ ๋ฐฉ์"
#: src/running-the-course.md:3 src/running-the-course/course-structure.md:3
msgid "> This page is for the course instructor."
msgstr "> ๊ฐ์ฌ๋ฅผ ์ํ ์๋ด ํ์ด์ง์
๋๋ค."
#: src/running-the-course.md:5
msgid ""
"Here is a bit of background information about how we've been running the course\n"
"internally at Google."
msgstr "๋ค์์ ๊ตฌ๊ธ ๋ด๋ถ์์ ์ด ๊ณผ์ ์ ์ด๋ค์์ผ๋ก ์ด์ํด์๋์ง์ ๋ํ ๋ฐฐ๊ฒฝ ์ ๋ณด์
๋๋ค."
#: src/running-the-course.md:8
msgid "To run the course, you need to:"
msgstr "๊ฐ์๋ฅผ ์คํํ๊ธฐ ์ํ ์ค๋น:"
#: src/running-the-course.md:10
msgid ""
"1. Make yourself familiar with the course material. We've included speaker notes\n"
" on some of the pages to help highlight the key points (please help us by\n"
" contributing more speaker notes!). You should make sure to open the speaker\n"
" notes in a popup (click the link with a little arrow next to \"Speaker\n"
" Notes\"). This way you have a clean screen to present to the class."
msgstr "1. ๊ฐ์ ์๋ฃ๋ฅผ ์์งํฉ๋๋ค. ์ฃผ์ ์์ ์ ๊ฐ์กฐํ๊ธฐ ์ํด ์ผ๋ถ ํ์ด์ง์ ๊ฐ์ ์ฐธ์กฐ๋
ธํธ๋ฅผ ํฌํจํ์์ต๋๋ค. (์ถ๊ฐ์ ์ธ ๋
ธํธ๋ฅผ ์์ฑํ์ฌ ์ ๊ณตํด ์ฃผ์๋ฉด ๊ฐ์ฌํ๊ฒ ์ต๋๋ค.) ๊ฐ์ ์ฐธ์กฐ ๋
ธํธ์ ๋งํฌ๋ฅผ ๋๋ฅด๋ฉด ๊ฐ์๋
ธํธ๊ฐ ๋ณ๋์ ํ์
์ผ๋ก ๋ถ๋ฆฌ๊ฐ ๋๋ฉฐ, ๋ฉ์ธ ํ๋ฉด์์๋ ์ฌ๋ผ์ง๋๋ค."
#: src/running-the-course.md:16
msgid ""
"2. Decide on the dates. Since the course is large, we recommend that you\n"
" schedule the four days over two weeks. Course participants have said that\n"
" they find it helpful to have a gap in the course since it helps them process\n"
" all the information we give them."
msgstr "2. ๊ฐ์ ๋ ์ง๋ฅผ ์ ํฉ๋๋ค. ๊ฐ์ ๋ด์ฉ์ด ๋ง๊ณ ์๊ฐ์๋ค์ด ๋ชจ๋ ์ ๋ณด๋ฅผ ๊ณต๋ถํ ์ ์๋๋ก ์ค๊ฐ์ ํ์ ๋์ด 2์ฃผ์ ๊ฑธ์ณ 4์ผ์ ์ก๋ ๊ฒ์ ์ถ์ฒํฉ๋๋ค."
#: src/running-the-course.md:21
msgid ""
"3. Find a room large enough for your in-person participants. We recommend a\n"
" class size of 15-20 people. That's small enough that people are comfortable\n"
" asking questions --- it's also small enough that one instructor will have\n"
" time to answer the questions."
msgstr "3. ์ถฉ๋ถํ ๊ณต๊ฐ์ ํ๋ณดํฉ๋๋ค. ์๊ฐ์๊ณผ ๊ฐ์ฌ๊ฐ ์ง์๋ฅผ ํ๊ธฐ์ ์ถฉ๋ถํ ์๊ฐ๊ณผ ๊ณต๊ฐ์ด์ด์ผ ํฉ๋๋ค. 15์์ 20๋ช
๊ท๋ชจ์ ๊ณต๊ฐ์ ์ถ์ฒํฉ๋๋ค."
#: src/running-the-course.md:26
msgid ""
"4. On the day of your course, show up to the room a little early to set things\n"
" up. We recommend presenting directly using `mdbook serve` running on your\n"
" laptop (see the [installation instructions][5]). This ensures optimal performance with no lag as you change pages.\n"
" Using your laptop will also allow you to fix typos as you or the course\n"
" participants spot them."
msgstr "4. ๊ฐ์ ๋น์ผ ์กฐ๊ธ ์ผ์ฐ ์์ ์ค๋นํฉ๋๋ค. ๊ฐ์ฌ ๋
ธํธ๋ถ์์ `mdbook serve -d book/ko`๋ฅผ ์ด์ฉํด ์ง์ ํ๋ ์ ํ
์ด์
ํ๋ฉด ํ์ด์ง ์ด๋ ์์ ์ง์ฐ์ด ์์ต๋๋ค.([์ค์น ๋ฐฉ๋ฒ][5]์ ์ฐธ์กฐํ์ธ์.) ๋ํ, ๊ทธ๋ ๊ฒ ํ๋ฉด ๊ฐ์ ๋์ค ์คํ๋ฅผ ๋ฐ๊ฒฌํ์ ๋ ๊ทธ ์๋ฆฌ์์ ๋ฐ๋ก ์์ ๊ฐ๋ฅํ๋ค๋ ์ฅ์ ๋ ์์ต๋๋ค."
#: src/running-the-course.md:32
msgid ""
"5. Let people solve the exercises by themselves or in small groups. Make sure to\n"
" ask people if they're stuck or if there is anything you can help with. When\n"
" you see that several people have the same problem, call it out to the class\n"
" and offer a solution, e.g., by showing people where to find the relevant\n"
" information in the standard library."
msgstr "5. ์๊ฐ์๋ค์ด ์ง์ (๊ฐ๋ณ ํน์ ๊ทธ๋ฃน์ผ๋ก) ์ฐ์ต๋ฌธ์ ๋ฅผ ํ๋๋ก ํฉ๋๋ค. ์งํ์ด ๋งํ ๋์์ ํ์๋ก ํ๋ ์๊ฐ์์ด ์๋์ง ์์๋ก ํ์ธํฉ๋๋ค. ๋ง์ฝ ๊ฐ์ ๋ฌธ์ ๋ฅผ ์ฌ๋ฌ ์ฌ๋์ด ๊ฒช๊ณ ์๋ค๋ฉด, ๊ทธ ๋ฌธ์ ๋ฅผ ๊ฐ์์ค ์ ์ฒด ์ธ์์๊ฒ ์๋ฆฌ๊ณ ํด๊ฒฐ์ฑ
์ ์ ์ํฉ๋๋ค. ์๋ฅผ ๋ค์ด ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ด๋์ ๊ฐ๋ฉด ๊ทธ ๋ฌธ์ ์ ๋ํ ํด๋ต์ ์ฐพ์ ์ ์๋์ง ์๋ ค ์ค๋๋ค."
#: src/running-the-course.md:38
msgid ""
"6. If you don't skip the Android specific parts on Day 4, you will need an [AOSP\n"
" checkout][1]. Make a checkout of the [course repository][2] on the same\n"
" machine and move the `src/android/` directory into the root of your AOSP\n"
" checkout. This will ensure that the Android build system sees the\n"
" `Android.bp` files in `src/android/`."
msgstr "6. 4์ผ์ฐจ์ ์์ ์๋๋ก์ด๋ ๋ถ๋ถ์ ๊ฑด๋๋์ง ์๋๋ค๋ฉด [AOSP ์ฝ๋][1]๋ฅผ ์ฒดํฌ์์ํด์ผ ํฉ๋๋ค. ๊ทธ๋ฐ ๋ค์, ๊ฐ์ ์ปดํจํฐ์์ [๊ณผ์ ์ ์ฅ์][2]๋ฅผ ์ฒดํฌ์์ํ๊ณ `src/android/` ๋๋ ํฐ๋ฆฌ๋ฅผ AOSP ์ฝ๋์ ๋ฃจํธ๋ก ์ด๋ํฉ๋๋ค. ์ด๋ ๊ฒ ํ๋ฉด ์๋๋ก์ด๋ ๋น๋ ์์คํ
์์ ๊ณผ์ ์ฉ์ผ๋ก ์ถ๊ฐ๋ `Android.bp`ํ์ผ์ ์ธ์ํ ์ ์์ต๋๋ค."
#: src/running-the-course.md:44
msgid ""
" Ensure that `adb sync` works with your emulator or real device and pre-build\n"
" all Android examples using `src/android/build_all.sh`. Read the script to see\n"
" the commands it runs and make sure they work when you run them by hand."
msgstr " `adb sync` ๋ช
๋ ์ด๊ฐ ์๋ฎฌ๋ ์ดํฐ ํน์ ์ค์ ์ฅ์น์ ์๋ํ๋์ง ํ์ธํฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ `src/android/build_all.sh`๋ฅผ ์ํํด์ ๋ชจ๋ ์๋๋ก์ด๋ ์์ ๋ฅผ ๋ฏธ๋ฆฌ ๋น๋ํด ๋ณด์ธ์. ๊ทธ ์ ์คํฌ๋ฆฝํธ๋ฅผ ์ฝ๊ณ , ๊ทธ ์์์ ์ํ๋๋ ๋ช
๋ น์ด๋ค์ ํ์ธํ ํ ๊ฐ ๋ช
๋ น์ด๋ค์ ์๋์ผ๋ก ์คํํด๋ ์ ๋๋์ง ํ์ธํ์ธ์."
#: src/running-the-course.md:48
msgid ""
"That is all, good luck running the course! We hope it will be as much fun for\n"
"you as it has been for us!"
msgstr "์ด์ ์ค๋น๋ ๋๋ฌ์ต๋๋ค. ์ฐ๋ฆฌ๊ฐ ๊ทธ๋ฌ๋ฏ์ด ์ฌ๋ฌ๋ถ๋ค๋ ์ด ๊ฐ์๋ฅผ ์ฆ๊ธฐ์๊ธธ ๋ฐ๋๋๋ค!"
#: src/running-the-course.md:51
msgid ""
"Please [provide feedback][3] afterwards so that we can keep improving the\n"
"course. We would love to hear what worked well for you and what can be made\n"
"better. Your students are also very welcome to [send us feedback][4]!"
msgstr "๊ฐ์๋ฅผ ๊ณ์ ๊ฐ์ ํ ์ ์๋๋ก [ํผ๋๋ฐฑ][3]์ ์ ๊ณตํด ์ฃผ์ญ์์ค. ์ฐ๋ฆฌ๋ ๋ฌด์์ด ์ข์๊ณ , ๋ฌด์์ด ๋ชจ์๋๋์ง ๋ฃ๊ณ ์ถ์ต๋๋ค. ์๊ฐ์๋ค๋ก ๋ถํฐ์ [ํผ๋๋ฐฑ][4]๋ ํ์ํฉ๋๋ค!"
#: src/running-the-course.md:55
msgid ""
"[1]: https://source.android.com/docs/setup/download/downloading\n"
"[2]: https://github.com/google/comprehensive-rust\n"
"[3]: https://github.com/google/comprehensive-rust/discussions/86\n"
"[4]: https://github.com/google/comprehensive-rust/discussions/100\n"
"[5]: https://github.com/google/comprehensive-rust#building"
msgstr ""
"[1]: https://source.android.com/docs/setup/download/downloading\n"
"[2]: https://github.com/google/comprehensive-rust\n"
"[3]: https://github.com/google/comprehensive-rust/discussions/86\n"
"[4]: https://github.com/google/comprehensive-rust/discussions/100\n"
"[5]: https://github.com/google/comprehensive-rust#building"
#: src/running-the-course/course-structure.md:1
msgid "# Course Structure"
msgstr "# ๊ฐ์ ๊ตฌ์ฑ"
#: src/running-the-course/course-structure.md:5
msgid "The course is fast paced and covers a lot of ground:"
msgstr "๊ฐ์๋ ๋น ๋ฅธ ์๋๋ก ์งํ๋๋ฉฐ, ์๋ ๋ด์ฉ๋ค์ ๋ค๋ฃน๋๋ค:"
#: src/running-the-course/course-structure.md:7
msgid ""
"* Day 1: Basic Rust, ownership and the borrow checker.\n"
"* Day 2: Compound data types, pattern matching, the standard library.\n"
"* Day 3: Traits and generics, error handling, testing, unsafe Rust.\n"
"* Day 4: Concurrency in Rust and interoperability with other languages"
msgstr ""
"* 1์ผ์ฐจ: ๋ฌ์คํธ ๊ธฐ๋ณธ, ์์ ๊ถ(ownership)๊ณผ ๋น๋ฆผ(borrow) ์ฒดํฌ\n"
"* 2์ผ์ฐจ: ๋ณตํฉ ๋ฐ์ดํฐ ์ ํ, ํจํด ๋งค์นญ, ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ\n"
"* 3์ผ์ฐจ: ํธ๋ ์(trait)์ ์ ๋ค๋ฆญ(generic), ์ค๋ฅ ์ฒ๋ฆฌ, ํ
์คํธ, ์์ ํ์ง ์์ ๋ฌ์คํธ\n"
"* 4์ผ์ฐจ: ๋ฌ์คํธ์ ๋์์ฑ ๋ฐ ๋ค๋ฅธ ์ธ์ด์์ ์ํธ ์ด์ฉ์ฑ"
#: src/running-the-course/course-structure.md:12
msgid ""
"> **Exercise for Day 4:** Do you interface with some C/C++ code in your project\n"
"> which we could attempt to move to Rust? The fewer dependencies the better.\n"
"> Parsing code would be ideal."
msgstr "> **4์ผ์ฐจ ์ฐ์ต๋ฌธ์ :** ๋ฌ์คํธ ํ๋ก์ ํธ์์ C/C++๋ก ์์ฑ๋ ์ฝ๋๋ฅผ ์ด์ ํด์ ์ฐ๊ฒฐํ๋ ค๊ณ ํ๋ค๋ฉด ์ข
์์ฑ์ด ์ ์ ์๋ก ์ข์ต๋๋ค. ๊ตฌ๋ฌธ ๋ถ์ ์ฝ๋๋ผ๋ฉด ์ด์์ ์
๋๋ค."
#: src/running-the-course/course-structure.md:16
msgid "## Format"
msgstr "## ๊ฐ์ ํ์"
#: src/running-the-course/course-structure.md:18
msgid ""
"The course is meant to be very interactive and we recommend letting the\n"
"questions drive the exploration of Rust!"
msgstr "์ด ๊ฐ์๋ ๊ฐ์ฌ์ ์๊ฐ์์ด ์๋ฐฉํฅ์ผ๋ก ์ํตํ๋ฉด์ ์งํํ๋๋ก ๋์์ธ ๋์์ต๋๋ค. ๋ค์ํ ์ง๋ฌธ์ ํตํด ๋ฌ์คํธ์ ์ฌ๋ฌ ๋ถ๋ถ์ ํํํ ์ ์๋๋ก ํ์ธ์!"
#: src/running-the-course/keyboard-shortcuts.md:1
msgid "# Keyboard Shortcuts"
msgstr "# ๋จ์ถํค"
#: src/running-the-course/keyboard-shortcuts.md:3
msgid "There are several useful keyboard shortcuts in mdBook:"
msgstr "mdBook ์์คํ
(ํ ์ฌ์ดํธ)์์ ์ ์ฉํ ๋จ์ถํค๋ค ์
๋๋ค:"
#: src/running-the-course/keyboard-shortcuts.md:5
msgid ""
"* Arrow-Left: Navigate to the previous page.\n"
"* Arrow-Right: Navigate to the next page.\n"
"* Ctrl + Enter: Execute the code sample that has focus.\n"
"* s: Activate the search bar."
msgstr ""
"* ์ผ์ชฝ ํ์ดํ: ์ด์ ํ์ด์ง๋ก ์ด๋ํฉ๋๋ค.\n"
"* ์ค๋ฅธ์ชฝ ํ์ดํ: ๋ค์ ํ์ด์ง๋ก ์ด๋ํฉ๋๋ค.\n"
"* Ctrl + Enter: ํ์ฌ ํฌ์ปค์ค๋ฅผ ๋ฐ์ ์ฝ๋ ์ํ ๋ธ๋ก์ ์คํํฉ๋๋ค.\n"
"* s: ๊ฒ์์ฐฝ์ ํ์ฑํํฉ๋๋ค.(mdBook ๋ฌธ์ ๋ก 23.01.19 ๊ธฐ์ค ์์ด๋ก๋ง ๊ฐ๋ฅํฉ๋๋ค.)"
#: src/running-the-course/translations.md:1
msgid "# Translations"
msgstr "# ๋ค๋ฅธ ์ธ์ด๋ค"
#: src/running-the-course/translations.md:3
msgid ""
"The course has been translated into other languages by a set of wonderful\n"
"volunteers:"
msgstr "์ด ๊ณผ์ ์ ๋ค๋ฅธ ์ธ์ด๋ก๋ ์ ๊ณต๋ฉ๋๋ค. ๊ดํธ ์์ ๋ฒ์ญ์ ๋์ ์ฃผ์ ๋ถ๋ค์
๋๋ค."
#: src/running-the-course/translations.md:6
msgid ""
"* [Brazilian Portuguese][pt-BR] by [@rastringer] and [@hugojacob].\n"
"* [Korean][ko] by [@keispace], [@jiyongp] and [@jooyunghan]."
msgstr ""
"* [์์ด][en]\n"
"* [๋ธ๋ผ์ง ํฌ๋ฅดํฌ๊ฐ์ด][pt-BR] ([@rastringer], [@hugojacob]).\n"
"* [ํ๊ตญ์ด][ko] ([@keispace], [@jiyongp], [@jooyunghan])"
#: src/running-the-course/translations.md:9
msgid "Use the language picker in the top-right corner to switch between languages."
msgstr "ํ์ด์ง ์ค๋ฅธ์ชฝ ์์ ๋ฉ๋ด๋ฅผ ํตํด ๋ค๋ฅธ ์ธ์ด๋ก ์ ํํ ์ ์์ต๋๋ค."
#: src/running-the-course/translations.md:11
msgid ""
"If you want to help with this effort, please see [our instructions] for how to\n"
"get going. Translations are coordinated on the [issue tracker]."
msgstr ""
"์ด ๊ณผ์ ์ ๋ฒ์ญ ์์
์ ๋์์ ์ฃผ๊ณ ์ถ๋ค๋ฉด [์ฌ๊ธฐ][our instructions] ์ค๋ช
๋ ๋ด์ฉ์ ์ฐธ๊ณ ํ์ธ์.\n"
"์งํ ์ค์ธ ๋ฒ์ญ ์์
์ ๋ํ ๋ด์ฉ์ [์ด์ ํธ๋์ปค][issue tracker]๋ฅผ ์ฐธ๊ณ ํ์ธ์."
#: src/running-the-course/translations.md:14
msgid ""
"[pt-BR]: https://google.github.io/comprehensive-rust/pt-BR/\n"
"[ko]: https://google.github.io/comprehensive-rust/ko/\n"
"[@rastringer]: https://github.com/rastringer\n"
"[@hugojacob]: https://github.com/hugojacob\n"
"[@keispace]: https://github.com/keispace\n"
"[@jiyongp]: https://github.com/jiyongp\n"
"[@jooyunghan]: https://github.com/jooyunghan\n"
"[our instructions]: https://github.com/google/comprehensive-rust/blob/main/TRANSLATIONS.md\n"
"[issue tracker]: https://github.com/google/comprehensive-rust/issues/282"
msgstr ""
"[en]: https://google.github.io/comprehensive-rust/\n"
"[pt-BR]: https://google.github.io/comprehensive-rust/pt-BR/\n"
"[ko]: https://google.github.io/comprehensive-rust/ko/\n"
"[@rastringer]: https://github.com/rastringer\n"
"[@hugojacob]: https://github.com/hugojacob\n"
"[@keispace]: https://github.com/keispace\n"
"[@jiyongp]: https://github.com/jiyongp\n"
"[@jooyunghan]: https://github.com/jooyunghan\n"
"[our instructions]: https://github.com/google/comprehensive-rust/blob/main/TRANSLATIONS.md\n"
"[issue tracker]: https://github.com/google/comprehensive-rust/issues/282"
#: src/cargo.md:1
msgid "# Using Cargo"
msgstr "# ์นด๊ณ (Cargo) ์ฌ์ฉํ๊ธฐ"
#: src/cargo.md:3
msgid ""
"When you start reading about Rust, you will soon meet [Cargo](https://doc.rust-lang.org/cargo/), the standard tool\n"
"used in the Rust ecosystem to build and run Rust applications. Here we want to\n"
"give a brief overview of what Cargo is and how it fits into the wider ecosystem\n"
"and how it fits into this training."
msgstr "๋ฌ์คํธ๋ฅผ ์์ํ๋ ค๊ณ ํ๋ฉด ๋น์ ์ ๊ณง [Cargo](https://doc.rust-lang.org/cargo/)๋ผ๋, ๋ฌ์คํธ ์ํ๊ณ์์ ์ฌ์ฉํ๋ ํ์ค ๋น๋/์คํ ๋๊ตฌ๋ฅผ ๋ง๋ ๊ฒ ์
๋๋ค. ์ฌ๊ธฐ์๋ ์นด๊ณ ๊ฐ ๋ฌด์์ธ์ง, ๊ทธ๋ฆฌ๊ณ ์นด๊ณ ๊ฐ ๋ฌ์คํธ ์ํ๊ณ์์ ์ด๋ค ์ญํ ์ ํ๋์ง, ๊ทธ๋ฆฌ๊ณ ์ด ๊ฐ์์์ ์ด๋ป๊ฒ ์ฌ์ฉ๋ ์ง์ ๋ํด ๊ฐ๋ตํ ์ค๋ช
ํ๊ฒ ์ต๋๋ค."
#: src/cargo.md:8
msgid "## Installation"
msgstr "## ์ค์นํ๊ธฐ"
#: src/cargo.md:10
msgid "### Rustup (Recommended)"
msgstr "#### Rustup (์ถ์ฒ)"
#: src/cargo.md:12
msgid "You can follow the instructions to install cargo and rust compiler, among other standard ecosystem tools with the [rustup][3] tool, which is maintained by the Rust Foundation."
msgstr "๋ฌ์คํธ ์ฌ๋จ์์ ๊ด๋ฆฌํ๊ณ ์๋ [rustup][3] ๋๊ตฌ๋ฅผ ์ฌ์ฉํ์ฌ ์นด๊ณ ๋ฐ ๋ฌ์คํธ ์ปดํ์ผ๋ฌ ๋ฑ ํ์ค ๋๊ตฌ๋ฅผ ์ค์น ํ ์ ์์ต๋๋ค."
#: src/cargo.md:14
msgid "Along with cargo and rustc, Rustup will install itself as a command line utility that you can use to install/switch toolchains, setup cross compilation, etc."
msgstr "์นด๊ณ (cargo)์ ๋ฌ์คํธ ์ปดํ์ผ๋ฌ(rustc)์ ํจ๊ป, rustup์ ํด์ฒด์ธ์ ์ค์นํ๊ณ , ๋ค๋ฅธ ํด์ฒด์ธ์ผ๋ก ์ ํํ๊ณ , ํฌ๋ก์ค ์ปดํ์ผ ์ค์ ์ ํ๋ ์ผ์ ๋ด๋นํ๋ ์ปค๋งจ๋ ๋ผ์ธ ์ ํธ๋ฆฌํฐ ์
๋๋ค."
#: src/cargo.md:16
msgid "### Package Managers"
msgstr "### ํจํค์ง ๋งค๋์ "
#: src/cargo.md:18
msgid "#### Debian"
msgstr "#### ๋ฐ๋น์"
#: src/cargo.md:20
msgid "On Debian/Ubuntu, you can install Cargo, the Rust source and the [Rust formatter][6] with"
msgstr "๋ฐ๋น์์ด๋ ์ฐ๋ถํฌ์์ cargo, ๋ฌ์คํธ ์์ค์ฝ๋, [๋ฌ์คํธ ํฌ๋งคํฐ][6]๋ฅผ ์๋ ์ปค๋งจ๋๋ก ์ค์นํฉ๋๋ค."
#: src/cargo.md:22
msgid ""
"```shell\n"
"$ sudo apt install cargo rust-src rustfmt\n"
"```"
msgstr ""
"```shell\n"
"$ sudo apt install cargo rust-src rustfmt\n"
"```"
#: src/cargo.md:26
msgid ""
"This will allow [rust-analyzer][1] to jump to the definitions. We suggest using\n"
"[VS Code][2] to edit the code (but any LSP compatible editor works)."
msgstr "์ด๋ ๊ฒ ํ๋ฉด [rust-analyzer][1]๋ฅผ ์ด์ฉํด์ ํน์ ์ฌ๋ณผ์ด ์ ์๋ ์์น๋ก ์ฝ๊ฒ ์ด๋ํ ์ ์์ต๋๋ค. ์ฐ๋ฆฌ๋ ์๋ํฐ๋ก [VS Code][2]๋ฅผ ์ถ์ฒํฉ๋๋ค๋ง, ์ฌ์ค LSP๋ฅผ ์ง์ํ๋ค๋ฉด ์ด๋ค ์๋ํฐ๋ ๋ฌด๋ฐฉํฉ๋๋ค."
#: src/cargo.md:29
msgid "Some folks also like to use the [JetBrains][4] family of IDEs, which do their own analysis but have their own tradeoffs. If you prefer them, you can install the [Rust Plugin][5]. Please take note that as of January 2023 debugging only works on the CLion version of the JetBrains IDEA suite."
msgstr "์ด๋ค ์ฌ๋๋ค์ [JetBrains][4] ์ ํ๊ตฐ์ ์ ํธํ๊ธฐ๋ ํฉ๋๋ค. ์ด ์ ํ๋ค์ rust-analyzer ๋ฅผ ํ์ฉํ์ง ์๊ณ IDE ์์ฒด์ ์ผ๋ก ๊ตฌ๋ฌธ๋ถ์์ ํฉ๋๋ค. ๋ง์ฝ ์ด IDE๋ฅผ ์ค์นํ์
จ๋ค๋ฉด [Rust Plugin][5]๋ฅผ ์ค์นํ์๊ธฐ ๋ฐ๋๋๋ค. ๋ค๋ง 2023๋
1์ ๊ธฐ์ค, ๋๋ฒ๊น
์ JetBrains IDEA suite์ CLion ๋ฒ์ ์์๋ง ์๋ํ๋ค๋ ์ ์ ์ ์ํ์๊ธฐ ๋ฐ๋๋๋ค."
#: src/cargo.md:31
msgid ""
"[1]: https://rust-analyzer.github.io/\n"
"[2]: https://code.visualstudio.com/\n"
"[3]: https://rustup.rs/\n"
"[4]: https://www.jetbrains.com/clion/\n"
"[5]: https://www.jetbrains.com/rust/\n"
"[6]: https://github.com/rust-lang/rustfmt"
msgstr ""
"[1]: https://rust-analyzer.github.io/\n"
"[2]: https://code.visualstudio.com/\n"
"[3]: https://rustup.rs/\n"
"[4]: https://www.jetbrains.com/clion/\n"
"[5]: https://www.jetbrains.com/rust/\n"
"[6]: https://github.com/rust-lang/rustfmt"
#: src/cargo/rust-ecosystem.md:1
msgid "# The Rust Ecosystem"
msgstr "# ๋ฌ์คํธ ์ํ๊ณ"
#: src/cargo/rust-ecosystem.md:3
msgid "The Rust ecosystem consists of a number of tools, of which the main ones are:"
msgstr "๋ฌ์คํธ์ ์ํ๊ณ๋ ์ฌ๋ฌ๊ฐ์ง ๋๊ตฌ๋ค๋ก ๊ตฌ์ฑ๋์ด ์์ผ๋ฉฐ, ๊ทธ ์ค ์ค์ํ ๊ฒ๋ค์ ์๋์ ๊ฐ์ต๋๋ค:"
#: src/cargo/rust-ecosystem.md:5
msgid ""
"* `rustc`: the Rust compiler which turns `.rs` files into binaries and other\n"
" intermediate formats."
msgstr "* `rustc`: `.rs` ํ์ฅ์ ํ์ผ์ ๋ฐ์ด๋๋ฆฌ ํน์ ๋ค๋ฅธ ์ค๊ฐ ํ์์ผ๋ก ๋ณํํด์ฃผ๋ Rust ์ปดํ์ผ๋ฌ์
๋๋ค."
#: src/cargo/rust-ecosystem.md:8
msgid ""
"* `cargo`: the Rust dependency manager and build tool. Cargo knows how to\n"
" download dependencies hosted on and it will pass them to\n"
" `rustc` when building your project. Cargo also comes with a built-in test\n"
" runner which is used to execute unit tests."
msgstr "* `cargo`: ๋ฌ์คํธ ์์กด์ฑ ๊ด๋ฆฌ์ ๋ฐ ๋น๋๋๊ตฌ ์
๋๋ค. ์ฌ๋ฌ๋ถ์ ํ๋ก์ ํธ์ ๋ช
์๋ ์์กด์ฑ๋ค์ ์์ ์๋์ผ๋ก ๋ค์ด๋ก๋ ๋ฐ๊ณ , ๊ทธ ์์ค์ฝ๋๋ฅผ `rustc`๋ก ์ ๋ฌํ์ฌ ๋น๋๋ฅผ ์ํต๋๋ค. ๋ํ ์ ๋ ํ
์คํธ๋ฅผ ์คํํ๋ ํ
์คํธ ๋ฌ๋๋ฅผ ๋ด์ฅํ๊ณ ์์ต๋๋ค."
#: src/cargo/rust-ecosystem.md:13
msgid ""
"* `rustup`: the Rust toolchain installer and updater. This tool is used to\n"
" install and update `rustc` and `cargo` when new versions of Rust is released.\n"
" In addition, `rustup` can also download documentation for the standard\n"
" library. You can have multiple versions of Rust installed at once and `rustup`\n"
" will let you switch between them as needed."
msgstr "* `rustup`: ๋ฌ์คํธ ํด์ฒด์ธ ์ค์น ํ๋ก๊ทธ๋จ ๋ฐ ์
๋ฐ์ดํธ ํ๋ก๊ทธ๋จ. ์ด ๋๊ตฌ๋ ์ ๋ฒ์ ์ ๋ฌ์คํธ๊ฐ ์ถ์๋ ๋ `rustc` ๋ฐ `cargo` ์ค์นํ๊ณ ์
๋ฐ์ดํธํ๋ ๋ฐ ์ฌ์ฉ๋ฉ๋๋ค. ๋ํ `rustup`์ ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๋ํ ๋ฌธ์๋ฅผ ๋ค์ด๋ก๋ํ ์๋ ์์ต๋๋ค. ํ ๋ฒ์ ์ฌ๋ฌ ๋ฒ์ ์ ๋ฌ์คํธ๋ฅผ ์ค์นํ ์ ์์ผ๋ฉฐ `rustup`์ ํตํด ํ์์ ๋ฐ๋ผ ์ด๋ค ๋ฒ์ ์ ์ ํํ ์ ์์ต๋๋ค."
#: src/cargo/rust-ecosystem.md:21 src/hello-world.md:25
#: src/hello-world/small-example.md:27 src/why-rust/runtime.md:10
#: src/why-rust/modern.md:21 src/basic-syntax/compound-types.md:30
#: src/error-handling/try-operator.md:50
#: src/error-handling/converting-error-types-example.md:50
#: src/concurrency/threads.md:30
msgid "Key points:"
msgstr "ํค ํฌ์ธํธ:"
#: src/cargo/rust-ecosystem.md:23
msgid ""
"* Rust has a rapid release schedule with a new release coming out\n"
" every six weeks. New releases maintain backwards compatibility with\n"
" old releases --- plus they enable new functionality."
msgstr "* ๋ฌ์คํธ๋ 6์ฃผ๋ง๋ค ์๋ก์ด ๋ฆด๋ฆฌ์ฆ๊ฐ ๋ฐํ๋๋ฉฐ ์ด์ ๋ฆด๋ฆฌ์ฆ์์ ํธํ์ฑ์ ์ ์งํ๊ณ ์์ต๋๋ค."
#: src/cargo/rust-ecosystem.md:27
msgid "* There are three release channels: \"stable\", \"beta\", and \"nightly\"."
msgstr "* ๋ฆด๋ฆฌ์ฆ๋ 3๊ฐ์ง ๋ฒ์ ์ผ๋ก ์ ๊ณต๋ฉ๋๋ค: \"stable\", \"beta\" ๊ทธ๋ฆฌ๊ณ \"nightly\"."
#: src/cargo/rust-ecosystem.md:29
msgid ""
"* New features are being tested on \"nightly\", \"beta\" is what becomes\n"
" \"stable\" every six weeks."
msgstr "* ์๋ก์ด ๊ธฐ๋ฅ์ \"nightly\" -> \"beta\" -(6์ฃผ ํ)-> \"stable\" ๋ก ๋ณ๊ฒฝ๋ฉ๋๋ค."
#: src/cargo/rust-ecosystem.md:32
msgid ""
"* Rust also has [editions]: the current edition is Rust 2021. Previous\n"
" editions were Rust 2015 and Rust 2018."
msgstr "* ๋ฌ์คํธ๋ [์๋์
][editions]์ผ๋ก ๊ตฌ๋ถ๋ฉ๋๋ค. ํ์ฌ๋ Rust 2021 ์๋์
์
๋๋ค. ์ด ์ ์๋์
์ผ๋ก Rust 2015์ Rust 2018์ด ์์ต๋๋ค."
#: src/cargo/rust-ecosystem.md:35
msgid ""
" * The editions are allowed to make backwards incompatible changes to\n"
" the language."
msgstr " * ์๋์
์ ์ด์ ์๋์
๊ณผ ํธํ์ด ๋์ง ์์ ์ ์์ต๋๋ค."
#: src/cargo/rust-ecosystem.md:38
msgid ""
" * To prevent breaking code, editions are opt-in: you select the\n"
" edition for your crate via the `Cargo.toml` file."
msgstr " * ์๋์
์ด ๋ฐ๋๋ฉด์ ํ๋ก๊ทธ๋จ์ด ์๋์น ์๊ฒ ๊นจ์ง๋ ๋ฌธ์ ๋ฅผ ๋ง๊ธฐ ์ํด, ๊ฐ ํ๋ก๊ทธ๋จ์ ์์ ์ด ๋น๋๋ ์๋์
์ ๋ช
์์ ์ผ๋ก `Cargo.toml`์ ์ง์ ํด์ผ ํฉ๋๋ค."
#: src/cargo/rust-ecosystem.md:41
msgid ""
" * To avoid splitting the ecosystem, Rust compilers can mix code\n"
" written for different editions."
msgstr " * ๋ฌ์คํธ ์ํ๊ณ๊ฐ ์๋์
๋ณ๋ก ํํธํ ๋๋ ๊ฒ์ ๋ง๊ธฐ ์ํด, ๋ฌ์คํธ ์ปดํ์ผ๋ฌ๋ ์๋ก ๋ค๋ฅธ ์๋์
์์ ์์ฑ๋ ์ฝ๋๋ค์ ํ๋์ ๋ฐ์ด๋๋ฆฌ๋ก ๋ฌถ์ ์ ์์ต๋๋ค."
#: src/cargo/rust-ecosystem.md:44
msgid " * Mention that it is quite rare to ever use the compiler directly not through `cargo` (most users never do)."
msgstr " * `cargo`๋ฅผ ์ฌ์ฉํ์ง ์๊ณ ์ปดํ์ผ๋ฌ๋ฅผ ์ง์ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ๋ ๊ฑฐ์ ์์์ ์ธ๊ธํด ์ฃผ์๊ธฐ ๋ฐ๋๋๋ค."
#: src/cargo/rust-ecosystem.md:46
msgid ""
" * It might be worth alluding that Cargo itself is an extremely powerful and comprehensive tool. It is capable of many advanced features including but not limited to: \n"
" * Project/package structure\n"
" * [workspaces]\n"
" * Dev Dependencies and Runtime Dependency management/caching\n"
" * [build scripting]\n"
" * [global installation]\n"
" * It is also extensible with sub command plugins as well (such as [cargo clippy]).\n"
" * Read more from the [official Cargo Book]"
msgstr ""
" * ์นด๊ณ ์์ฒด๊ฐ ๋งค์ฐ ๊ฐ๋ ฅํ๊ณ ํฌ๊ด์ ์ธ ๋๊ตฌ์์ ์ ๊ทน์ ์ผ๋ก ์๋ฆฌ์ธ์.\n"
" ์นด๊ณ ๋ ๋ค์๊ณผ ๊ฐ์ ๋ค์ํ ๊ณ ๊ธ ๊ธฐ๋ฅ์ ์ ๊ณตํฉ๋๋ค.\n"
" * ํ๋ก์ ํธ/ํจํค์ง ๊ตฌ์กฐํ\n"
" * [์ํฌ์คํ์ด์ค][workspaces]\n"
" * ๊ฐ๋ฐ/๋ฐํ์ ์ข
์์ฑ ๊ด๋ฆฌ ๋ฐ ์บ์ฑ\n"
" * [๋น๋ ์คํฌ๋ฆฝํธ][build scripting]\n"
" * [์ ์ญ ์ค์น][global installation]\n"
" * [cargo clippy]์ ๊ฐ์ ํ์ ํ๋ฌ๊ทธ์ธ์ผ๋ก ํ์ฅ ๊ฐ๋ฅ\n"
" * [๊ณต์ Cargo Book][official Cargo Book]์์ ์์ธํ ์ฌํญ์ ํ์ธํ์๊ธฐ ๋ฐ๋๋๋ค."
#: src/cargo/rust-ecosystem.md:55
msgid "[editions]: https://doc.rust-lang.org/edition-guide/"
msgstr "[editions]: https://doc.rust-lang.org/edition-guide/"
#: src/cargo/rust-ecosystem.md:57
msgid "[workspaces]: https://doc.rust-lang.org/cargo/reference/workspaces.html"
msgstr "[workspaces]: https://doc.rust-lang.org/cargo/reference/workspaces.html"
#: src/cargo/rust-ecosystem.md:59
msgid "[build scripting]: https://doc.rust-lang.org/cargo/reference/build-scripts.html"
msgstr "[build scripting]: https://doc.rust-lang.org/cargo/reference/build-scripts.html"
#: src/cargo/rust-ecosystem.md:61
msgid "[global installation]: https://doc.rust-lang.org/cargo/commands/cargo-install.html"
msgstr "[global installation]: https://doc.rust-lang.org/cargo/commands/cargo-install.html"
#: src/cargo/rust-ecosystem.md:63
msgid "[cargo clippy]: https://github.com/rust-lang/rust-clippy"
msgstr "[cargo clippy]: https://github.com/rust-lang/rust-clippy"
#: src/cargo/rust-ecosystem.md:65
msgid "[official Cargo Book]: https://doc.rust-lang.org/cargo/"
msgstr "[official Cargo Book]: https://doc.rust-lang.org/cargo/"
#: src/cargo/code-samples.md:1
msgid "# Code Samples in This Training"
msgstr "# ๊ฐ์์์์ ์ฝ๋ ์ํ"
#: src/cargo/code-samples.md:3
msgid ""
"For this training, we will mostly explore the Rust language through examples\n"
"which can be executed through your browser. This makes the setup much easier and\n"
"ensures a consistent experience for everyone."
msgstr "์ด ๊ฐ์์๋ฃ์ ์๋ ๋ชจ๋ ์์ ๋ ๋ธ๋ผ์ฐ์ ์์ ๋ฐ๋ก ์ํ ๊ฐ๋ฅํฉ๋๋ค. ์ด๋ ๊ฒ ํ ์ด์ ๋, ์ค๋น ๊ณผ์ ์ ๋จ์ํ ์ํค๊ณ , ๋ชจ๋๊ฐ ๊ฐ์ ํ๊ฒฝ์์ ์์
ํ ์ ์๋๋ก ํ๊ธฐ ์ํจ์
๋๋ค."
#: src/cargo/code-samples.md:7
msgid ""
"Installing Cargo is still encouraged: it will make it easier for you to do the\n"
"exercises. On the last day, we will do a larger exercise which shows you how to\n"
"work with dependencies and for that you need Cargo."
msgstr "๊ทธ๋ผ์๋ ๋ถ๊ตฌํ๊ณ , ์นด๊ณ (cargo)๋ฅผ ์ง์ ์ค์นํ๋ ๊ฒ์ ๊ฐ๋ ฅ ๊ถ์ฅํฉ๋๋ค. ์ด๊ฒ ๊ณผ์ ์์ฑ์ ๋ ๋์์ด ๋ ๊ฒ๋๋ค. ๋ํ, ๋ง์ง๋ง ๋ ์๋ ์์กด์ฑ์ด ์๋ ์์ ๋ฅผ ์์
ํ๊ฒ ๋ ํ
๋ฐ, ๊ทธ ๋์๋ ์ด์ฐจํผ ์นด๊ณ ๊ฐ ํ์ํฉ๋๋ค."
#: src/cargo/code-samples.md:11
msgid "The code blocks in this course are fully interactive:"
msgstr "์ด ๊ฐ์ ์๋ฃ์ ์ฝ๋ ๋ธ๋ก๋ค์ ์ ๋ถ ์ธํฐ์ํฐ๋ธ ํฉ๋๋ค:"
#: src/cargo/code-samples.md:13
msgid ""
"```rust,editable\n"
"fn main() {\n"
" println!(\"Edit me!\");\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn main() {\n"
" println!(\"Edit me!\");\n"
"}\n"
"```"
#: src/cargo/code-samples.md:19
msgid ""
"You can use Ctrl + Enter to execute the code when focus is in the\n"
"text box."
msgstr "์ฝ๋ ๋ธ๋ก์ ํฌ์ปค์ค๋ฅผ ๋๊ณ Ctrl + Enter๋ฅผ ๋๋ฌ ์คํํด ๋ณผ ์ ์์ต๋๋ค."
#: src/cargo/code-samples.md:24
msgid ""
"Most code samples are editable like shown above. A few code samples\n"
"are not editable for various reasons:"
msgstr "๊ฐ์์์ ๋๋ถ๋ถ์ ์ฝ๋ ์ํ์ ์์ ๊ฐ์ด ์์ ํ ์ ์์ง๋ง ์ผ๋ถ ์ฝ๋๋ ๋ค์๊ณผ ๊ฐ์ ์ด์ ๋ก ์์ ํ ์ ์์ต๋๋ค:"
#: src/cargo/code-samples.md:27
msgid ""
"* The embedded playgrounds cannot execute unit tests. Copy-paste the\n"
" code and open it in the real Playground to demonstrate unit tests."
msgstr "* ์ ๋ ํ
์คํธ๋ ๋ด์ฅ ํ๋ ์ด๊ทธ๋ผ์ด๋์์ ์คํ์ด ์๋ฉ๋๋ค. ์ธ๋ถ ํ๋ ์ด๊ทธ๋ผ์ด๋ ์ฌ์ดํธ์ ๋ถ์ฌ๋ฃ์ด ํ
์คํธ๋ฅผ ์คํํ์๊ธฐ ๋ฐ๋๋๋ค."
#: src/cargo/code-samples.md:30
msgid ""
"* The embedded playgrounds lose their state the moment you navigate\n"
" away from the page! This is the reason that the students should\n"
" solve the exercises using a local Rust installation or via the\n"
" Playground."
msgstr "* ๋ด์ฅ๋ ํ๋ ์ด๊ทธ๋ผ์ด๋์์๋ ํ์ด์ง ์ด๋์ ์์ฑ๋ ๋ชจ๋ ๋ด์ฉ์ด ์ฌ๋ผ์ง๋๋ค. ๋ฐ๋ผ์ ๋ก์ปฌ ํ๊ฒฝ์ด๋ ์ธ๋ถ ํ๋ ์ด๊ทธ๋ผ์ด๋ ์ฌ์ดํธ์์ ์ฐ์ต๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ๊ฒ์ด ์ข์ต๋๋ค."
#: src/cargo/running-locally.md:1
msgid "# Running Code Locally with Cargo"
msgstr "# ๋ก์ปฌ ํ๊ฒฝ์ ์นด๊ณ "
#: src/cargo/running-locally.md:3
msgid ""
"If you want to experiment with the code on your own system, then you will need\n"
"to first install Rust. Do this by following the [instructions in the Rust\n"
"Book][1]. This should give you a working `rustc` and `cargo`. At the time of\n"
"writing, the latest stable Rust release has these version numbers:"
msgstr "๋ง์ฝ ๊ฐ์ธ์ฉ ์ปดํจํฐ์์ ์ฝ๋๋ฅผ ์คํํด๋ณด๋ ค๋ฉด ๋จผ์ ๋ฌ์คํธ๋ฅผ ์ค์นํด์ผ ํฉ๋๋ค. [Rust Book][1]์ ์ง์นจ์ ๋ฐ๋ผ `rustc`์ `cargo`๋ฅผ ํจ๊ป ์ค์น ํ์๊ธฐ ๋ฐ๋๋๋ค. ์ค์น ํ ์๋ ์ปค๋งจ๋๋ฅผ ํตํด ๊ฐ ํด์ ๋ฒ์ ์ ํ์ธ ํ ์ ์์ต๋๋ค:"
#: src/cargo/running-locally.md:8
msgid ""
"```shell\n"
"% rustc --version\n"
"rustc 1.61.0 (fe5b13d68 2022-05-18)\n"
"% cargo --version\n"
"cargo 1.61.0 (a028ae4 2022-04-29)\n"
"```"
msgstr ""
#: src/cargo/running-locally.md:15
msgid ""
"With this is in place, then follow these steps to build a Rust binary from one\n"
"of the examples in this training:"
msgstr "์ ์์ ์ผ๋ก ์ค์น๊ฐ ๋์์ผ๋ฉด ๊ฐ์์ ์ฝ๋ ๋ธ๋ก์ค ํ๋๋ฅผ ์๋ ๋จ๊ณ๋ฅผ ๋ฐ๋ผ ๋ก์ปฌ์์ ์คํํ ์ ์์ต๋๋ค:"
#: src/cargo/running-locally.md:18
msgid "1. Click the \"Copy to clipboard\" button on the example you want to copy."
msgstr "1. ์์ ๋ธ๋ก์ ์๋ \"Copy to clipboard\"๋ฒํผ์ ํด๋ฆญํด์ ๋ณต์ฌํฉ๋๋ค."
#: src/cargo/running-locally.md:20
msgid "2. Use `cargo new exercise` to create a new `exercise/` directory for your code:"
msgstr "2. ํฐ๋ฏธ๋์์ `cargo new exercise`๋ฅผ ์
๋ ฅํด์ ์๋ก์ด `exercise/` ํด๋๋ฅผ ๋ง๋ญ๋๋ค:"
#: src/cargo/running-locally.md:22
msgid ""
" ```shell\n"
" $ cargo new exercise\n"
" Created binary (application) `exercise` package\n"
" ```"
msgstr ""
#: src/cargo/running-locally.md:27
msgid "3. Navigate into `exercise/` and use `cargo run` to build and run your binary:"
msgstr "3. `exercise/` ํด๋๋ก ์ด๋ํ ํ, `cargo run` ์ปค๋งจ๋๋ก ์ฝ๋๋ฅผ ์คํํฉ๋๋ค:"
#: src/cargo/running-locally.md:29
msgid ""
" ```shell\n"
" $ cd exercise\n"
" $ cargo run\n"
" Compiling exercise v0.1.0 (/home/mgeisler/tmp/exercise)\n"
" Finished dev [unoptimized + debuginfo] target(s) in 0.75s\n"
" Running `target/debug/exercise`\n"
" Hello, world!\n"
" ```"
msgstr ""
#: src/cargo/running-locally.md:38
msgid ""
"4. Replace the boiler-plate code in `src/main.rs` with your own code. For\n"
" example, using the example on the previous page, make `src/main.rs` look like"
msgstr "4. `src/main.rs`์ ์ฝ๋๋ฅผ ์์ฑํฉ๋๋ค. ์๋ฅผ ๋ค์ด ์ด์ ํ์ด์ง์ ์์ค๋ฅผ ์๋์ ๊ฐ์ด `src/main.rs`์ ์์ฑํฉ๋๋ค"
#: src/cargo/running-locally.md:41
msgid ""
" ```rust\n"
" fn main() {\n"
" println!(\"Edit me!\");\n"
" }\n"
" ```"
msgstr ""
#: src/cargo/running-locally.md:47
msgid "5. Use `cargo run` to build and run your updated binary:"
msgstr "5. `cargo run`์ปค๋งจ๋๋ก ์์ค๋ฅผ ๋น๋ํ๊ณ ์คํํฉ๋๋ค:"
#: src/cargo/running-locally.md:49
msgid ""
" ```shell\n"
" $ cargo run\n"
" Compiling exercise v0.1.0 (/home/mgeisler/tmp/exercise)\n"
" Finished dev [unoptimized + debuginfo] target(s) in 0.24s\n"
" Running `target/debug/exercise`\n"
" Edit me!\n"
" ```"
msgstr ""
#: src/cargo/running-locally.md:57
msgid ""
"6. Use `cargo check` to quickly check your project for errors, use `cargo build`\n"
" to compile it without running it. You will find the output in `target/debug/`\n"
" for a normal debug build. Use `cargo build --release` to produce an optimized\n"
" release build in `target/release/`."
msgstr "6. `cargo check`์ปค๋งจ๋๋ ๋น ๋ฅด๊ฒ ์๋ฌ๋ฅผ ํ์ธํ ์ ์์ต๋๋ค. `cargo build`๋ ์คํ์์ด ์ปดํ์ผ๋ง ํฉ๋๋ค. ์ด ๊ฒฝ์ฐ์ `target/debug/`ํด๋์์ output์ ํ์ธ ํ ์ ์์ต๋๋ค. `cargo build --release`์ปค๋งจ๋๋ ๋ฆด๋ฆฌ์ฆ ๋ฒ์ ์ฉ ์ต์ ํ๋ฅผ ์ผ์ ์ปดํ์ผํ๋ฉฐ `target/release/`ํด๋์์ ํ์ธ ํ ์ ์์ต๋๋ค."
#: src/cargo/running-locally.md:62
msgid ""
"7. You can add dependencies for your project by editing `Cargo.toml`. When you\n"
" run `cargo` commands, it will automatically download and compile missing\n"
" dependencies for you."
msgstr "7. `Cargo.toml`ํ์ผ์๋ ์์กด์ฑ ํจํค์ง๋ฅผ ์ถ๊ฐํ ์ ์์ต๋๋ค. `cargo`์ปค๋งจ๋๋ฅผ ์คํํ๋ฉด ์๋์ผ๋ก ์์กด์ฑ ํจํค์ง๋ฅผ ๋ค์ด๋ก๋ํ๊ณ ์ปดํ์ผ ๊น์ง ํด ์ค๋๋ค."
#: src/cargo/running-locally.md:66
msgid "[1]: https://doc.rust-lang.org/book/ch01-01-installation.html"
msgstr ""
#: src/cargo/running-locally.md:70
msgid ""
"Try to encourage the class participants to install Cargo and use a\n"
"local editor. It will make their life easier since they will have a\n"
"normal development environment."
msgstr "์๊ฐ์๋ค์ด ์นด๊ณ ๋ฅผ ์ค์นํ๊ณ ๋ก์ปฌ ํธ์ง๊ธฐ๋ฅผ ์ด์ฉํ๋๋ก ๋
๋ คํ์ธ์. ์กฐ๊ธ ๊ท์ฐฎ์ ์๋ ์์ง๋ง, ์ด๋ ๊ฒ ํด์ผ๋ง ์ข ๋ ์ค์ ์ ๊ฐ๊น์ด ๊ฐ๋ฐํ๊ฒฝ์ ๊ฐ์ถ๊ฒ ๋๋ ๊ฒ์
๋๋ค."
#: src/welcome-day-1.md:1
msgid "# Welcome to Day 1"
msgstr "# 1์ผ์ฐจ ๊ฐ์"
#: src/welcome-day-1.md:3
msgid ""
"This is the first day of Comprehensive Rust. We will cover a lot of ground\n"
"today:"
msgstr "๊ฐ์ ์ฒซ ๋ ์
๋๋ค. ์ค๋ ๋ฐฐ์ธ ๊ฒ์ด ์ฐธ ๋ง์ต๋๋ค:"
#: src/welcome-day-1.md:6
msgid ""
"* Basic Rust syntax: variables, scalar and compound types, enums, structs,\n"
" references, functions, and methods."
msgstr "* ๋ฌ์คํธ ๊ธฐ๋ณธ ๋ฌธ๋ฒ: ๋ณ์, ์ค์นผ๋ผ / ๋ณตํฉ ํ์
, ์ด๊ฑฐํ, ๊ตฌ์กฐ์ฒด, ์ฐธ์กฐํ, ํจ์์ ๋ฉ์๋."
#: src/welcome-day-1.md:9
msgid ""
"* Memory management: stack vs heap, manual memory management, scope-based memory\n"
" management, and garbage collection."
msgstr "* ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ: ์คํ๊ณผ ํ, ์๋ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ, ์ค์ฝํ(๋ฒ์)๊ธฐ๋ฐ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ, ๊ฐ๋น์ง ์ปฌ๋ ์
(GC)"
#: src/welcome-day-1.md:12
msgid "* Ownership: move semantics, copying and cloning, borrowing, and lifetimes."
msgstr "* ์์ ๊ถ: Move ๋ฌธ๋ฒ, ๋ณต์ฌ์ ๋ณต์ , ๋น๋ฆผ, ์๋ช
."
#: src/welcome-day-1.md:16
msgid "Please remind the students that:"
msgstr "ํ์๋ค์๊ฒ ๋ค์์ ์๊ธฐ์์ผ ์ฃผ์๊ธฐ ๋ฐ๋๋๋ค:"
#: src/welcome-day-1.md:18
msgid ""
"* They should ask questions when they get them, don't save them to the end.\n"
"* The class is meant to be interactive and discussions are very much encouraged!\n"
" * As an instructor, you should try to keep the discussions relevant, i.e.,\n"
" keep the related to how Rust does things vs some other language. It can be\n"
" hard to find the right balance, but err on the side of allowing discussions\n"
" since they engage people much more than one-way communication.\n"
"* The questions will likely mean that we talk about things ahead of the slides.\n"
" * This is perfectly okay! Repetition is an important part of learning. Remember\n"
" that the slides are just a support and you are free to skip them as you\n"
" like."
msgstr ""
"* ๊ถ๊ธํ ์ ์ด ์์ผ๋ฉด ์ฃผ์ ํ์ง ๋ง๊ณ ์ง๋ฌธ ํด์ผ ํฉ๋๋ค.\n"
"* ์ด ์์
์ ์ํธ์์ฉ์ด ์ค์ํ๊ณ ํ ๋ก ์ ๊ถ์ฅํฉ๋๋ค.\n"
" * ๊ฐ์ฌ๋ก์ ํ ๋ก ์ด ์๊ธธ๋ก ์์ง ์๊ฒ ์ฃผ์ํ์ธ์. ์๋ฅผ ๋ค์ด ๋ฌ์คํธ์ ๋ค๋ฅธ ์ธ์ด๋ค์ ๋น๊ตํ๋ค๋ ์ง ํ๋ ๊ฒ์ ์ข์ต๋๋ค. ์ ์ ํ ๊ท ํ์ ์ฐพ๊ธฐ ์ ๋งคํ ๊ฒฝ์ฐ๋ผ๋ฉด ํ ๋ก ์ ํ์ฉํ๋ ์ชฝ์ด ์ผ๋ฐฉ์ ์ธ ๊ฐ์๋ณด๋ค๋ ๋ ๋ง์ ์ฌ๋๋ค์ ์ฐธ์ฌ๋ฅผ ์ด๋์ด ๋ผ ์ ์์ต๋๋ค.\n"
"* ์ง๋ฌธ์ด ์ฌ๋ผ์ด๋๋ณด๋ค ์์๊ฐ๋ ๊ด์ฐฎ์ต๋๋ค.\n"
" * ํ์ต์ ์์ด์ ๋ฐ๋ณต์ ๋งค์ฐ ์ค์ํฉ๋๋ค. ์ฌ๋ผ์ด๋๋ ๊ทธ์ ๋์์ ์ค ๋ฟ, ์ํ๋ ๋๋ก ๊ฑด๋๋์ด๋ ๋ฉ๋๋ค."
#: src/welcome-day-1.md:29
msgid ""
"The idea for the first day is to show _just enough_ of Rust to be able to speak\n"
"about the famous borrow checker. The way Rust handles memory is a major feature\n"
"and we should show students this right away."
msgstr "์ฒซ ๋ ๊ฐ์์ ๋ชฉํ๋, ๋ฌ์คํธ์์ ๊ทธ ์ ๋ช
ํ ๋น๋ฆผ ํ์ธ์ ๋ํด์ ์ด์ผ๊ธฐ ํ ์ ์์ ์ ๋ ๊น์ง๋ง ๋ฌ์คํธ๋ฅผ ์๊ฐํ๋ ๊ฒ์
๋๋ค. ๋ฌ์คํธ์ ๊ฐ์ฅ ๋
ํนํ ํน์ง์ด ๋ฉ๋ชจ๋ฆฌ๋ฅผ ๋ค๋ฃจ๋ ๋ฐฉ์์ด๊ธฐ ๋๋ฌธ์, ํ์๋ค์๊ฒ ์ด ๋ถ๋ถ ์ ์ฐ์ ์ ์ผ๋ก ๋ณด์ฌ์ฃผ๋ ค ํฉ๋๋ค."
#: src/welcome-day-1.md:33
msgid ""
"If you're teaching this in a classroom, this is a good place to go over the\n"
"schedule. We suggest splitting the day into two parts (following the slides):"
msgstr "๋ง์ฝ ๋น์ ์ด ๊ฐ์์ค์์ ๊ฐ๋ฅด์น๊ณ ์๋ค๋ฉด, ์ด ์ฌ๋ผ์ด๋๋ ์ผ์ ์ ๊ฒํ ํ๊ธฐ์ ์ ํฉํ ๊ณณ์
๋๋ค. ํ๋ฃจ์น ๊ฐ์๋ฅผ ์๋์ฒ๋ผ ์ค์ ์คํ๋ก ๋๋์ด ์งํํ๋ ๊ฒ์ ์ถ์ฒํฉ๋๋ค. (์ฌ๋ผ์ด๋๊ฐ ๊ทธ๋ฐ์์ผ๋ก๋๋์ด ์์ต๋๋ค.)"
#: src/welcome-day-1.md:36
msgid ""
"* Morning: 9:00 to 12:00,\n"
"* Afternoon: 13:00 to 16:00."
msgstr ""
"* ์ค์ : 9:00 ~ 12:00,\n"
"* ์คํ: 13:00 ~ 16:00."
#: src/welcome-day-1.md:39
msgid ""
"You can of course adjust this as necessary. Please make sure to include breaks,\n"
"we recommend a break every hour!"
msgstr "๋ฌผ๋ก ํ์์ ๋ฐ๋ผ ์กฐ์ ํ ์ ์์ต๋๋ค. ๊ฐ์ ์ค๊ฐ์ ์ฌ๋์๊ฐ์ ๋ฃ๋ ๊ฒ์ ์์ง ๋ง์ธ์. ๋งค ์๊ฐ ํด์์ ๊ฐ๋๊ฑธ ์ถ์ฒํฉ๋๋ค!"
#: src/welcome-day-1/what-is-rust.md:1
msgid "# What is Rust?"
msgstr "# ๋ฌ์คํธ๋?"
#: src/welcome-day-1/what-is-rust.md:3
msgid "Rust is a new programming language which had its [1.0 release in 2015][1]:"
msgstr "๋ฌ์คํธ๋ 2015๋
์ [๋ฒ์ 1.0][1]์ ๋ฆด๋ฆฌ์ฆ ํ ์๋ก์ด ํ๋ก๊ทธ๋จ ์ธ์ด์
๋๋ค:"
#: src/welcome-day-1/what-is-rust.md:5
msgid ""
"* Rust is a statically compiled language in a similar role as C++\n"
" * `rustc` uses LLVM as its backend.\n"
"* Rust supports many [platforms and\n"
" architectures](https://doc.rust-lang.org/nightly/rustc/platform-support.html):\n"
" * x86, ARM, WebAssembly, ...\n"
" * Linux, Mac, Windows, ...\n"
"* Rust is used for a wide range of devices:\n"
" * firmware and boot loaders,\n"
" * smart displays,\n"
" * mobile phones,\n"
" * desktops,\n"
" * servers."
msgstr ""
"* ๋ฌ์คํธ๋ C++์ ์ ์ฌํ ์ ์ ์ปดํ์ผ ์ธ์ด์
๋๋ค.\n"
" * `rustc`๋ LLVM์ ๋ฐฑ์๋๋ก ์ฌ์ฉํฉ๋๋ค.\n"
"* ๋ฌ์คํธ๋ ๋ค์ํ ํ๋ซํผ๊ณผ ์ํคํ
์ณ๋ฅผ ์ง์ํฉ๋๋ค.\n"
" * x86, ARM, WebAssembly, ...\n"
" * Linux, Mac, Windows, ...\n"
"* ๋ฌ์คํธ๋ ๋ค์ํ ์ฅ์น์์ ์ฌ์ฉ๋ ์ ์์ต๋๋ค:\n"
" * ํ์จ์ด์ ๋ถํธ๋ก๋(์๋ฒ ๋๋)\n"
" * ์ค๋งํธ ๋์คํ๋ ์ด\n"
" * ์ค๋งํธํฐ\n"
" * ๋ฐ์คํฌํ\n"
" * ์๋ฒ"
#: src/welcome-day-1/what-is-rust.md:21
msgid "Rust fits in the same area as C++:"
msgstr "๋ฌ์คํธ๋ C++๊ฐ ์ฌ์ฉ๋๋ ๋๋ถ๋ถ์ ๊ณณ์์ ์ฌ์ฉ ๊ฐ๋ฅํฉ๋๋ค:"
#: src/welcome-day-1/what-is-rust.md:23
msgid ""
"* High flexibility.\n"
"* High level of control.\n"
"* Can be scaled down to very constrained devices like mobile phones.\n"
"* Has no runtime or garbage collection.\n"
"* Focuses on reliability and safety without sacrificing performance."
msgstr ""
"* ๋์ ์ ์ฐ์ฑ.\n"
"* ๋์ ๋ ๋ฒจ ์์ค์ ์ ์ด.\n"
"* ํด๋ํฐ๊ณผ ๊ฐ์ ๋งค์ฐ ์ ํ๋ ์ฅ์น๋ก ์ค์ผ์ผ ๋ค์ด ๊ฐ๋ฅ.\n"
"* ๋ณ๋์ ๋ฐํ์์ ํ์๋ก ํ์ง ์์ผ๋ฉฐ, ๊ฐ๋น์ง ์ปฌ๋ ์
๋ ์์.\n"
"* ์ฑ๋ฅ์ ํํํ์ง ์์ผ๋ฉด์๋ ์์ ์ฑ๊ณผ ์์ ์ ์ค์ ์ ๋ ."
#: src/welcome-day-1/what-is-rust.md:31
msgid "[1]: https://blog.rust-lang.org/2015/05/15/Rust-1.0.html"
msgstr ""
#: src/hello-world.md:1
msgid "# Hello World!"
msgstr "# Hello World!"
#: src/hello-world.md:3
msgid ""
"Let us jump into the simplest possible Rust program, a classic Hello World\n"
"program:"
msgstr "๊ฐ์ฅ ๊ฐ๋จํ ๋ฌ์คํธ ํ๋ก๊ทธ๋จ์ผ๋ก์จ, ๊ณ ์ ์ ์ธ Hello World ๋ฅผ ์์ฑํด ๋ณด๊ฒ ์ต๋๋ค:"
#: src/hello-world.md:6
msgid ""
"```rust\n"
"fn main() {\n"
" println!(\"Hello ๐!\");\n"
"}\n"
"```"
msgstr ""
#: src/hello-world.md:12
msgid "What you see:"
msgstr "ํ์ธํ ์ ์๋ ๊ฒ๋ค:"
#: src/hello-world.md:14
msgid ""
"* Functions are introduced with `fn`.\n"
"* Blocks are delimited by curly braces like in C and C++.\n"
"* The `main` function is the entry point of the program.\n"
"* Rust has hygienic macros, `println!` is an example of this.\n"
"* Rust strings are UTF-8 encoded and can contain any Unicode character."
msgstr ""
"* ํจ์๋ `fn`์ผ๋ก ์ ์ธํฉ๋๋ค.\n"
"* C/C++ ์ ๋ง์ฐฌ๊ฐ์ง๋ก ์ค๊ดํธ`{}`๋ก ๋ธ๋ก์ ํ์ํฉ๋๋ค.\n"
"* `main` ํจ์๋ ํ๋ก๊ทธ๋จ ์ง์
์ ์
๋๋ค.\n"
"* ๋ฌ์คํธ๋ ๋๋ํ ๋งคํฌ๋ก(hygienic macros) ์์คํ
์ ๊ฐ์ง๊ณ ์์ต๋๋ค. `println!`๋ ๊ทธ ์์์
๋๋ค.\n"
"* ๋ฌ์คํธ์ ๋ฌธ์์ด์ UTF-8๋ก ์ธ์ฝ๋ฉ๋๋ฉฐ ์ด๋ชจ์ง์ ๊ฐ์ ์ ๋์ฝ๋ ๋ฌธ์๋ฅผ ํฌํจํ ์ ์์ต๋๋ค."
#: src/hello-world.md:22
msgid ""
"This slide tries to make the students comfortable with Rust code. They will see\n"
"a ton of it over the next four days so we start small with something familiar."
msgstr "์ด ์ฌ๋ผ์ด๋๋ ํ์๋ค์ด ๋ฌ์คํธ ์ฝ๋์ ์ต์ํด์ง๊ธฐ ์ํด ์์ฑ๋์์ต๋๋ค. ์์ผ๋ก 4์ผ ๋์ ๋ง์ ์ฝ๋๋ฅผ ์ ํ ๊ฒ์ด๊ธฐ ๋๋ฌธ์ ์ฐ์ ์น์ํ ์ฝ๋๋ถํฐ ์์ํฉ๋๋ค."
#: src/hello-world.md:27
msgid ""
"* Rust is very much like other languages in the C/C++/Java tradition. It is\n"
" imperative (not functional) and it doesn't try to reinvent things unless\n"
" absolutely necessary."
msgstr "* ๋ฌ์คํธ๋ C/C++/Java์ ๊ฐ์ ์ ํต์ ์ธ ๋ค๋ฅธ ์ธ์ด์ ๋งค์ฐ ์ ์ฌํฉ๋๋ค. ๋ฌ์คํธ๋ ์ ์ฐจ์ (ํจ์ํ ์๋) ์ธ์ด์
๋๋ค. ์ ๋ง๋ก ํ์ํ ๊ฒฝ์ฐ๊ฐ ์๋๋ผ๋ฉด, ๋ฌ์คํธ๋ ์ด๋ฏธ ์กด์ฌํ๋ ๊ฒ์ ์๋ก ๊ตฌํํ๋ ค๊ณ ํ์ง ์์ต๋๋ค."
#: src/hello-world.md:31
msgid "* Rust is modern with full support for things like Unicode."
msgstr "* ๋ฌ์คํธ๋ ์ ๋์ฝ๋ ์ง์๊ณผ ๊ฐ์ ํ๋ ์ธ์ด์ ํน์ง์ ์ ๋ถ ์ง์ํฉ๋๋ค."
#: src/hello-world.md:33
msgid ""
"* Rust uses macros for situations where you want to have a variable number of\n"
" arguments (no function [overloading](basic-syntax/functions-interlude.md))."
msgstr "* ๋ฌ์คํธ๋ ์ธ์์ ๊ฐ์๋ฅผ ์ฌ์ ์ ์ง์ ํ ์ ์๋ ์ํฉ์์ ํจ์ [์ค๋ฒ๋ก๋ฉ](basic-syntax/functions-interlude.md)๋์ ๋งคํฌ๋ก๋ฅผ ์ฌ์ฉํฉ๋๋ค."
#: src/hello-world/small-example.md:1
msgid "# Small Example"
msgstr "# ์์ ์์ "
#: src/hello-world/small-example.md:3
msgid "Here is a small example program in Rust:"
msgstr "๋ฌ์คํธ๋ก ์์ฑ๋ ์์ ์์ ์
๋๋ค:"
#: src/hello-world/small-example.md:5
msgid ""
"```rust,editable\n"
"fn main() { // Program entry point\n"
" let mut x: i32 = 6; // Mutable variable binding\n"
" print!(\"{x}\"); // Macro for printing, like printf\n"
" while x != 1 { // No parenthesis around expression\n"
" if x % 2 == 0 { // Math like in other languages\n"
" x = x / 2;\n"
" } else {\n"
" x = 3 * x + 1;\n"
" }\n"
" print!(\" -> {x}\");\n"
" }\n"
" println!();\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn main() { // ํ๋ก๊ทธ๋จ ์ง์
์ ์
๋๋ค.\n"
" let mut x: i32 = 6; // ๊ฐ๋ณ ๋ณ์ ํ ๋น(binding)์
๋๋ค.\n"
" print!(\"{x}\"); // printf์ ๊ฐ์ ์ถ๋ ฅ์ ์ํ ๋งคํฌ๋ก ์
๋๋ค.\n"
" while x != 1 { // ํํ์์ ๊ดํธ๋ ์์ต๋๋ค.\n"
" if x % 2 == 0 { // ๋ค๋ฅธ ์ธ์ด์ ๊ฐ์ ์ํ์ฐ์ฐ์์ด ์ฌ์ฉ๋ฉ๋๋ค.\n"
" x = x / 2;\n"
" } else {\n"
" x = 3 * x + 1;\n"
" }\n"
" print!(\" -> {x}\");\n"
" }\n"
" println!();\n"
"}\n"
"```"
#: src/hello-world/small-example.md:23
msgid ""
"The code implements the Collatz conjecture: it is believed that the loop will\n"
"always end, but this is not yet proved. Edit the code and play with different\n"
"inputs."
msgstr "์ด ์ฝ๋๋ ์ฝ๋ผ์ธ ์ถ์ธก(Collatz conjecture)์ผ๋ก ๊ตฌํ๋ฉ๋๋ค: ๋ฐ๋ณต๋ฌธ์ด ์ธ์ ๋ ์ข
๋ฃ๋ ๊ฒ์ด๋ผ๊ณ ๋ฏฟ์ง๋ง ์ฆ๋ช
๋ ๊ฒ์ ์๋๋๋ค. ์ฝ๋๋ฅผ ์์ ํ๊ณ ์คํํด ๋ณด์๊ธฐ ๋ฐ๋๋๋ค."
#: src/hello-world/small-example.md:29
msgid ""
"* Explain that all variables are statically typed. Try removing `i32` to trigger\n"
" type inference. Try with `i8` instead and trigger a runtime integer overflow."
msgstr "* ๋ชจ๋ ๋ณ์๊ฐ ์ปดํ์ผ ์ ์ ํด์ง ํ์
์ ๊ฐ์ง์ ์ค๋ช
ํฉ๋๋ค. `i32`๋ฅผ ์ญ์ ํ์ฌ ์ปดํ์ผ๋ฌ๊ฐ ํ์
์ถ๋ก ์ ํ๋๋ก ํด ๋ด
๋๋ค. `i32`์ `i8`๋ก ๋ณ๊ฒฝํ์ฌ ๋ฐํ์ ์ค๋ฒํ๋ก๋ฅผ ์ ๋ฐํด ๋ณผ ์ ์์ต๋๋ค."
#: src/hello-world/small-example.md:32
msgid "* Change `let mut x` to `let x`, discuss the compiler error."
msgstr "* `let mut x`๋ฅผ `let x`๋ก ์์ ํ์ฌ ์ปดํ์ผ ์ค๋ฅ์ ๋ํด ํ ๋ก ํฉ๋๋ค."
#: src/hello-world/small-example.md:34
msgid ""
"* Show how `print!` gives a compilation error if the arguments don't match the\n"
" format string."
msgstr "* ์ธ์๊ฐ ํฌ๋งท ๋ฌธ์์ด๊ณผ ์ผ์นํ์ง ์๋ ๊ฒฝ์ฐ `print!`์์ ์ปดํ์ผ ์ค๋ฅ๊ฐ ๋ฐ์ํจ์ ์ธ๊ธํ๋ ๊ฒ๋ ์ข์ต๋๋ค."
#: src/hello-world/small-example.md:37
msgid ""
"* Show how you need to use `{}` as a placeholder if you want to print an\n"
" expression which is more complex than just a single variable."
msgstr "* ๋จ์ผ ๋ณ์๋ณด๋ค ๋ณต์กํ ์์ ์ถ๋ คํ๋ ค๋ฉด `{}`์ ์๋ฆฌ ํ์์๋ก ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ณด์ฌ ์ค๋๋ค."
#: src/hello-world/small-example.md:40
msgid ""
"* Show the students the standard library, show them how to search for `std::fmt`\n"
" which has the rules of the formatting mini-language. It's important that the\n"
" students become familiar with searching in the standard library."
msgstr "* ํ์๋ค์๊ฒ ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ ์ด๋ ์๋์ง ์๋ ค ์ฃผ๊ณ ๋, `print!`๊ฐ ์ง์ํ๋ ํฌ๋งทํ
์ธ์ด์ ๋ฌธ๋ฒ์ ์๊ธฐ ์ํด `std::fmt`๋ฅผ ๊ฒ์ํด์ผ ํ๋ค๋ ๊ฒ์ ๊ฐ๋ฅด์น์ธ์.ํ์๋ค์ด ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๊ฒ์ ๊ธฐ๋ฅ์ ์ต์ํด ์ง๋๋ก ํ๋ ๊ฒ์ด ์ค์ํฉ๋๋ค."
#: src/why-rust.md:1
msgid "# Why Rust?"
msgstr "# ๋ฌ์คํธ๋ฅผ ์จ์ผํ๋ ์ด์ "
#: src/why-rust.md:3
msgid "Some unique selling points of Rust:"
msgstr "๋ฌ์คํธ๋ง์ ๋
ํนํ ์ธ์ผ์ฆ ํฌ์ธํธ(์ฅ์ ):"
#: src/why-rust.md:5
msgid ""
"* Compile time memory safety.\n"
"* Lack of undefined runtime behavior.\n"
"* Modern language features."
msgstr ""
"* ์ปดํ์ผ ์ ๋ฉ๋ชจ๋ฆฌ ์์ ์ด ๋ณด์ฅ๋จ.\n"
"* ์ ์๋์ง ์์ ๋ฐํ์ ๋์์ด ์์.\n"
"* ํ๋์ ์ธ ์ธ์ด ๊ธฐ๋ฅ."
#: src/why-rust.md:11
msgid ""
"Make sure to ask the class which languages they have experience with. Depending\n"
"on the answer you can highlight different features of Rust:"
msgstr "์๊ฐ์๋ค์๊ฒ ์ด๋ค ํ๋ก๊ทธ๋๋ฐ ์ธ์ด๋ฅผ ์ฌ์ฉํ๋์ง ๋ฌผ์ด๋ณด์๊ธฐ ๋ฐ๋๋๋ค. ์ด๋ค ์ธ์ด๋ฅผ ์ฌ์ฉํ๋๋์ ๋ฐ๋ผ ๋ฌ์คํธ์์ ์ด๋ค ์ ์ ๊ฐ์กฐํด์ผ ํ ์ง๋ฅผ ๊ณ ๋ฏผํด ๋ณด์ธ์:"
#: src/why-rust.md:14
msgid ""
"* Experience with C or C++: Rust eliminates a whole class of _runtime errors_\n"
" via the borrow checker. You get performance like in C and C++, but you don't\n"
" have the memory unsafety issues. In addition, you get a modern language with\n"
" constructs like pattern matching and built-in dependency management."
msgstr "* C/C++: ๋ฌ์คํธ๋ '๋น๋ฆผ'๊ฒ์ฌ๊ธฐ๋ฅผ ํตํด์ ์ํ์ค์ ๋ฐ์ํ ์ ์๋ ๋ชจ๋ ์๋ฌ๋ฅผ ์ ๊ฑฐํฉ๋๋ค. ๋ฌ์คํธ๋ C์ C++๊ณผ ๋น์ทํ ์์ค์ ์ฑ๋ฅ์ ๋ณด์ฌ์ฃผ๋ฉด์๋, ๊ทธ ์ธ์ด๋ค์์ ์ข
์ข
๋ฐ์ํ๋ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ จ ์ค๋ฅ๊ฐ ์์ต๋๋ค. ๋ํ, ํจํด ๋งค์นญ์ด๋, ๊ธฐ๋ณธ์ ์ผ๋ก ์ ๊ณต๋๋ ์ข
์์ฑ ๊ด๋ฆฌ์ ๊ฐ์ ํ๋์ ์ธ ์ธ์ด์ ๊ธฐ๋ฅ๋ค์ ์ ๊ณตํฉ๋๋ค."
#: src/why-rust.md:19
msgid ""
"* Experience with Java, Go, Python, JavaScript...: You get the same memory safety\n"
" as in those languages, plus a similar high-level language feeling. In addition\n"
" you get fast and predictable performance like C and C++ (no garbage collector)\n"
" as well as access to low-level hardware (should you need it)"
msgstr "* Java, Go, Python, JaveScript: ์ด ์ธ์ด๋ค๊ณผ ๋์ผํ ๋ฉ๋ชจ๋ฆฌ ์์ ์ฑ๊ณผ ํจ๊ป, 'ํ์ด๋ ๋ฒจ'์ธ์ด์ ๋๋์ ๋๋ ์ ์์ต๋๋ค. ๊ฑฐ๊ธฐ์ ๋ํด, ๊ฐ๋น์ง ์ปฌ๋ ํฐ๊ฐ ์๋ C/C++์ ์ ์ฌํ ์์ค์ ๋น ๋ฅด๊ณ ์์ธก ๊ฐ๋ฅํ ์ฑ๋ฅ์ ๊ธฐ๋ํ ์ ์์ต๋๋ค. ๊ทธ๋ฆฌ๊ณ ํ์ํ ๊ฒฝ์ฐ ์ ์์ค ํ๋์จ์ด๋ฅผ ๋ค๋ฃจ๋ ์ฝ๋๋ก ์์ฑํ ์ ์์ต๋๋ค."
#: src/why-rust/compile-time.md:1
msgid "# Compile Time Guarantees"
msgstr "# ์ปดํ์ผ ์ ๋ณด์ฅ๋๋ ๊ฒ๋ค"
#: src/why-rust/compile-time.md:3
msgid "Static memory management at compile time:"
msgstr "์ปดํ์ผ ์ ์ ์ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ:"
#: src/why-rust/compile-time.md:5
msgid ""
"* No uninitialized variables.\n"
"* No memory leaks (_mostly_, see notes).\n"
"* No double-frees.\n"
"* No use-after-free.\n"
"* No `NULL` pointers.\n"
"* No forgotten locked mutexes.\n"
"* No data races between threads.\n"
"* No iterator invalidation."
msgstr ""
"* ์ด๊ธฐํ๋์ง ์๋ ๋ณ์๊ฐ ์์ต๋๋ค.\n"
"* ๋ฉ๋ชจ๋ฆฌ ๋์ถ ์์(_๊ฑฐ์_. ๊ฐ์์ฐธ์กฐ๋
ธํธ ์ฐธ๊ณ .)\n"
"* ๋ฉ๋ชจ๋ฆฌ ์ด์ค ํด์ ๊ฐ ์์ฒ์ ์ผ๋ก ๋ถ๊ฐ๋ฅ ํฉ๋๋ค.\n"
"* ๋ฉ๋ชจ๋ฆฌ ํด์ ํ ์ฌ์ฉ์ด ์์ฒ์ ์ผ๋ก ๋ถ๊ฐ๋ฅ ํฉ๋๋ค.\n"
"* `NULL`ํฌ์ธํฐ๋ ์์ต๋๋ค.\n"
"* ๋ฎคํ
์ค๋ฅผ ์ ๊ถ ๋๊ณ ์ฌ๋ ๊ฒ์ ์๋ ์ค์๋ฅผ ํ ์ ์์ต๋๋ค.\n"
"* ์ค๋ ๋๊ฐ ๋ฐ์ดํฐ ๋ ์ด์ค๋ฅผ ๋ง์์ค๋๋ค.\n"
"* ๋ฐ๋ณต์๊ฐ ๊ฐ์๊ธฐ ๋ฌดํจํ ๋๋ ๊ฒฝ์ฐ๊ฐ ์์ต๋๋ค."
#: src/why-rust/compile-time.md:16
msgid ""
"It is possible to produce memory leaks in (safe) Rust. Some examples\n"
"are:"
msgstr "(์์ ํ) ๋ฌ์คํธ์์๋ ๋ฉ๋ชจ๋ฆฌ ๋์ถ์ด ๋ฐ์ํ ์ ์๋ ๋ช ๊ฐ์ง ๊ฒฝ์ฐ๊ฐ ์์ต๋๋ค:"
#: src/why-rust/compile-time.md:19
msgid ""
"* You can for use [`Box::leak`] to leak a pointer. A use of this could\n"
" be to get runtime-initialized and runtime-sized static variables\n"
"* You can use [`std::mem::forget`] to make the compiler \"forget\" about\n"
" a value (meaning the destructor is never run).\n"
"* You can also accidentally create a [reference cycle] with `Rc` or\n"
" `Arc`.\n"
"* In fact, some will consider infinitely populating a collection a memory\n"
" leak and Rust does not protect from those."
msgstr ""
"* [`Box::leak`]์ ์ด์ฉํ์ฌ ํฌ์ธํฐ๋ฅผ ์๋์ ์ผ๋ก ๋์ถ์ํฌ ์ ์์ต๋๋ค. ์ด๋ฅผ ์ด์ฉํด์ ๋ฐํ์์ด ์์ฑํ๊ณ ๋ฐํ์์ด ํฌ๊ธฐ๋ฅผ ์ ํ ์ ์ ๋ณ์๋ฅผ ๊ฐ์ ธ์ฌ ์ ์์ต๋๋ค.\n"
"* [`std::mem::forget`]์ ์ฌ์ฉํ์ฌ ์ปดํ์ผ๋ฌ๊ฐ ๊ฐ์ ๋ํด \"์๋๋ก\" ๋ง๋ค ์ ์์ต๋๋ค(์๋ฉธ์๊ฐ ์คํ๋์ง ์์์ ์๋ฏธํฉ๋๋ค).\n"
"* `Rc` ๋๋ `Arc`๋ฅผ ์ฌ์ฉํ์ฌ ์ค์๋ก [์ํ์ฐธ์กฐ][reference cycle]๋ฅผ ์์ฑํ ์๋ ์์ต๋๋ค.\n"
"* ์ปฌ๋ ์
์ ๋ฌดํ์ ์ฑ์ฐ๋ ๊ฒ์ ๋ฉ๋ชจ๋ฆฌ ๋์ถ๋ก ๊ฐ์ฃผํ ์๋ ์์ง๋ง, ๋ฌ์คํธ๋ ์ด๋ฅผ ๋ณดํธํ์ง ๋ชปํฉ๋๋ค."
#: src/why-rust/compile-time.md:28
msgid ""
"For the purpose of this course, \"No memory leaks\" should be understood\n"
"as \"Pretty much no *accidental* memory leaks\"."
msgstr "๋ณธ ๊ฐ์์์๋ \"๋ฉ๋ชจ๋ฆฌ ๋์ถ ์์\"์ \"์ฐ๋ฐ์ ์ธ ๋ฉ๋ชจ๋ฆฌ ๋์ถ ์์\"์ผ๋ก ์ดํดํด์ผ ํฉ๋๋ค."
#: src/why-rust/compile-time.md:31
msgid ""
"[`Box::leak`]: https://doc.rust-lang.org/std/boxed/struct.Box.html#method.leak\n"
"[`std::mem::forget`]: https://doc.rust-lang.org/std/mem/fn.forget.html\n"
"[reference cycle]: https://doc.rust-lang.org/book/ch15-06-reference-cycles.html"
msgstr ""
#: src/why-rust/runtime.md:1
msgid "# Runtime Guarantees"
msgstr "# ๋ฐํ์ ์ ๋ณด์ฅ๋๋ ๊ฒ๋ค"
#: src/why-rust/runtime.md:3
msgid "No undefined behavior at runtime:"
msgstr "๋ฐํ์ ์ ์ ์๋์ง ์์(undefined) ๋์ ์์:"
#: src/why-rust/runtime.md:5
msgid ""
"* Array access is bounds checked.\n"
"* Integer overflow is defined."
msgstr ""
"* ๋ฐฐ์ด ์ ๊ทผ์ ๊ฒฝ๊ณ ์ฒดํฌ\n"
"* ์ ์ํ ํ์
์ ๋ณ์์์ ์ค๋ฒํ๋ก์ฐ ๋ฐ์์ ๋์์ด ์ ์ ์๋์ด์์ต๋๋ค."
#: src/why-rust/runtime.md:12
msgid ""
"* Integer overflow is defined via a compile-time flag. The options are\n"
" either a panic (a controlled crash of the program) or wrap-around\n"
" semantics. By default, you get panics in debug mode (`cargo build`)\n"
" and wrap-around in release mode (`cargo build --release`)."
msgstr "* ์ ์ํ ์ค๋ฒํ๋ก์ฐ๋ ์ปดํ์ผ ํ์ ํ๋ ๊ทธ๋ฅผ ํตํด ์ ์๋ฉ๋๋ค. ์ต์
์ ํจ๋(ํ๋ก๊ทธ๋จ ํฌ๋ ์) ํน์ ์ฌ๋ฆผ(wrap-around)์
๋๋ค. ๊ธฐ๋ณธ์ ์ผ๋ก ๋๋ฒ๊ทธ ๋ชจ๋(`cargo build`)์์๋ ํจ๋์ด, ๋ฆด๋ฆฌ์ฆ ๋ชจ๋(`cargo build --release`)์์๋ wrap-around๊ฐ ๋ฐ์ํฉ๋๋ค."
#: src/why-rust/runtime.md:17
msgid ""
"* Bounds checking cannot be disabled with a compiler flag. It can also\n"
" not be disabled directly with the `unsafe` keyword. However,\n"
" `unsafe` allows you to call functions such as `slice::get_unchecked`\n"
" which does not do bounds checking."
msgstr "* ์ปดํ์ผ ํ๋๊ทธ๋ฅผ ์ฌ์ฉํ์ฌ ๊ฒฝ๊ณ์ฒดํฌ๋ฅผ ๋ฌด๋ ฅํ ํ ์ ์์ต๋๋ค. `unsafe`๋ฅผ ์ฌ์ฉํ๋๋ผ๋ ๋ง์ฐฌ๊ฐ์ง์
๋๋ค. ํ์ง๋ง `unsafe`์์ ํธ์ถ ๊ฐ๋ฅํ `slice::get_unchecked`๊ฐ์ ํจ์๋ ๊ฒฝ๊ณ ๊ฒ์ฌ๋ฅผ ์ํํ์ง ์์ต๋๋ค."
#: src/why-rust/modern.md:1
msgid "# Modern Features"
msgstr "# ํ๋์ ์ธ ํน์ง"
#: src/why-rust/modern.md:3
msgid "Rust is built with all the experience gained in the last 40 years."
msgstr "๋ฌ์คํธ๋ ์ง๋ 40๋
๊ฐ์ ๋ชจ๋ (ํ๋ก๊ทธ๋๋ฐ ์ธ์ด๋ค์) ๊ฒฝํ์ผ๋ก ๋ง๋ค์ด์ก์ต๋๋ค."
#: src/why-rust/modern.md:5
msgid "## Language Features"
msgstr "## ์ธ์ด์ ํน์ง"
#: src/why-rust/modern.md:7
msgid ""
"* Enums and pattern matching.\n"
"* Generics.\n"
"* No overhead FFI.\n"
"* Zero-cost abstractions."
msgstr ""
"* ์ด๊ฑฐํ๊ณผ ํจํด ๋งค์นญ.\n"
"* ์ ๋ค๋ฆญ.\n"
"* FFI ๋ฐํ์ ์ค๋ฒํค๋ ์์.\n"
" * _์ญ์ฃผ: FFI: Foreign Function Interface. ํ ์ธ์ด ์ฝ๋๋ฅผ ํธ์ถํ๊ธฐ ์ํ ์ธํฐํ์ด์ค_\n"
"* ์ ๋ก ์ฝ์คํธ ์ถ์ํ."
#: src/why-rust/modern.md:12
msgid "## Tooling"
msgstr "## ๋๊ตฌ๋ค"
#: src/why-rust/modern.md:14
msgid ""
"* Great compiler errors.\n"
"* Built-in dependency manager.\n"
"* Built-in support for testing.\n"
"* Excellent Language Server Protocol support."
msgstr ""
"* ์น์ ํ ์ปดํ์ผ๋ฌ ์ค๋ฅ๋ฉ์์ง.\n"
"* ๋ด์ฅ ์ข
์์ฑ ๊ด๋ฆฌ์.\n"
"* ๋ด์ฅ ํ
์คํธ ์ง์.\n"
"* LSP (Language Server Protocol, ์ธ์ด ์๋ฒ ํ๋กํ ์ฝ) ์ง์์ด ์๋์ด ์์."
#: src/why-rust/modern.md:23
msgid ""
"* Zero-cost abstractions, similar to C++, means that you don't have to 'pay'\n"
" for higher-level programming constructs with memory or CPU. For example,\n"
" writing a loop using `for` should result in roughly the same low level\n"
" instructions as using the `.iter().fold()` construct."
msgstr "* C++ ์ ์ ์ฌํ๊ฒ ์ ๋ก ์ฝ์คํธ ์ถ์ํ๋ CPU๋ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ์ฌ์ฉํ์ฌ ์์๋ ๋ฒจ ํ๋ก๊ทธ๋๋ฐ ๊ตฌ์กฐ๋ฅผ ๋ง๋๋๋ฐ '๋น์ฉ'์ ์ง๋ถํ ํ์๊ฐ ์์ต๋๋ค. ์๋ฅผ ๋ค์ด `for` ๋ฃจํ์์ `iter().fold()` ๊ตฌ์กฐ๋ฅผ ์ฌ์ฉํ๋ ๊ฒ๊ณผ ๊ฑฐ์ ๋์ผํ ๋ฎ์ ์์ค์ ๋ช
๋ น์ด๊ฐ ์์ฑ๋ ๊ฒ ์
๋๋ค."
#: src/why-rust/modern.md:28
msgid ""
"* It may be worth mentioning that Rust enums are 'Algebraic Data Types', also\n"
" known as 'sum types', which allow the type system to express things like\n"
" `Option` and `Result`."
msgstr "* ๋ฌ์คํธ์ ์ด๊ฑฐํ(enum)์ ํฉ๊ณ ํ์
(sum type)์ผ๋ก ์๋ ค์ง ๋์ํ์ ๋ฐ์ดํฐํ(Algebraic Data Type)์ผ๋ก, ํ์
์์คํ
์ด `Option`์ `Result`๋ฑ์ ํํํ ์ ์๊ฒ ํด์ค๋๋ค."
#: src/why-rust/modern.md:32
msgid ""
"* Remind people to read the errors --- many developers have gotten used to\n"
" ignore lengthy compiler output. The Rust compiler is significantly more\n"
" talkative than other compilers. It will often provide you with _actionable_\n"
" feedback, ready to copy-paste into your code."
msgstr "* ์ค๋ฅ๋ฅผ ์ฝ์ด๋ณด์๊ธฐ ๋ฐ๋๋๋ค --- ์ค๋๊ธฐ๊ฐ ๋ง์ ๊ฐ๋ฐ์๋ค์ด ์ปดํ์ผ๋ฌ ์ถ๋ ฅ์ ๋ฌด์ํ๋๋ฐ ์ต์ํด์ ธ ์์ต๋๋ค. ๋ฌ์คํธ ์ปดํ์ผ๋ฌ๋ ๋ค๋ฅธ ์ปดํ์ผ๋ฌ๋ณด๋ค ๋ ์๋ค์ค๋ฝ๊ณ , ๋ณต์ฌ-๋ถ์ฌ๋ฃ๊ธฐ ํ ์ ์๋ ์ ๋์ ์ฝ๋ ํผ๋๋ฐฑ์ ์ ๊ณตํ๋ ๊ฒฝ์ฐ๊ฐ ๋ง์ต๋๋ค."
#: src/why-rust/modern.md:37
msgid ""
"* The Rust standard library is small compared to languages like Java, Python,\n"
" and Go. Rust does not come with several things you might consider standard and\n"
" essential:"
msgstr "* ๋ฌ์คํธ ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ Java, Python์ด๋ Go์ ๊ฐ์ ์ธ์ด์ ๋นํด์ ๊ท๋ชจ๊ฐ ์์ต๋๋ค. ๋น์ฐํ ํฌํจ๋์ด์ผ ํ๋ค๊ณ ์๊ฐํ ์๋ ์๋ ์๋์ ๊ฐ์ ๊ฒ๋ค์ด ๋ฌ์คํธ์ ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์์ต๋๋ค:"
#: src/why-rust/modern.md:41
msgid ""
" * a random number generator, but see [rand].\n"
" * support for SSL or TLS, but see [rusttls].\n"
" * support for JSON, but see [serde_json]."
msgstr ""
" * ๋์ ์์ฑ๊ธฐ, ํ์ง๋ง [rand]๋ฌธ์๋ฅผ ์ฐธ์กฐํ์๊ธฐ ๋ฐ๋๋๋ค.\n"
" * SSL ๋๋ TLS์ง์, ํ์ง๋ง [rusttls]๋ฌธ์๋ฅผ ์ฐธ์กฐํ์๊ธฐ ๋ฐ๋๋๋ค.\n"
" * JSON ์ง์, ํ์ง๋ง [serde_json] ๋ฌธ์๋ฅผ ์ฐธ์กฐํ์๊ธฐ ๋ฐ๋๋๋ค."
#: src/why-rust/modern.md:45
msgid ""
" The reasoning behind this is that functionality in the standard library cannot\n"
" go away, so it has to be very stable. For the examples above, the Rust\n"
" community is still working on finding the best solution --- and perhaps there\n"
" isn't a single \"best solution\" for some of these things."
msgstr " ๊ทธ ์ด์ ๋ ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ์์ ํ ๋ฒ ์ด๋ค ๊ธฐ๋ฅ์ ์ ๊ณตํ๋ฉด ๋บ ์ ์์ผ๋ฉฐ, ๋งค์ฐ ์์ ์ ์ด์ด์ผ ํ๊ธฐ ๋๋ฌธ์
๋๋ค. ์์ ์ธ๊ธํ ๊ธฐ๋ฅ๋ค์ ์์ง ๋ฌ์คํธ ์ปค๋ฎค๋ํฐ๊ฐ ์ต๊ณ ์ ์๋ฃจ์
์ ์ฐพ์ง ๋ชปํ๊ธฐ ๋๋ฌธ์ ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ํฌํจ๋์ง ์์์ต๋๋ค. ์ด์ฉ๋ฉด ์ด๋ค ์ค ๋ช ๊ฐ๋ '์ต๊ณ ์ ์๋ฃจ์
'์ด ์์ ์กด์ฌํ ์ ์์ ์ง๋ ๋ชจ๋ฆ
๋๋ค."
#: src/why-rust/modern.md:50
msgid ""
" Rust comes with a built-in package manager in the form of Cargo and this makes\n"
" it trivial to download and compile third-party crates. A consequence of this\n"
" is that the standard library can be smaller."
msgstr " ๋ฌ์คํธ๋ ์นด๊ณ ๋ผ๋ ํจํค์ง ๊ด๋ฆฌ์๊ฐ ๋ด์ฅ๋์ด ์๊ณ , ์๋ํํฐ ํฌ๋ ์ดํธ๋ฅผ ๋ค์ด๋ก๋, ์ปดํ์ผ ํ๊ธฐ ๋งค์ฐ ์ฝ์ต๋๋ค. ์ด ๋ํ ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ ์์ ์ด์ ์
๋๋ค."
#: src/why-rust/modern.md:54
msgid ""
" Discovering good third-party crates can be a problem. Sites like\n"
" help with this by letting you compare health metrics for\n"
" crates to find a good and trusted one.\n"
" \n"
"* [rust-analyzer] is a well supported LSP implementation used in major\n"
" IDEs and text editors."
msgstr ""
" ์ข์ ์๋ํํฐ ํฌ๋ ์ดํธ๋ฅผ ์ฐพ๋ ๊ฒ์ ์ด๋ ต์ต๋๋ค. ์ ๊ฐ์ ์ฌ์ดํธ๊ฐ ์ ๋ขฐํ ์ ์๋ ์ข์ ํฌ๋ ์ดํธ๋ฅผ ๋น๊ตํ์ฌ ์ฐพ๋๋ฐ ์ข์ต๋๋ค.\n"
"* [rust-analyzer]๋ ์ฃผ์ IDE๋ ํ
์คํธ ์๋ํฐ์์ ์ฌ์ฉ๋๋ ๋ฌ์คํธ์ฉ LSP์๋ฒ ์
๋๋ค."
#: src/why-rust/modern.md:61
msgid ""
"[rand]: https://docs.rs/rand/\n"
"[rusttls]: https://docs.rs/rustls/\n"
"[serde_json]: https://docs.rs/serde_json/\n"
"[rust-analyzer]: https://rust-analyzer.github.io/"
msgstr ""
"[rand]: https://docs.rs/rand/\n"
"[rusttls]: https://docs.rs/rustls/\n"
"[serde_json]: https://docs.rs/serde_json/\n"
"[rust-analyzer]: https://rust-analyzer.github.io/"
#: src/basic-syntax.md:1
msgid "# Basic Syntax"
msgstr "# ๊ธฐ๋ณธ ๋ฌธ๋ฒ"
#: src/basic-syntax.md:3
msgid "Much of the Rust syntax will be familiar to you from C, C++ or Java:"
msgstr "๋๋ถ๋ถ์ ๋ฌ์คํธ ๋ฌธ๋ฒ์ C/C++/Java ์ ์ ์ฌํฉ๋๋ค:"
#: src/basic-syntax.md:5
msgid ""
"* Blocks and scopes are delimited by curly braces.\n"
"* Line comments are started with `//`, block comments are delimited by `/* ...\n"
" */`.\n"
"* Keywords like `if` and `while` work the same.\n"
"* Variable assignment is done with `=`, comparison is done with `==`."
msgstr ""
"* ๋ธ๋ก๊ณผ ๋ฒ์๋ ์ค๊ดํธ`{}`๋ก ํํํฉ๋๋ค.\n"
"* ์ธ๋ผ์ธ ์ฃผ์์ `//`, ๋ธ๋ก ์ฃผ์์ `/* ... */`๋ก ์ฌ์ฉํฉ๋๋ค.\n"
"* `if`๋ `while`๊ฐ์ ํค์๋๋ ๋์ผํฉ๋๋ค.\n"
"* ๋ณ์ ํ ๋น์ `=`, ๋น๊ต๋ `==`๋ฅผ ์ฌ์ฉํฉ๋๋ค."
#: src/basic-syntax/scalar-types.md:1
msgid "# Scalar Types"
msgstr "# ์ค์นผ๋ผ ํ์
"
#: src/basic-syntax/scalar-types.md:3
msgid ""
"| | Types | Literals |\n"
"|------------------------|--------------------------------------------|-------------------------------|\n"
"| Signed integers | `i8`, `i16`, `i32`, `i64`, `i128`, `isize` | `-10`, `0`, `1_000`, `123i64` |\n"
"| Unsigned integers | `u8`, `u16`, `u32`, `u64`, `u128`, `usize` | `0`, `123`, `10u16` |\n"
"| Floating point numbers | `f32`, `f64` | `3.14`, `-10.0e20`, `2f32` |\n"
"| Strings | `&str` | `\"foo\"`, `r#\"\\\\\"#` |\n"
"| Unicode scalar values | `char` | `'a'`, `'ฮฑ'`, `'โ'` |\n"
"| Byte strings | `&[u8]` | `b\"abc\"`, `br#\" \" \"#` |\n"
"| Booleans | `bool` | `true`, `false` |"
msgstr ""
"| | ํ์
| ์ค์นผ๋ผ ๋ฆฌํฐ๋ด ๊ฐ |\n"
"|-----------------|--------------------------------------------|-------------------------------|\n"
"| ๋ถํธ์๋ ์ ์ | `i8`, `i16`, `i32`, `i64`, `i128`, `isize` | `-10`, `0`, `1_000`, `123i64` |\n"
"| ๋ถํธ์๋ ์ ์ | `u8`, `u16`, `u32`, `u64`, `u128`, `usize` | `0`, `123`, `10u16` |\n"
"| ๋ถ๋์์ | `f32`, `f64` | `3.14`, `-10.0e20`, `2f32` |\n"
"| ๋ฌธ์์ด | `&str` | `\"foo\"`, `r#\"\\\\\"#` |\n"
"| ์ ๋์ฝ๋ ๋ฌธ์ | `char` | `'a'`, `'ฮฑ'`, `'โ'` |\n"
"| ๋ฐ์ดํธ ๋ฌธ์ | `&[u8]` | `b\"abc\"`, `br#\" \" \"#` |\n"
"| ๋ถ๋ฆฌ์ธ | `bool` | `true`, `false` |"
#: src/basic-syntax/scalar-types.md:13
msgid "The types have widths as follows:"
msgstr "๊ฐ ํ์
์ ํฌ๊ธฐ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:"
#: src/basic-syntax/scalar-types.md:15
msgid ""
"* `iN`, `uN`, and `fN` are _N_ bits wide,\n"
"* `isize` and `usize` are the width of a pointer,\n"
"* `char` is 32 bit wide,\n"
"* `bool` is 8 bit wide."
msgstr ""
"* ์ ์(`i`) ๋ฐ ๋ถ๋์์ํ(`f`)์ ๋ค์ ์ซ์์ ๊ฐ์ ๋นํธ ์ ์
๋๋ค. (`i8` = 8๋นํธ)\n"
"* `isize` ์ `usize` ๋ ํฌ์ธํฐ์ ๊ฐ์ ํฌ๊ธฐ์
๋๋ค.\n"
" * _์ญ์ฃผ: 32 ๋นํธ ์์คํ
์์๋ 32 ๋นํธ, 64 ๋นํธ ์์คํ
์์๋ 64 ๋นํธ. C์ `int`์ ๊ฐ์._\n"
"* `char` 32 ๋นํธ ์
๋๋ค.\n"
"* `bool`์ 8 ๋นํธ ์
๋๋ค."
#: src/basic-syntax/compound-types.md:1
msgid "# Compound Types"
msgstr "# ๋ณตํฉ ํ์
"
#: src/basic-syntax/compound-types.md:3
msgid ""
"| | Types | Literals |\n"
"|--------|-------------------------------|-----------------------------------|\n"
"| Arrays | `[T; N]` | `[20, 30, 40]`, `[0; 3]` |\n"
"| Tuples | `()`, `(T,)`, `(T1, T2)`, ... | `()`, `('x',)`, `('x', 1.2)`, ... |"
msgstr ""
"| | ํ์
| ๋ฆฌํฐ๋ด |\n"
"|------|-------------------------------|-----------------------------------|\n"
"| ๋ฐฐ์ด | `[T; N]` | `[20, 30, 40]`, `[0; 3]` |\n"
"| ํํ | `()`, `(T,)`, `(T1, T2)`, ... | `()`, `('x',)`, `('x', 1.2)`, ... |"
#: src/basic-syntax/compound-types.md:8
msgid "Array assignment and access:"
msgstr "๋ฐฐ์ด ์ ์ธ๊ณผ ์ ๊ทผ:"
#: src/basic-syntax/compound-types.md:10
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let mut a: [i8; 10] = [42; 10];\n"
" a[5] = 0;\n"
" println!(\"a: {:?}\", a);\n"
"}\n"
"```"
msgstr ""
#: src/basic-syntax/compound-types.md:18
msgid "Tuple assignment and access:"
msgstr "ํํ ์ ์ธ๊ณผ ์ ๊ทผ:"
#: src/basic-syntax/compound-types.md:20
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let t: (i8, bool) = (7, true);\n"
" println!(\"1st index: {}\", t.0);\n"
" println!(\"2nd index: {}\", t.1);\n"
"}\n"
"```"
msgstr ""
#: src/basic-syntax/compound-types.md:32
msgid "Arrays:"
msgstr "๋ฐฐ์ด:"
#: src/basic-syntax/compound-types.md:34
msgid ""
"* Arrays have elements of the same type, `T`, and length, `N`, which is a compile-time constant.\n"
" Note that the length of the array is *part of its type*, which means that `[u8; 3]` and\n"
" `[u8; 4]` are considered two different types."
msgstr "* ๋ฐฐ์ด์, ๊ฐ์ ํ์
`T`์ ๊ฐ์ด `N`๊ฐ ์๋ ๊ฒ์
๋๋ค. ์ฌ๊ธฐ์ `N`์ ์ปดํ์ผ ํ์์ ๊ฒฐ์ ๋ ๊ฐ์ด์ด์ผ ํฉ๋๋ค. ์ด ๊ธธ์ด๋ ํ์
์ ์ผ๋ถ์
๋๋ค. ๋ฐ๋ผ์, `[u8; 3]`์ `[u8; 4]`์ ์๋ก ๋ค๋ฅธ ํ์
์
๋๋ค."
#: src/basic-syntax/compound-types.md:38
msgid "* We can use literals to assign values to arrays."
msgstr "* ๋ฆฌํฐ๋ด์ ์ฌ์ฉํ์ฌ ๋ฐฐ์ด์ ๊ฐ์ ํ ๋นํ ์ ์์ต๋๋ค."
#: src/basic-syntax/compound-types.md:40
msgid ""
"* In the main function, the print statement asks for the debug implementation with the `?` format\n"
" parameter: `{}` gives the default output, `{:?}` gives the debug output. We\n"
" could also have used `{a}` and `{a:?}` without specifying the value after the\n"
" format string."
msgstr "* ํฌ๋งคํ
๋ฌธ์์ด์์ `?`๋ ๋๋ฒ๊น
์ถ๋ ฅ์ ์๋ฏธํฉ๋๋ค. `{}`๋ ๊ธฐ๋ณธ ์ถ๋ ฅ์ด๋ฉฐ, `{:?}`๋ ๋๋ฒ๊น
์ถ๋ ฅ์
๋๋ค. `{a}`์ `{a:?}`์ ๊ฐ์ด ์ถ๋ ฅํ ๋ณ์ ์ด๋ฆ์ ํฌ๋งคํ
๋ฌธ์์ด์ ํฌํจ์ํฌ ์๋ ์์ผ๋ฉฐ, ์ด ๊ฒฝ์ฐ ์ธ์ `a`๋ ๋ณ๋์ ์ธ์๋ก ์ถ๊ฐํ์ง ์์ต๋๋ค."
#: src/basic-syntax/compound-types.md:45
msgid "* Adding `#`, eg `{a:#?}`, invokes a \"pretty printing\" format, which can be easier to read."
msgstr "* `#`์ ์ถ๊ฐํ๋ฉด(`{a:#?}`) ์ข ๋ ์ฝ๊ธฐ ์ฌ์ด \"์ด์\" ํํ๋ก ์ถ๋ ฅ์ด ๋ฉ๋๋ค."
#: src/basic-syntax/compound-types.md:47
msgid "Tuples:"
msgstr "ํํ:"
#: src/basic-syntax/compound-types.md:49
msgid "* Like arrays, tuples have a fixed length."
msgstr "* ๋ฐฐ์ด๊ณผ ๋ง์ฐฌ๊ฐ์ง๋ก ํํ์ ๊ณ ์ ๊ธธ์ด๋ฅผ ๊ฐ์ต๋๋ค."
#: src/basic-syntax/compound-types.md:51
msgid "* Tuples group together values of different types into a compound type."
msgstr "* ํํ์ ์๋ก ๋ค๋ฅธ ํ์
์ ๊ฐ๋ค์ ํ๋์ ๋ณตํฉ ํ์
์ผ๋ก ๋ฌถ์ต๋๋ค."
#: src/basic-syntax/compound-types.md:53
msgid "* Fields of a tuple can be accessed by the period and the index of the value, e.g. `t.0`, `t.1`."
msgstr "* ํํ์ ์ํ ๊ฐ์ `t.0`, `t.1`๊ณผ ๊ฐ์ด ์ธ๋ฑ์ค๋ก ์ ๊ทผํ ์ ์์ต๋๋ค."
#: src/basic-syntax/compound-types.md:55
msgid ""
"* The empty tuple `()` is also known as the \"unit type\". It is both a type, and\n"
" the only valid value of that type - that is to say both the type and its value\n"
" are expressed as `()`. It is used to indicate, for example, that a function or\n"
" expression has no return value, as we'll see in a future slide. \n"
" * You can think of it as `void` that can be familiar to you from other \n"
" programming languages."
msgstr ""
"* ๋น์ด์๋ ํํ`()`์ ๋จ์ ํ์
(unit type)์ด๋ผ๊ณ ๋ ํฉ๋๋ค. ์ด๋ ํ์
์ด๋ฉด์ ํด๋น ํ์
์ ์ ์ผํ๋ฉฐ ์ ํจํ ๊ฐ์
๋๋ค. ์ฆ ํ์
๊ณผ ๊ฐ์ด ๋ชจ๋ `()`์
๋๋ค. ์๋ฅผ ๋ค์ด ํจ์๋ ์์์ ๋ฐํ ๊ฐ์ด ์์์ ๋ํ๋ผ ๋ ์ฌ์ฉํฉ๋๋ค.\n"
" * ๋ค๋ฅธ ์ธ์ด์์ ์ต์ํ `void` ๊ฐ๋
์ผ๋ก ์๊ฐํ ์ ์์ต๋๋ค."
#: src/basic-syntax/references.md:1
msgid "# References"
msgstr "# ์ฐธ์กฐ"
#: src/basic-syntax/references.md:3
msgid "Like C++, Rust has references:"
msgstr "C++์ ๋ง์ฐฌ๊ฐ์ง๋ก ๋ฌ์คํธ๋ ์ฐธ์กฐํ์ ๊ฐ์ต๋๋ค:"
#: src/basic-syntax/references.md:5
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let mut x: i32 = 10;\n"
" let ref_x: &mut i32 = &mut x;\n"
" *ref_x = 20;\n"
" println!(\"x: {x}\");\n"
"}\n"
"```"
msgstr ""
#: src/basic-syntax/references.md:14
msgid "Some notes:"
msgstr "์ฐธ๊ณ ์ฌํญ:"
#: src/basic-syntax/references.md:16
msgid ""
"* We must dereference `ref_x` when assigning to it, similar to C and C++ pointers.\n"
"* Rust will auto-dereference in some cases, in particular when invoking\n"
" methods (try `ref_x.count_ones()`).\n"
"* References that are declared as `mut` can be bound to different values over their lifetime."
msgstr ""
"* `ref_x`์ ๊ฐ์ ํ ๋นํ ๋, C/C++์ ํฌ์ธํฐ์ ์ ์ฌํ๊ฒ `*`๋ฅผ ์ด์ฉํด์ ์ฐธ์กฐ๋ฅผ ๋ฐ๋ผ๊ฐ์ผ(์ญ์ฐธ์กฐ) ํฉ๋๋ค.\n"
"* ๋ฌ์คํธ๋ ํน์ ํ ๊ฒฝ์ฐ(๋ฉ์๋ ํธ์ถ)์ ์๋์ผ๋ก ์ญ์ฐธ์กฐ๋ฅผ ํฉ๋๋ค.(`ref_x.count_one()`์ ํ๋ฉด `*ref_x`๊ฐ `count_one`์ ์ธ์๋ก ์ ๋ฌ๋ฉ๋๋ค.)\n"
"* `mut`๋ก ์ ์ธ๋ ์ฐธ์กฐ๋ ๊ทธ ๋ณ์๊ฐ ์ด์์๋ ๋์ ๋ค๋ฅธ ๊ฐ์ ๊ฐ์ง ์ ์์ต๋๋ค."
#: src/basic-syntax/references.md:21
msgid ""
"\n"
"Key points:"
msgstr ""
"\n"
"ํค ํฌ์ธํธ:"
#: src/basic-syntax/references.md:24
msgid ""
"* Be sure to note the difference between `let mut ref_x: &i32` and `let ref_x:\n"
" &mut i32`. The first one represents a mutable reference which can be bound to\n"
" different values, while the second represents a reference to a mutable value."
msgstr "* `let mut ref_x: &i32`์ `let ref_x: &mut i32`์ ์ฐจ์ด์ ์ ์ฃผ์ ํ์๊ธฐ ๋ฐ๋๋๋ค. ์ฒซ๋ฒ์งธ ๊ฐ์ ๋ค๋ฅธ ๊ฐ์ ๋ฐ์ธ๋ฉ ๋ ์ ์๋ ๊ฐ๋ณ ์ฐธ์กฐ์ด๊ณ , ๋๋ฒ์งธ ๊ฐ์ ๊ฐ๋ณ ๊ฐ์ ๋ํ ์ฐธ์กฐ์
๋๋ค."
#: src/basic-syntax/references-dangling.md:1
msgid "# Dangling References"
msgstr "# ํ์(dangling) ์ฐธ์กฐ"
#: src/basic-syntax/references-dangling.md:3
msgid "Rust will statically forbid dangling references:"
msgstr "๋ฌ์คํธ๋ ํ์(dangling) ์ฐธ์กฐ๋ฅผ ์ปดํ์ผ๋ฌ ๋จ๊ณ์์ ์ฐพ์๋ด๊ณ ๊ธ์งํฉ๋๋ค:"
#: src/basic-syntax/references-dangling.md:5
msgid ""
"```rust,editable,compile_fail\n"
"fn main() {\n"
" let ref_x: &i32;\n"
" {\n"
" let x: i32 = 10;\n"
" ref_x = &x;\n"
" }\n"
" println!(\"ref_x: {ref_x}\");\n"
"}\n"
"```"
msgstr ""
#: src/basic-syntax/references-dangling.md:16
msgid ""
"* A reference is said to \"borrow\" the value it refers to.\n"
"* Rust is tracking the lifetimes of all references to ensure they live long\n"
" enough.\n"
"* We will talk more about borrowing when we get to ownership."
msgstr ""
"* ์ฐธ์กฐ๋ ์ด๋ค ๊ฐ์ \"๋น๋ฆฌ๋\" ๊ฒ์
๋๋ค.\n"
"* ๋ฌ์คํธ๋ ์ฐธ์กฐ ๋์์ ๊ฐ์ด, ๊ทธ ๊ฐ์ ๋ํ ๋ชจ๋ ์ฐธ์กฐ๋ค๋ณด๋ค ๋ ์ค๋ ์ด์์์์ ์ถ์ ํฉ๋๋ค.\n"
"* ์์ ๊ถ์ ๋ํ ์ฃผ์ ๋ฅผ ๋ค๋ฃฐ ๋ ์ด ๋น๋ฆผ์ ๋ํด ๋ ์์ธํ ์ด์ผ๊ธฐ ํ๊ฒ ์ต๋๋ค."
#: src/basic-syntax/slices.md:1
msgid "# Slices"
msgstr "# ์ฌ๋ผ์ด์ค"
#: src/basic-syntax/slices.md:3
msgid "A slice gives you a view into a larger collection:"
msgstr "์ฌ๋ผ์ด์ค๋ ํฐ ์ปฌ๋์
์ ์ผ๋ถ(ํน์ ์ ์ฒด)๋ฅผ ๋ณด์ฌ์ฃผ๋ ๋ทฐ(view)์
๋๋ค:"
#: src/basic-syntax/slices.md:5
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let a: [i32; 6] = [10, 20, 30, 40, 50, 60];\n"
" println!(\"a: {a:?}\");"
msgstr ""
#: src/basic-syntax/slices.md:10
msgid ""
" let s: &[i32] = &a[2..4];\n"
" println!(\"s: {s:?}\");\n"
"}\n"
"```"
msgstr ""
#: src/basic-syntax/slices.md:15
msgid ""
"* Slices borrow data from the sliced type.\n"
"* Question: What happens if you modify `a[3]`?"
msgstr ""
"* ์ฌ๋ผ์ด์ค๋ ๋ค๋ฅธ(์ฌ๋ผ์ด์ค ๋) ํ์
์ผ๋ก๋ถํฐ ๋ฐ์ดํฐ๋ฅผ '๋น๋ ค'์ต๋๋ค.\n"
"* ์ง๋ฌธ: `a[3]`์ ์์ ํ๋ฉด ๋ฌด์จ ์ผ์ด ์์ด๋ ๊น์?"
#: src/basic-syntax/slices.md:20
msgid "* We create a slice by borrowing `a` and specifying the starting and ending indexes in brackets."
msgstr "* ์ฌ๋ผ์ด์ค๋ ์ฐ์ `a`๋ฅผ ๋น๋ฆฐ๋ค์, ์์๊ณผ ๋ ์ธ๋ฑ์ค๋ฅผ ๋ธ๋ํท(`[]`)์์ ์ง์ ํด์ ๋ง๋ญ๋๋ค."
#: src/basic-syntax/slices.md:22
msgid ""
"* If the slice starts at index 0, Rustโs range syntax allows us to drop the starting index, meaning that `&a[0..a.len()]` and `&a[..a.len()]` are identical.\n"
" \n"
"* The same is true for the last index, so `&a[2..a.len()]` and `&a[2..]` are identical."
msgstr ""
"* ์ฌ๋ผ์ด์ค๊ฐ ์ธ๋ฑ์ค 0๋ถํฐ ์์ํ๋ค๋ฉด ์์ ์ธ๋ฑ์ค๋ ์๋ต ๊ฐ๋ฅํฉ๋๋ค. ์ฆ `&a[0..a.len()]`์ `&a[..a.len()]` ๋ ๋์ผํฉ๋๋ค.\n"
"* ๋ง์ง๋ง ์ธ๋ฑ์ค๋ ์๋ต ๊ฐ๋ฅํฉ๋๋ค. ๊ทธ๋์ `&a[2..a.len()]` ์ `&a[2..]`๋ ๋์ผํฉ๋๋ค."
#: src/basic-syntax/slices.md:26
msgid "* To easily create a slice of the full array, we can therefore use `&a[..]`."
msgstr "* ๋ฐ๋ผ์ ์ ์ฒด ๋ฐฐ์ด์ ๋ํ ์ฌ๋ผ์ด์ค๋ `&a[..]`๊ฐ ๋ฉ๋๋ค."
#: src/basic-syntax/slices.md:28
msgid ""
"* `s` is a reference to a slice of `i32`s. Notice that the type of `s` (`&[i32]`) no longer mentions the array length. This allows us to perform computation on slices of different sizes.\n"
" \n"
"* Slices always borrow from another object. In this example, `a` has to remain 'alive' (in scope) for at least as long as our slice. \n"
" \n"
"* The question about modifying `a[3]` can spark an interesting discussion, but the answer is that for memory safety reasons\n"
" you cannot do it through `a` after you created a slice, but you can read the data from both `a` and `s` safely. \n"
" More details will be explained in the borrow checker section."
msgstr ""
"* `s`๋ `i32`๋ค๋ก ์ด๋ฃจ์ด์ง ์ฌ๋ผ์ด์ค์ ๋ํ ์ฐธ์กฐ์
๋๋ค. `s`์ ํ์
(`&[i32]`)์ ๋ฐฐ์ด์ ํฌ๊ธฐ๊ฐ ๋น ์ ธ์์์ ์ฃผ๋ชฉํ์๊ธฐ ๋ฐ๋๋๋ค. ์ฆ, ์ฌ๋ผ์ด์ค๋ฅผ ์ด์ฉํ๋ฉด ๋ค์ํ ๊ธธ์ด์ ๋ฐ์ดํฐ๋ฅผ ๋ค๋ฃฐ ์ ์์ต๋๋ค.\n"
"* ์ฌ๋ผ์ด์ค๋ ํญ์ ๋ค๋ฅธ ๊ฐ์ฒด๋ก๋ถํฐ '๋น๋ ค' ์ต๋๋ค. ์ด ์์์์ ๊ฐ์ฒด `a`๋ ์ฌ๋ผ์ด์ค `s`๋ณด๋ค ๋ ์ค๋ ์ด์ ์์ด์ผ๋ง ํฉ๋๋ค.\n"
"* `a[3]`์ ๊ฐ์ ๋ฐ๊ฟ ์ ์๋๋ ์ง๋ฌธ์ ์ข์ ์ง๋ฌธ์
๋๋ค. ์ฌ๊ธฐ์ ๋ํ ๋ต์ `a`์ `s`๋ฅผ ํตํด ๋ฐ์ดํฐ๋ฅผ ์ฝ์ ์๋ ์์ง๋ง ์์ ํ ์๋ ์์ผ๋ฉฐ, ์ด๋ ๋ฉ๋ชจ๋ฆฌ ์์ ์ ์ํด์๋ผ๋ ๊ฒ์
๋๋ค. ์ ๊ทธ๋ฐ์ง์ ๋ํ ์ข๋ ๊ตฌ์ฒด์ ์ธ ๋ต์ ๋น๋ฆผ ๊ฒ์ฌ ๋ถ๋ถ์์ ์์ธํ ์ค๋ช
ํฉ๋๋ค."
#: src/basic-syntax/string-slices.md:1
msgid "# `String` vs `str`"
msgstr "# `String`๊ณผ `str`"
#: src/basic-syntax/string-slices.md:3
msgid "We can now understand the two string types in Rust:"
msgstr "์ด์ ๋ฌ์คํธ์ ๋ ๊ฐ์ง ๋ฌธ์์ด ํ์
์ ๋ํด์ ์ดํดํด ๋ณด๊ฒ ์ต๋๋ค:"
#: src/basic-syntax/string-slices.md:5
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let s1: &str = \"World\";\n"
" println!(\"s1: {s1}\");"
msgstr ""
#: src/basic-syntax/string-slices.md:10
msgid ""
" let mut s2: String = String::from(\"Hello \");\n"
" println!(\"s2: {s2}\");\n"
" s2.push_str(s1);\n"
" println!(\"s2: {s2}\");\n"
" \n"
" let s3: &str = &s2[6..];\n"
" println!(\"s3: {s3}\");\n"
"}\n"
"```"
msgstr ""
#: src/basic-syntax/string-slices.md:20
msgid "Rust terminology:"
msgstr "๋ฌ์คํธ ์ฉ์ด:"
#: src/basic-syntax/string-slices.md:22
msgid ""
"* `&str` an immutable reference to a string slice.\n"
"* `String` a mutable string buffer."
msgstr ""
"* `&str`์ ๋ฌธ์์ด ์ฌ๋ผ์ด์ค์ ๋ํ (๋ถ๋ณ) ์ฐธ์กฐ์
๋๋ค.\n"
"* `String`์ ๋ฌธ์์ด์ ๋ด์ ์ ์๋ ๋ฒํผ์
๋๋ค."
#: src/basic-syntax/string-slices.md:27
msgid ""
"* `&str` introduces a string slice, which is an immutable reference to UTF-8 encoded string data \n"
" stored in a block of memory. String literals (`โHelloโ`), are stored in the programโs binary."
msgstr "* `&str`์ ๋ฌธ์์ด ์ฌ๋ผ์ด์ค์ ๋ถ๋ณ ์ฐธ์กฐ์
๋๋ค. ๋ฌ์คํธ์์ ๋ฌธ์์ด์ UTF-8๋ก ์ธ์ฝ๋ฉ๋ ๋ฐ์ดํฐ๋ฅผ ์๋ฏธํฉ๋๋ค. ๋ฌธ์์ด ๋ฆฌํฐ๋ด(`\"Hello\"`)์ ํ๋ก๊ทธ๋จ ๋ฐ์ด๋๋ฆฌ์ ์ ์ฅ๋ฉ๋๋ค."
#: src/basic-syntax/string-slices.md:30
msgid ""
"* Rustโs `String` type is a wrapper around a vector of bytes. As with a `Vec`, it is owned.\n"
" \n"
"* As with many other types `String::from()` creates a string from a string literal; `String::new()` \n"
" creates a new empty string, to which string data can be added using the `push()` and `push_str()` methods."
msgstr ""
"* ๋ฌ์คํธ์ `String`ํ์
์ ์ค์ ๋ก๋ ๋ฌธ์์ด์ ์ด๋ฃจ๋ ๋ฐ์ดํธ์ ๋ํ ๋ฐฑํฐ(`Vec`)์
๋๋ค. `Vec`๊ฐ `T`๋ฅผ ์์ ํ๊ณ ์๋ฏ์ด, `String`์ด ๊ฐ๋ฆฌํค๊ณ ์๋ ๋ฌธ์์ด์ `String`์ ์์ ์
๋๋ค.\n"
"* ๋ค๋ฅธ ๋ง์ ํ์
๋ค์ฒ๋ผ `String::from`๋ ๋ฌธ์์ด ๋ฆฌํฐ๋ด๋ก๋ถํฐ ๋ฌธ์์ด์ ์์ฑํฉ๋๋ค. `String::new()`๋ ์๋ก์ด ๋น ๋ฌธ์์ด์ ์์ฑํฉ๋๋ค. `push()`์ `push_str()`๋ฉ์๋๋ฅผ ์ฌ์ฉํ์ฌ ๋ฌธ์์ด ๋ฐ์ดํฐ๋ฅผ ์ถ๊ฐ ํ ์ ์์ต๋๋ค."
#: src/basic-syntax/string-slices.md:35
msgid ""
"* The `format!()` macro is a convenient way to generate an owned string from dynamic values. It \n"
" accepts the same format specification as `println!()`.\n"
" \n"
"* You can borrow `&str` slices from `String` via `&` and optionally range selection.\n"
" \n"
"* For C++ programmers: think of `&str` as `const char*` from C++, but the one that always points \n"
" to a valid string in memory. Rust `String` is a rough equivalent of `std::string` from C++ \n"
" (main difference: it can only contain UTF-8 encoded bytes and will never use a small-string optimization).\n"
msgstr ""
"* `format!()` ๋งคํฌ๋ก๋ ๋ณ์์ ๊ฐ์ ๋ฌธ์์ด๋ก ๋ณํํ๋ ํธ๋ฆฌํ ๋ฐฉ๋ฒ์
๋๋ค. ์ด ๋งคํฌ๋ก๋ `println!()` ๋งคํฌ๋ก์ ๋์ผํ ํฌ๋งทํ
ํ์์ ์ง์ํฉ๋๋ค.\n"
"* `&`์ ๋ฒ์ ์ฐ์ฐ์๋ฅผ ์ด์ฉํ์ฌ `String`์์ `&str`์ฌ๋ผ์ด์ค๋ฅผ ๋น๋ ค์ฌ ์ ์์ต๋๋ค.\n"
"* ๋น์ ์ด C++ ํ๋ก๊ทธ๋๋จธ ๋ผ๋ฉด: `&str`๋ C++์ `const char*`์ ์ ์ฌํ์ง๋ง ํญ์ ์ ํจํ ๋ฌธ์์ด์ ๊ฐ๋ฆฌํจ๋ค๋ ์ ์ด ๋ค๋ฆ
๋๋ค. ๋ฌ์คํธ์ `String`์ C++์ `std::string` ๊ณผ ๋๋ต ๊ฑฐ์ ๋์ผํฉ๋๋ค. (์ฃผ์ ์ฐจ์ด์ : ๋ฌ์คํธ์ `String`์ UTF-8 ์ธ์ฝ๋ฉ ๋ฐ์ดํธ๋ง ํฌํจํ ์ ์์ผ๋ฉฐ ์์ ๋ฌธ์์ด ์ต์ ํ(small-string optimization)๋ ์ฌ์ฉํ์ง ์์ต๋๋ค.\n"
" \n"
#: src/basic-syntax/functions.md:1
msgid "# Functions"
msgstr "# ํจ์"
#: src/basic-syntax/functions.md:3
msgid "A Rust version of the famous [FizzBuzz](https://en.wikipedia.org/wiki/Fizz_buzz) interview question:"
msgstr "๋ฌ์คํธ ๋ฒ์ ์ [FizzBuzz](https://en.wikipedia.org/wiki/Fizz_buzz) ํจ์์
๋๋ค:"
#: src/basic-syntax/functions.md:5
msgid ""
"```rust,editable\n"
"fn main() {\n"
" fizzbuzz_to(20); // Defined below, no forward declaration needed\n"
"}"
msgstr ""
"```rust,editable\n"
"fn main() {\n"
" fizzbuzz_to(20); //C/C++ ์ ๋ฌ๋ฆฌ ํธ์ถ๋ถ ํ๋จ์ ์ ์ํด๋ ๋ฌธ์ ์์ต๋๋ค.\n"
"}"
#: src/basic-syntax/functions.md:10
msgid ""
"fn is_divisible_by(lhs: u32, rhs: u32) -> bool {\n"
" if rhs == 0 {\n"
" return false; // Corner case, early return\n"
" }\n"
" lhs % rhs == 0 // The last expression in a block is the return value\n"
"}"
msgstr ""
"fn is_divisible_by(lhs: u32, rhs: u32) -> bool {\n"
" if rhs == 0 {\n"
" return false; // Corner case์ด๋ฏ๋ก ๋ฐํํฉ๋๋ค.\n"
" }\n"
" lhs % rhs == 0 // ๋ง์ง๋ง ํํ์์ ๋ฐํ ๊ฐ์
๋๋ค.(;์์์ ์ฃผ๋ชฉ)\n"
"}"
#: src/basic-syntax/functions.md:17
msgid ""
"fn fizzbuzz(n: u32) -> () { // No return value means returning the unit type `()`\n"
" match (is_divisible_by(n, 3), is_divisible_by(n, 5)) {\n"
" (true, true) => println!(\"fizzbuzz\"),\n"
" (true, false) => println!(\"fizz\"),\n"
" (false, true) => println!(\"buzz\"),\n"
" (false, false) => println!(\"{n}\"),\n"
" }\n"
"}"
msgstr ""
"fn fizzbuzz(n: u32) -> () { // `()`๋ ๋ฐํ๊ฐ์ด ์๋ค๋ ๊ฒ์ ์๋ฏธํฉ๋๋ค. \n"
" match (is_divisible_by(n, 3), is_divisible_by(n, 5)) {\n"
" (true, true) => println!(\"fizzbuzz\"),\n"
" (true, false) => println!(\"fizz\"),\n"
" (false, true) => println!(\"buzz\"),\n"
" (false, false) => println!(\"{n}\"),\n"
" }\n"
"}"
#: src/basic-syntax/functions.md:26
msgid ""
"fn fizzbuzz_to(n: u32) { // `-> ()` is normally omitted\n"
" for i in 1..=n {\n"
" fizzbuzz(i);\n"
" }\n"
"}\n"
"```"
msgstr ""
"fn fizzbuzz_to(n: u32) { // `-> ()` ๋ ์ผ๋ฐ์ ์ผ๋ก ์๋ตํฉ๋๋ค.\n"
" for i in 1..=n {\n"
" fizzbuzz(i);\n"
" }\n"
"}\n"
"```"
#: src/basic-syntax/functions.md:35
msgid ""
"* We refer in `main` to a function written below. Neither forward declarations nor headers are necessary. \n"
"* Declaration parameters are followed by a type (the reverse of some programming languages), then a return type.\n"
"* The last expression in a function body (or any block) becomes the return value. Simply omit the `;` at the end of the expression.\n"
"* Some functions have no return value, and return the 'unit type', `()`. The compiler will infer this if the `-> ()` return type is omitted.\n"
"* The range expression in the `for` loop in `fizzbuzz_to()` contains `=n`, which causes it to include the upper bound.\n"
"* The `match` expression in `fizzbuzz()` is doing a lot of work. It is expanded below to show what is happening."
msgstr ""
"* `main` ํจ์์์ ๊ทธ ๋ค์์ ์ค๋ ํจ์๋ค์ ์ฌ์ฉํ ์ ์์ต๋๋ค. ์๋จ์ ์ ์ธ์ด๋ ํค๋ ๊ฐ์๊ฑด ํ์ ์์ต๋๋ค.\n"
"* ๋งค๊ฐ๋ณ์๋ฅผ ์ ์ธํ ๋์๋ ์ด๋ฆ์ ๋จผ์ ์ฐ๊ณ , ํ์
์ ๋์ค์ ์๋๋ค. ์ด๋ฆ๊ณผ ํ์
์ `:` ๋ก ๊ตฌ๋ถํฉ๋๋ค. ์ด๋ ์ผ๋ถ ์ธ์ด(์๋ฅผ ๋ค์ด C)์ ๋ฐ๋์์ ์ ์ํ์๊ธฐ ๋ฐ๋๋๋ค. ๋ง์ฐฌ๊ฐ์ง๋ก, ๋ฆฌํด ํ์
๋ ํจ์์ ์์์ด ์๋ ๊ฐ์ฅ ๋ท๋ถ๋ถ์ ์ ์ธํฉ๋๋ค.\n"
"* ํจ์ ๋ณธ๋ฌธ์ ๋ง์ง๋ง ํํ์์ ๋ฐํ ๊ฐ์ด ๋ฉ๋๋ค. ๊ฐ๋จํ, ์ ๋์ ์๋ `;`๋ฅผ ์๋ตํ๋ฉด ๋ฉ๋๋ค.\n"
"* ๋ฐํ๊ฐ์ด ์๋ ํจ์์ ๊ฒฝ์ฐ, ์ ๋ ํ์
`()`์ ๋ฐํํฉ๋๋ค. `-> ()`๊ฐ ์๋ต๋ ๊ฒฝ์ฐ ์ปดํ์ผ๋ฌ๋ ์ด๋ฅผ ์ถ๋ก ํฉ๋๋ค.\n"
"* `fizzbuzz_to()`ํจ์ ๋ด `for` ๋ฐ๋ชฉ๋ฌธ์ ๋ฒ์ ํํ์ ์ค `=n`์ n๊น์ง ํฌํจํ๋ค๋ ์๋ฏธ์
๋๋ค.\n"
"* `fizzbuzz()`ํจ์์ `match` ํํ์์ ๋ง์ ์ผ์ ํฉ๋๋ค. ๋ฌด์จ ์ผ์ด ์ผ์ด๋๋์ง ์กฐ๊ธ ๋ ์ดํดํ๊ธฐ ์ฝ๋๋ก ์๋ ์ฝ๋๋ฅผ ํ์ธํ์๊ธฐ ๋ฐ๋๋๋ค."
#: src/basic-syntax/functions.md:42
msgid " (Type annotations added for clarity, but they can be elided.)"
msgstr " (๋ช
ํํ ์ค๋ช
์ ์ํด ํ์
์ด ๋ช
์์ ์ผ๋ก ์ ์ธ ๋์์ง๋ง ์๋ต ๊ฐ๋ฅํฉ๋๋ค.)"
#: src/basic-syntax/functions.md:44
msgid ""
" ```rust,ignore\n"
" let by_3: bool = is_divisible_by(n, 3);\n"
" let by_5: bool = is_divisible_by(n, 5);\n"
" let by_35: (bool, bool) = (by_3, by_5);\n"
" match by_35 {\n"
" // ...\n"
" ```"
msgstr ""
#: src/basic-syntax/functions.md:52
msgid " "
msgstr ""
#: src/basic-syntax/methods.md:1 src/methods.md:1
msgid "# Methods"
msgstr "# ๋ฉ์๋"
#: src/basic-syntax/methods.md:3
msgid ""
"Rust has methods, they are simply functions that are associated with a particular type. The\n"
"first argument of a method is an instance of the type it is associated with:"
msgstr "๋ฌ์คํธ์ ๋ฉ์๋๋ ํน์ ํ์
๊ณผ ์ฐ๊ฒฐ๋ ํจ์์
๋๋ค. ๋ฉ์๋์ ์ฒซ๋ฒ์งธ ์ธ์์ ํ์
์ด ๋ฐ๋ก ๊ทธ ๋ฉ์๋๊ฐ ์ฐ๊ฒฐ๋ ํ์
์
๋๋ค:"
#: src/basic-syntax/methods.md:6
msgid ""
"```rust,editable\n"
"struct Rectangle {\n"
" width: u32,\n"
" height: u32,\n"
"}"
msgstr ""
#: src/basic-syntax/methods.md:12
msgid ""
"impl Rectangle {\n"
" fn area(&self) -> u32 {\n"
" self.width * self.height\n"
" }"
msgstr ""
#: src/basic-syntax/methods.md:17
msgid ""
" fn inc_width(&mut self, delta: u32) {\n"
" self.width += delta;\n"
" }\n"
"}"
msgstr ""
#: src/basic-syntax/methods.md:22
msgid ""
"fn main() {\n"
" let mut rect = Rectangle { width: 10, height: 5 };\n"
" println!(\"old area: {}\", rect.area());\n"
" rect.inc_width(5);\n"
" println!(\"new area: {}\", rect.area());\n"
"}\n"
"```"
msgstr ""
#: src/basic-syntax/methods.md:30
msgid "* We will look much more at methods in today's exercise and in tomorrow's class."
msgstr "* ์ค๋๊ณผ ๋ด์ผ ๊ฐ์์์ ๋ ๋ง์ ๋ฉ์๋ ์ฌ์ฉ๋ฒ์ ๋ค๋ฃฐ ๊ฒ์
๋๋ค."
#: src/basic-syntax/functions-interlude.md:1
msgid "# Function Overloading"
msgstr "# (ํจ์) ์ค๋ฒ๋ก๋ฉ"
#: src/basic-syntax/functions-interlude.md:3
msgid "Overloading is not supported:"
msgstr "์ค๋ฒ๋ก๋ฉ์ ์ง์๋์ง ์์ต๋๋ค:"
#: src/basic-syntax/functions-interlude.md:5
msgid ""
"* Each function has a single implementation:\n"
" * Always takes a fixed number of parameters.\n"
" * Always takes a single set of parameter types.\n"
"* Default values are not supported:\n"
" * All call sites have the same number of arguments.\n"
" * Macros are sometimes used as an alternative."
msgstr ""
"* ๊ฐ๋ณํจ์๋ ๋จ์ผ ๊ตฌํ๋ง ๊ฐ์ต๋๋ค.\n"
" * ํญ์ ๊ณ ์ ๋ ์์ ํ๋ผ๋งคํฐ๋ง ๊ฐ์ต๋๋ค.\n"
" * ํ๋ผ๋งคํฐ๋ค์ ํ์
์ ํญ์ ๊ณ ์ ๋์ด ์์ต๋๋ค.\n"
"* ํ๋ผ๋งคํฐ์ ๊ธฐ๋ณธ ๊ฐ์ ์ง์๋์ง ์์ต๋๋ค.\n"
" * ๋ชจ๋ ํธ์ถ๋ถ์์๋ ๋์ผํ ์์ ์ธ์๋ฅผ ์ค์ ํด์ผํฉ๋๋ค. \n"
" * ์ด๋ฐ ์ฌํญ๋ค์ด ์ ์ฝ์ด ๋ ๊ฒฝ์ฐ, ๋์์ผ๋ก ๋งคํฌ๋ก๋ฅผ ์ฌ์ฉํ๊ธฐ๋ ํฉ๋๋ค."
#: src/basic-syntax/functions-interlude.md:12
msgid "However, function parameters can be generic:"
msgstr "ํ์ง๋ง, ํจ์์ ๋งค๊ฐ๋ณ์๋ ์ ๋ค๋ฆญ์ ์ ์ฉํ ์ ์์ต๋๋ค:"
#: src/basic-syntax/functions-interlude.md:14
msgid ""
"```rust,editable\n"
"fn pick_one(a: T, b: T) -> T {\n"
" if std::process::id() % 2 == 0 { a } else { b }\n"
"}"
msgstr ""
#: src/basic-syntax/functions-interlude.md:19
msgid ""
"fn main() {\n"
" println!(\"coin toss: {}\", pick_one(\"heads\", \"tails\"));\n"
" println!(\"cash prize: {}\", pick_one(500, 1000));\n"
"}\n"
"```"
msgstr ""
#: src/basic-syntax/functions-interlude.md:27
msgid ""
"* When using generics, the standard library's `Into` can provide a kind of limited\n"
" polymorphism on argument types. We will see more details in a later section."
msgstr "* ์ ๋ค๋ฆญ์ ์ฌ์ฉํ ๋ ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ `Into`์ ํ์
์ ๋ํ ๋คํ์ฑ์ ์ ๊ณตํ ์ ์์ต๋๋ค. ๋์ค์ ์์ธํ ์ค๋ช
ํ๊ฒ ์ต๋๋ค."
#: src/basic-syntax/functions-interlude.md:30
msgid ""
msgstr ""
#: src/exercises/day-1/morning.md:1
msgid "# Day 1: Morning Exercises"
msgstr "# 1์ผ์ฐจ ์ค์ ์ฐ์ต๋ฌธ์ "
#: src/exercises/day-1/morning.md:3
msgid "In these exercises, we will explore two parts of Rust:"
msgstr "์ด๋ฒ ์ฐ์ต๋ฌธ์ ๋ ๋ฌ์คํธ์ ๋ ๋ถ๋ถ์ ์์๋ณผ ๊ฒ์
๋๋ค:"
#: src/exercises/day-1/morning.md:5
msgid "* Implicit conversions between types."
msgstr "* ํ์
์ ๋ฌต์์ ๋ณํ."
#: src/exercises/day-1/morning.md:7
msgid "* Arrays and `for` loops."
msgstr "* ๋ฐฐ์ด๊ณผ `for` ๋ฐ๋ณต๋ฌธ."
#: src/exercises/day-1/morning.md:11
msgid "A few things to consider while solving the exercises:"
msgstr "์ฐ์ต๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋๋ฐ ๊ณ ๋ คํด์ผ ํ ์ฌํญ๋ค:"
#: src/exercises/day-1/morning.md:13
msgid ""
"* Use a local Rust installation, if possible. This way you can get\n"
" auto-completion in your editor. See the page about [Using Cargo] for details\n"
" on installing Rust."
msgstr "* ๊ฐ๋ฅํ๋ค๋ฉด ๋ฌ์คํธ๊ฐ ์ค์น๋ ๋ก์ปฌ ํ๊ฒฝ์์ ์งํํ์ธ์. ๊ทธ๋ฌ๋ ํธ์ด ํ
์คํธ ์๋ํฐ์ ์๋์์ฑ ๊ธฐ๋ฅ์ ๋์์ ๋ฐ์ ์ ์์ด์ ์ข์ต๋๋ค. [์นด๊ณ ์ฌ์ฉํ๊ธฐ][Using Cargo] ์ ์ฐธ์กฐํ์๊ธฐ ๋ฐ๋๋๋ค."
#: src/exercises/day-1/morning.md:17
msgid "* Alternatively, use the Rust Playground."
msgstr "* ํน์ ๋ฌ์คํธ ํ๋ ์ด๊ทธ๋ผ์ด๋๋ฅผ ์ด์ฉํ ์ ์์ต๋๋ค."
#: src/exercises/day-1/morning.md:19
msgid ""
"The code snippets are not editable on purpose: the inline code snippets lose\n"
"their state if you navigate away from the page."
msgstr "ํ์ด์ง ๋ฐ์ผ๋ก ์ด๋ํ ๊ฒฝ์ฐ ์์ฑํ ๋ด์ฉ์ด ์์ค๋๊ธฐ ๋๋ฌธ์ ์ ๊ณต๋๋ ์ฝ๋ ์ค๋ํซ์ ์๋์ ์ผ๋ก ํธ์งํ ์ ์์ต๋๋ค."
#: src/exercises/day-1/morning.md:22 src/exercises/day-1/afternoon.md:11
#: src/exercises/day-2/morning.md:11 src/exercises/day-2/afternoon.md:7
#: src/exercises/day-3/morning.md:7 src/exercises/day-4/morning.md:12
msgid "After looking at the exercises, you can look at the [solutions] provided."
msgstr "์ฐ์ต๋ฌธ์ ๋ฅผ ์ดํด ๋ณธ ํ, ์ ๊ณต๋ [ํด๋ต][solutions]์ ์ดํด๋ณผ ์ ์์ต๋๋ค."
#: src/exercises/day-1/morning.md:24 src/exercises/day-2/morning.md:13
#: src/exercises/day-3/morning.md:9 src/exercises/day-4/morning.md:14
msgid "[solutions]: solutions-morning.md"
msgstr ""
#: src/exercises/day-1/morning.md:26
msgid "[Using Cargo]: ../../cargo.md"
msgstr ""
#: src/exercises/day-1/implicit-conversions.md:1
msgid "# Implicit Conversions"
msgstr "# ๋ฌต์์ ํ๋ณํ"
#: src/exercises/day-1/implicit-conversions.md:3
msgid ""
"Rust will not automatically apply _implicit conversions_ between types ([unlike\n"
"C++][3]). You can see this in a program like this:"
msgstr "๋ฌ์คํธ๋ [C++ ์ ๋ค๋ฅด๊ฒ][3] ํ์
๊ฐ *๋ฌต์์ ๋ณํ*์ ์๋์ผ๋ก ์ ์ฉํ์ง ์์ต๋๋ค. ์๋ ์์๋ฅผ ํ์ธํด ๋ณด์ธ์:"
#: src/exercises/day-1/implicit-conversions.md:6
msgid ""
"```rust,editable,compile_fail\n"
"fn multiply(x: i16, y: i16) -> i16 {\n"
" x * y\n"
"}"
msgstr ""
#: src/exercises/day-1/implicit-conversions.md:11
msgid ""
"fn main() {\n"
" let x: i8 = 15;\n"
" let y: i16 = 1000;"
msgstr ""
#: src/exercises/day-1/implicit-conversions.md:15
msgid ""
" println!(\"{x} * {y} = {}\", multiply(x, y));\n"
"}\n"
"```"
msgstr ""
#: src/exercises/day-1/implicit-conversions.md:19
msgid ""
"The Rust integer types all implement the [`From`][1] and [`Into`][2]\n"
"traits to let us convert between them. The `From` trait has a single `from()`\n"
"method and similarly, the `Into` trait has a single `into()` method.\n"
"Implementing these traits is how a type expresses that it can be converted into\n"
"another type."
msgstr "๋ฌ์คํธ์ ์ ์ํ ํ์
์ ๋ชจ๋ [`From`][1] ์ [`Into`][2] ํธ๋ ์์ ๊ตฌํํ๊ณ ์์ผ๋ฉฐ, ์ด๋ฅผ ํตํด ํ์
๋ณํ์ด ์ด๋ฃจ์ด ์ง๋๋ค. `From` ํธ๋ ์์ `from()` ๋ฉ์๋๋ฅผ ๊ฐ์ง๊ณ ์๊ณ , `Into`ํธ๋ ์์ `into()` ๋ฉ์๋๋ฅผ ๊ฐ์ง๊ณ ์์ต๋๋ค. ๋ฌ์คํธ์์๋ `From`๊ณผ `Into` ํธ๋ ์์ ๊ตฌํํจ์ผ๋ก์จ, ํ์
๊ฐ ๋ณํ์ด ๊ฐ๋ฅํ๋ค๋ ๊ฒ์ ํํํฉ๋๋ค."
#: src/exercises/day-1/implicit-conversions.md:25
msgid ""
"The standard library has an implementation of `From for i16`, which means\n"
"that we can convert a variable `x` of type `i8` to an `i16` by calling \n"
"`i16::from(x)`. Or, simpler, with `x.into()`, because `From for i16`\n"
"implementation automatically create an implementation of `Into for i8`."
msgstr "ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ์๋ `From for i16`๊ฐ ๊ตฌํ๋์ด ์๋๋ฐ ์ด๊ฒ์ `i8` ํ์
์ ๋ณ์ `x`๋ฅผ `i16::from(x)`๋ฅผ ํธ์ถํ์ฌ `i16`ํ์
์ผ๋ก ๋ณํํ ์ ์๋ค๋ ์๋ฏธ์
๋๋ค. ํน์ ๋ ๊ฐ๋จํ๊ฒ `x.into()`๋ฅผ ์ฌ์ฉํ ์๋ ์์ต๋๋ค. ์ด๊ฒ์ด ๊ฐ๋ฅํ ์ด์ ๋ `From for i16` ๊ตฌํ์ ๊ฐ์ง๊ณ ์์ผ๋ฉด `Into for i8` ๊ตฌํ์ด ์๋์ผ๋ก ์์ฑ๋๊ธฐ ๋๋ฌธ์
๋๋ค."
#: src/exercises/day-1/implicit-conversions.md:30
msgid ""
"The same applies for your own `From` implementations for your own types, so it is\n"
"sufficient to only implement `From` to get a respective `Into` implementation automatically."
msgstr "์ด๋ ์ฌ์ฉ์ ์ ์ ํ์
์๋ ๋์ผํ๊ฒ ์ ์ฉ๋๋ ๊ท์น์
๋๋ค. ๋ฐ๋ผ์ `From`๋ง์ ๊ตฌํํด๋ `Into`๊น์ง ์๋์ผ๋ก ๊ตฌํ์ด ๋ฉ๋๋ค."
#: src/exercises/day-1/implicit-conversions.md:33
msgid "1. Execute the above program and look at the compiler error."
msgstr "1. ์ ์์ ์ฝ๋๋ฅผ ์คํํ๊ณ ์ด๋ค ์ปดํ์ผ ์๋ฌ๊ฐ ๋ฐ์ํ๋์ง ํ์ธํด ๋ณด์ธ์."
#: src/exercises/day-1/implicit-conversions.md:35
msgid "2. Update the code above to use `into()` to do the conversion."
msgstr "2. `into()`๋ฅผ ์ฌ์ฉํ์ฌ ์ฝ๋๋ฅผ ์์ ํ์ธ์."
#: src/exercises/day-1/implicit-conversions.md:37
msgid ""
"3. Change the types of `x` and `y` to other things (such as `f32`, `bool`,\n"
" `i128`) to see which types you can convert to which other types. Try\n"
" converting small types to big types and the other way around. Check the\n"
" [standard library documentation][1] to see if `From` is implemented for\n"
" the pairs you check."
msgstr "3. `x`์ `y`๋ฅผ `f32`์ด๋ `bool`, `i128` ๋ฑ์ผ๋ก ๋ฐ๊ฟ์ ํด๋น ํ์
๋ค๋ก ๋ณํ์ด ๋๋์ง ํ์ธํด๋ณด์ธ์. ์์ ์ฌ์ด์ฆ ํ์
์์ ํฐ ์ฌ์ด์ฆ๋ก ๋ณ๊ฒฝํด๋ณด์๊ณ ๊ทธ ๋ฐ๋๋ก๋ ํด๋ณด์ธ์. [ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ฌธ์][1]์์ ์๋ํด ๋ณธ ์ผ์ด์ค๊ฐ ๊ตฌํ๋์ด ์๋์ง ํ์ธํด ๋ณด์ธ์."
#: src/exercises/day-1/implicit-conversions.md:43
msgid ""
"[1]: https://doc.rust-lang.org/std/convert/trait.From.html\n"
"[2]: https://doc.rust-lang.org/std/convert/trait.Into.html\n"
"[3]: https://en.cppreference.com/w/cpp/language/implicit_conversion"
msgstr ""
#: src/exercises/day-1/for-loops.md:1
msgid "# Arrays and `for` Loops"
msgstr "# ๋ฐฐ์ด๊ณผ `for`๋ฐ๋ณต๋ฌธ"
#: src/exercises/day-1/for-loops.md:3
msgid "We saw that an array can be declared like this:"
msgstr "๋ฐฐ์ด์ ์๋์ ๊ฐ์ด ์ ์ธ ํ ์ ์์์ ๋ฐฐ์ ์ต๋๋ค:"
#: src/exercises/day-1/for-loops.md:5
msgid ""
"```rust\n"
"let array = [10, 20, 30];\n"
"```"
msgstr ""
#: src/exercises/day-1/for-loops.md:9
msgid "You can print such an array by asking for its debug representation with `{:?}`:"
msgstr "๋ฐฐ์ด์ ์ถ๋ ฅํ๋ ค๋ฉด `{:?}`๋ฅผ ์๋๋ค:"
#: src/exercises/day-1/for-loops.md:11
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let array = [10, 20, 30];\n"
" println!(\"array: {array:?}\");\n"
"}\n"
"```"
msgstr ""
#: src/exercises/day-1/for-loops.md:18
msgid ""
"Rust lets you iterate over things like arrays and ranges using the `for`\n"
"keyword:"
msgstr "๋ฌ์คํธ์์๋ `for` ํค์๋๋ฅผ ์ฌ์ฉํด ๋ฐฐ์ด์ด๋ ๋ฒ์๋ฅผ ๋ฐ๋ณตํ ์ ์์ต๋๋ค:"
#: src/exercises/day-1/for-loops.md:21
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let array = [10, 20, 30];\n"
" print!(\"Iterating over array:\");\n"
" for n in array {\n"
" print!(\" {n}\");\n"
" }\n"
" println!();"
msgstr ""
#: src/exercises/day-1/for-loops.md:30
msgid ""
" print!(\"Iterating over range:\");\n"
" for i in 0..3 {\n"
" print!(\" {}\", array[i]);\n"
" }\n"
" println!();\n"
"}\n"
"```"
msgstr ""
#: src/exercises/day-1/for-loops.md:38
msgid ""
"Use the above to write a function `pretty_print` which pretty-print a matrix and\n"
"a function `transpose` which will transpose a matrix (turn rows into columns):"
msgstr "์ ์ฝ๋๋ฅผ ์ด์ฉํด์, ํ๋ ฌ์ ์์๊ฒ ์ถ๋ ฅํ๋ `pretty_print`ํจ์์, ํ๋ ฌ์ ์ ์น(ํ๊ณผ ์ด์ ์๋ก ๋ฐ๊พธ๋)์ํค๋ `transpose`ํจ์๋ฅผ ์์ฑํด ๋ณด์๊ธฐ ๋ฐ๋๋๋ค:"
#: src/exercises/day-1/for-loops.md:41
msgid ""
"```bob\n"
" โโก1 2 3โคโ โก1 4 7โค\n"
"\"transpose\"โโข4 5 6โฅโ \"==\"โข2 5 8โฅ\n"
" โโฃ7 8 9โฆโ โฃ3 6 9โฆ\n"
"```"
msgstr ""
#: src/exercises/day-1/for-loops.md:47
msgid "Hard-code both functions to operate on 3 ร 3 matrices."
msgstr "๋ ํจ์ ๋ชจ๋ ํ๋ ฌ์ ํฌ๊ธฐ๋ 3 x 3 ์ผ๋ก ํ๋์ฝ๋ฉ ํฉ๋๋ค."
#: src/exercises/day-1/for-loops.md:49
msgid ""
"Copy the code below to and implement the\n"
"functions:"
msgstr "์๋ ์ฝ๋๋ฅผ ์ ๋ณต์ฌํด์ ๊ตฌํํ์๋ฉด ๋ฉ๋๋ค:"
#: src/exercises/day-1/for-loops.md:52
#: src/exercises/day-2/health-statistics.md:13
msgid ""
"```rust,should_panic\n"
"// TODO: remove this when you're done with your implementation.\n"
"#![allow(unused_variables, dead_code)]"
msgstr ""
"```rust,should_panic\n"
"// TODO: ๊ตฌํ์ด ์๋ฃ๋๋ฉด ์๋ ์ค์ ์ญ์ ํฉ๋๋ค.\n"
"#![allow(unused_variables, dead_code)]"
#: src/exercises/day-1/for-loops.md:56
msgid ""
"fn transpose(matrix: [[i32; 3]; 3]) -> [[i32; 3]; 3] {\n"
" unimplemented!()\n"
"}"
msgstr ""
#: src/exercises/day-1/for-loops.md:60
msgid ""
"fn pretty_print(matrix: &[[i32; 3]; 3]) {\n"
" unimplemented!()\n"
"}"
msgstr ""
#: src/exercises/day-1/for-loops.md:64
msgid ""
"fn main() {\n"
" let matrix = [\n"
" [101, 102, 103], // <-- the comment makes rustfmt add a newline\n"
" [201, 202, 203],\n"
" [301, 302, 303],\n"
" ];"
msgstr ""
#: src/exercises/day-1/for-loops.md:71
#: src/exercises/day-1/solutions-morning.md:70
msgid ""
" println!(\"matrix:\");\n"
" pretty_print(&matrix);"
msgstr ""
#: src/exercises/day-1/for-loops.md:74
msgid ""
" let transposed = transpose(matrix);\n"
" println!(\"transposed:\");\n"
" pretty_print(&transposed);\n"
"}\n"
"```"
msgstr ""
#: src/exercises/day-1/for-loops.md:80
msgid "## Bonus Question"
msgstr "## ๋ณด๋์ค ๋ฌธ์ "
#: src/exercises/day-1/for-loops.md:82
msgid ""
"Could you use `&[i32]` slices instead of hard-coded 3 ร 3 matrices for your\n"
"argument and return types? Something like `&[&[i32]]` for a two-dimensional\n"
"slice-of-slices. Why or why not?"
msgstr "`&[i32]`์ฌ๋ผ์ด์ค๋ฅผ ์ ์ด์ฉํ๋ฉด ํ๋ ฌ ํฌ๊ธฐ๋ฅผ 3 x 3์ผ๋ก ํ๋์ฝ๋ฉ ํ์ง ์์ ์ ์์๊น์? ์์ปจ๋ฐ `&[&[i32]]`๋ 2์ฐจ์ ์ฌ๋ผ์ด์ค์ ์ฌ๋ผ์ด์ค ์
๋๋ค. ๊ฐ๋ฅํ๋ค๋ฉด/ํ์ง ์๋ค๋ฉด ์ ๊ทธ๋ฐ๊ฐ์?"
#: src/exercises/day-1/for-loops.md:87
msgid ""
"See the [`ndarray` crate](https://docs.rs/ndarray/) for a production quality\n"
"implementation."
msgstr "์์ฉ ํ์ง์ ๊ตฌํ์ ๋ํด์๋ [`ndarray` ํฌ๋ ์ดํธ](https://docs.rs/ndarray/)๋ฅผ ์ฐธ์กฐํ์๊ธฐ ๋ฐ๋๋๋ค."
#: src/exercises/day-1/for-loops.md:92
msgid ""
"The solution and the answer to the bonus section are available in the \n"
"[Solution](solutions-morning.md#arrays-and-for-loops) section."
msgstr "๋ณด๋์ค ๋ฌธ์ ์ ๋ํ ๋ต๋ณ ์ญ์ [ํด๋ต](solutions-morning.md#arrays-and-for-loops)์์ ํ์ธํ ์ ์์ต๋๋ค."
#: src/basic-syntax/variables.md:1
msgid "# Variables"
msgstr "# ๋ณ์"
#: src/basic-syntax/variables.md:3
msgid ""
"Rust provides type safety via static typing. Variable bindings are immutable by\n"
"default:"
msgstr "๋ฌ์คํธ๋ ์ ์ ํ์ดํ์ ํตํด ํ์
์์ ์ฑ์ ์ ๊ณตํฉ๋๋ค. ๋ณ์๋ ๊ธฐ๋ณธ์ ์ผ๋ก ๋ถ๋ณ(immutable)ํฉ๋๋ค:"
#: src/basic-syntax/variables.md:6
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let x: i32 = 10;\n"
" println!(\"x: {x}\");\n"
" // x = 20;\n"
" // println!(\"x: {x}\");\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn main() {\n"
" let x: i32 = 10;\n"
" println!(\"x: {x}\");\n"
" // x = 20;\n"
" // println!(\"x: {x}\");\n"
"}\n"
"```"
#: src/basic-syntax/variables.md:17
msgid ""
"* Due to type inference the `i32` is optional. We will gradually show the types less and less as the course progresses.\n"
"* Note that since `println!` is a macro, `x` is not moved, even using the function like syntax of `println!(\"x: {}\", x)`"
msgstr ""
"* ํ์
์ถ๋ก ์ ๋๋ถ์ `i32`๋ ์๋ต ๊ฐ๋ฅํฉ๋๋ค. ๊ฐ์๊ฐ ์งํ๋ ์๋ก ์๋ต ๊ฐ๋ฅํ ๋ถ๋ถ์ ์ ์ ์๋ตํ ๊ฒ์
๋๋ค.\n"
"* `println!(\"x: {}\", x)`๋ ํจ์ ํธ์ถ ์ฒ๋ผ ๋ณด์ด์ง๋ง ์ค์ ๋งคํฌ๋ก ํธ์ถ์ด๋ฉฐ `x`๋ ์ด๋๋์ง ์์ต๋๋ค."
#: src/basic-syntax/type-inference.md:1
msgid "# Type Inference"
msgstr "# ํ์
์ถ๋ก "
#: src/basic-syntax/type-inference.md:3
msgid "Rust will look at how the variable is _used_ to determine the type:"
msgstr "๋ฌ์คํธ๋ ๋ณ์๊ฐ ์ด๋ป๊ฒ ์ฌ์ฉ๋๋์ง๋ฅผ ๋ณด๊ณ ๊ทธ ๋ณ์์ ํ์
์ ์ถ๋ก ํฉ๋๋ค:"
#: src/basic-syntax/type-inference.md:5
msgid ""
"```rust,editable\n"
"fn takes_u32(x: u32) {\n"
" println!(\"u32: {x}\");\n"
"}"
msgstr ""
#: src/basic-syntax/type-inference.md:10
msgid ""
"fn takes_i8(y: i8) {\n"
" println!(\"i8: {y}\");\n"
"}"
msgstr ""
#: src/basic-syntax/type-inference.md:14
msgid ""
"fn main() {\n"
" let x = 10;\n"
" let y = 20;"
msgstr ""
#: src/basic-syntax/type-inference.md:18
msgid ""
" takes_u32(x);\n"
" takes_i8(y);\n"
" // takes_u32(y);\n"
"}\n"
"```"
msgstr ""
#: src/basic-syntax/type-inference.md:26
msgid ""
"This slide demonstrates how the Rust compiler infers types based on constraints given by variable declarations and usages.\n"
" \n"
msgstr ""
"์ด ์ฌ๋ผ์ด๋๋, ๋ฌ์คํธ ์ปดํ์ผ๋ฌ๊ฐ ๋ณ์๊ฐ ์ด๋ป๊ฒ ์ ์ธ๋์ด ์๊ณ , ์ด๋ป๊ฒ ์ฌ์ฉ๋๋์ง๋ฅผ ์ ์ฝ ์กฐ๊ฑด์ผ๋ก ์ผ์์ ๋ณ์์ ํ์
์ ์ถ๋ก ํ๋ ๋ชจ์ต์ ๋ณด์ฌ์ค๋๋ค.\n"
" \n"
msgid ""
"It is very important to emphasize that variables declared like this are not of some sort of dynamic \"any type\" that can\n"
"hold any data. The machine code generated by such declaration is identical to the explicit declaration of a type.\n"
"The compiler does the job for us and helps us write more concise code."
msgstr "์ด ์ฌ๋ผ์ด๋๋, ๋ฌ์คํธ ์ปดํ์ผ๋ฌ๊ฐ ๋ณ์๊ฐ ์ด๋ป๊ฒ ์ ์ธ๋์ด ์๊ณ , ์ด๋ป๊ฒ ์ฌ์ฉ๋๋์ง๋ฅผ ์ ์ฝ ์กฐ๊ฑด์ผ๋ก ์ผ์์ ๋ณ์์ ํ์
์ ์ถ๋ก ํ๋ ๋ชจ์ต์ ๋ณด์ฌ์ค๋๋ค. ์ฌ๊ธฐ์ ์ค์ํ ๊ฒ์, ์ด๋ ๊ฒ ๋ช
์์ ์ธ ํ์
์ ์๋ตํ๊ณ ์ ์ธ๋์๋ค๊ณ ํด์ \"์ด๋ค ํ์
\"์ด๋ผ๋ ๋ค ๋ด์ ์ ์๋ ํ์
์ด ๋๋ ๊ฒ์ ์๋๋ผ๋ ์ ์
๋๋ค. ๋ช
์์ ์ธ ํ์
์ ์ธ์ด ์๋ ์๋, ์ปดํ์ผ๋ฌ๊ฐ ์์ฑํ ๋จธ์ ์ฝ๋๋ ๋์ผํฉ๋๋ค. ์ปดํ์ผ๋ฌ๋ ๋จ์ง ํ์
์ ์ธ์ ์๋ตํ ์ ์๋๋ก ํด์ ํ๋ก๊ทธ๋๋จธ๊ฐ ๋ ๊ฐ๊ฒฐํ ์ฝ๋๋ฅผ ์ธ ์ ์๋๋ก ๋์์ค ๋ฟ์
๋๋ค."
#: src/basic-syntax/type-inference.md:32
msgid "The following code tells the compiler to copy into a certain generic container without the code ever explicitly specifying the contained type, using `_` as a placeholder:"
msgstr "์๋ ์ฝ๋๋, ์ ๋ค๋ฆญ ์ปจํ
์ด๋๋ฅผ ์ธ ๋ ์ปจํ
์ดํฐ ์์ ํฌํจ๋ ๋ฐ์ดํฐ์ ํ์
์ ๋ช
์์ ์ผ๋ก ์ฐ์ง ์๊ณ `_`๋ก ๋์ฒดํ์ฌ๋ ๋๋ค๋ ๊ฒ์ ๋ณด์ฌ์ค๋๋ค:"
#: src/basic-syntax/type-inference.md:34
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let mut v = Vec::new();\n"
" v.push((10, false));\n"
" v.push((20, true));\n"
" println!(\"v: {v:?}\");"
msgstr ""
#: src/basic-syntax/type-inference.md:41
msgid ""
" let vv = v.iter().collect::>();\n"
" println!(\"vv: {vv:?}\");\n"
"}\n"
"```"
msgstr ""
#: src/basic-syntax/type-inference.md:46
msgid "[`collect`](https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html#method.collect) relies on `FromIterator`, which [`HashSet`](https://doc.rust-lang.org/std/iter/trait.FromIterator.html) implements."
msgstr "[`collect`](https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html#method.collect)๋ [`HashSet`](https://doc.rust-lang.org/std/iter/trait.FromIterator.html)์ ๊ตฌํํ `FromIterator`์ ์์กดํฉ๋๋ค."
#: src/basic-syntax/static-and-const.md:1
msgid "# Static and Constant Variables"
msgstr "# ์ ์ ๋ณ์(static)๊ณผ ์์(const)"
#: src/basic-syntax/static-and-const.md:3
msgid "Global state is managed with static and constant variables."
msgstr "ํ๋ก๊ทธ๋จ์ ๊ธ๋ก๋ฒ ์ํ๋ ๊ฒฐ๊ตญ ์ ์ ๋ณ์์ ์์๋ก ํํ๋ฉ๋๋ค."
#: src/basic-syntax/static-and-const.md:5
msgid "## `const`"
msgstr "## ์์(`const`)"
#: src/basic-syntax/static-and-const.md:7
msgid "You can declare compile-time constants:"
msgstr "์ปดํ์ผ ์ ๊ฐ์ด ์ ํด์ง๋ ์์๋ฅผ ์ ์ธํ ์ ์์ต๋๋ค:"
#: src/basic-syntax/static-and-const.md:9
msgid ""
"```rust,editable\n"
"const DIGEST_SIZE: usize = 3;\n"
"const ZERO: Option = Some(42);"
msgstr ""
#: src/basic-syntax/static-and-const.md:13
msgid ""
"fn compute_digest(text: &str) -> [u8; DIGEST_SIZE] {\n"
" let mut digest = [ZERO.unwrap_or(0); DIGEST_SIZE];\n"
" for (idx, &b) in text.as_bytes().iter().enumerate() {\n"
" digest[idx % DIGEST_SIZE] = digest[idx % DIGEST_SIZE].wrapping_add(b);\n"
" }\n"
" digest\n"
"}"
msgstr ""
#: src/basic-syntax/static-and-const.md:21
msgid ""
"fn main() {\n"
" let digest = compute_digest(\"Hello\");\n"
" println!(\"Digest: {digest:?}\");\n"
"}\n"
"```"
msgstr ""
#: src/basic-syntax/static-and-const.md:27
msgid "According the the [Rust RFC Book][1] these are inlined upon use."
msgstr "[Rust RFC Book][1]์ ๋ฐ๋ฅด๋ฉด ์์๋, ๊ทธ ์์๊ฐ ์ฌ์ฉ๋๋ ๊ณณ์ ์ธ๋ผ์ธ ๋ฉ๋๋ค."
#: src/basic-syntax/static-and-const.md:29
msgid "## `static`"
msgstr "## ์ ์ ๋ณ์(`static`)"
#: src/basic-syntax/static-and-const.md:31
msgid "You can also declare static variables:"
msgstr "๋ง์ฐฌ๊ฐ์ง๋ก ์ ์ ๋ณ์๋ ์ ์ธํ ์ ์์ต๋๋ค:"
#: src/basic-syntax/static-and-const.md:33
msgid ""
"```rust,editable\n"
"static BANNER: &str = \"Welcome to RustOS 3.14\";"
msgstr ""
#: src/basic-syntax/static-and-const.md:36
msgid ""
"fn main() {\n"
" println!(\"{BANNER}\");\n"
"}\n"
"```"
msgstr ""
#: src/basic-syntax/static-and-const.md:41
msgid "As noted in the [Rust RFC Book][1], these are not inlined upon use and have an actual associated memory location. This is useful for unsafe and embedded code, and the variable lives through the entirety of the program execution."
msgstr "[Rust RFC Book][1]์์ ์ธ๊ธํ ๋ฐ์ ๊ฐ์ด, ์ ์ ๋ณ์๋ ๋ณ๋์ ๋ฉ๋ชจ๋ฆฌ ๊ณต๊ฐ์ ๊ฐ์ง๋ฉฐ, ์ธ๋ผ์ธ ๋์ง ์์ต๋๋ค. ์ ์ ๋ณ์๋ ์์ ํ์ง ์์(unsafe) ๋ฌ์คํธ์ ์๋ฒ ๋๋ ์์คํ
์ฉ ์ฝ๋์์ ์ ์ฉํฉ๋๋ค. ์ด๋ค์ ์๋ช
์ ํ๋ก๊ทธ๋จ์ด ์ํ๋๋ ์ ์ฒด ์๊ฐ๊ณผ ๋์ผํฉ๋๋ค."
#: src/basic-syntax/static-and-const.md:44
msgid "We will look at mutating static data in the [chapter on Unsafe Rust](../unsafe.md)."
msgstr "๊ฐ๋ณ ์ ์ ๋ฐ์ดํฐ์ ๋ํด์๋ [์์ ํ์ง ์์ ๋ฌ์คํธ](../unsafe.md)์์ ์ดํด๋ด
๋๋ค."
#: src/basic-syntax/static-and-const.md:48
msgid ""
"* Mention that `const` behaves semantically similar to C++'s `constexpr`.\n"
"* `static`, on the other hand, is much more similar to a `const` or mutable global variable in C++.\n"
"* It isn't super common that one would need a runtime evaluated constant, but it is helpful and safer than using a static."
msgstr ""
"* `const`๋ C++์ `constexpr`๊ณผ ๋งค์ฐ ๋น์ทํฉ๋๋ค.\n"
"* ๋ฐ๋ฉด์ `static`์ C++์ `const`๋ ๊ฐ๋ณ ์ ์ ๋ณ์์ ํจ์ฌ ๋ ์ ์ฌํฉ๋๋ค.\n"
"* ํ๋ก๊ทธ๋จ ์ํ์ ๊ทธ ๊ฐ์ด ์ ํด์ง๋ ์์๊ฐ ํ์ํ ๊ฒฝ์ฐ๋ ๋๋ญ
๋๋ค. ๊ทธ๋ฌ๋ ๊ทธ๋ ๋ค๊ณ ํด๋, ์ ์ ๋ณ์๋ฅผ ์ฌ์ฉํ๋ ๊ฒ ๋ณด๋ค๋ ๋ ์ ์ฉํ๊ณ ์์ ํฉ๋๋ค."
#: src/basic-syntax/static-and-const.md:54
msgid "[1]: https://rust-lang.github.io/rfcs/0246-const-vs-static.html"
msgstr ""
#: src/basic-syntax/scopes-shadowing.md:1
msgid "# Scopes and Shadowing"
msgstr "# ๋ฒ์(Scope)์ ์๋์(Shadowing)"
#: src/basic-syntax/scopes-shadowing.md:3
msgid ""
"You can shadow variables, both those from outer scopes and variables from the\n"
"same scope:"
msgstr "ํ์ฌ ๋ฒ์์ ์๋ ๋ณ์์, ๋ฐ๊นฅ ๋ฒ์์ ์๋ ๋ณ์ ๋ชจ๋ ๊ฐ๋ฆด(์๋์)์ ์์ต๋๋ค:"
#: src/basic-syntax/scopes-shadowing.md:6
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let a = 10;\n"
" println!(\"before: {a}\");"
msgstr ""
#: src/basic-syntax/scopes-shadowing.md:11
msgid ""
" {\n"
" let a = \"hello\";\n"
" println!(\"inner scope: {a}\");"
msgstr ""
#: src/basic-syntax/scopes-shadowing.md:15
msgid ""
" let a = true;\n"
" println!(\"shadowed in inner scope: {a}\");\n"
" }"
msgstr ""
#: src/basic-syntax/scopes-shadowing.md:19
msgid ""
" println!(\"after: {a}\");\n"
"}\n"
"```"
msgstr ""
#: src/basic-syntax/scopes-shadowing.md:25
msgid ""
"* Definition: Shadowing is different from mutation, because after shadowing both variable's memory locations exist at the same time. Both are available under the same name, depending where you use it in the code. \n"
"* A shadowing variable can have a different type. \n"
"* Shadowing looks obscure at first, but is convenient for holding on to values after `.unwrap()`.\n"
"* The following code demonstrates why the compiler can't simply reuse memory locations when shadowing an immutable variable in a scope, even if the type does not change."
msgstr ""
"* ์๋์์ ๊ธฐ์กด ๋ณ์์ ์๋ก์ด ๊ฐ์ ํ ๋นํ๋ ๊ฒ์ด ์๋๋๋ค. ์๋์์ ํ๋ฉด ์๋ก์ด ๋ณ์๊ฐ ์๊ธฐ๋ฉฐ, ์ด์ ๋ณ์์ ์ ๋ณ์๋ ๋ฉ๋ชจ๋ฆฌ์ ์๋ก ๋ค๋ฅธ ์์น์ ์กด์ฌํฉ๋๋ค. ๊ทธ ๋ ๋ณ์๋ ๋จ์ง ์ด๋ฆ์ด ๊ฐ์ ๋ฟ์ด๋ฉฐ, ์ฝ๋ ์ค ์ด๋์์ ๊ทธ ์ด๋ฆ์ด ์ฌ์ฉ๋์๋๋์ ๋ฐ๋ผ ์ด๋ค ๋ณ์๋ฅผ ์ง์นญํ๋ ์ง๊ฐ ๊ฒฐ์ ๋ฉ๋๋ค.\n"
"* ์๋์ ์ ํ์
์ ๋ฐ๊ฟ ์ ์์ต๋๋ค.\n"
"* ์ฒ์์ ์๋์์ ๋ณด๋ฉด ์ฝ๋๋ฅผ ๋ ๋ชจํธํ๊ฒ ๋ง๋ ๋ค๊ณ ์๊ฐํ ์ ๋ ์์ต๋๋ค. ๊ทธ๋ฌ๋ ์ค์ ๋ก ์๋์์ ์ด์ฉํ๋ฉด, ์ด๋ค ๋ณ์์์ `.unwrap()` ๋ ๊ฐ์ ์๋ก์ด ๋ณ์์ ๋ด์ ๊ฒฝ์ฐ ์๋ก์ด ์ด๋ฆ์ ์ง์ ํ์ ์์ด ๊ธฐ์กด ์ด๋ฆ์ ์ ์งํ ์ ์์ด์ ํธ๋ฆฌํฉ๋๋ค.\n"
"* ์๋ ์ฝ๋๋ ๋ถ๋ณ ๋ณ์๋ฅผ ์๋์ํ ๋ ํ์
์ด ๋์ผํ๋๋ผ๋ ์ ๋ณ์๊ฐ ์๋ ๋ณ์์ ๋ฉ๋ชจ๋ฆฌ ์์น๋ฅผ ์ฌ์ฌ์ฉ ํ ์ ์๋์ง ๊ทธ ์ด์ ๋ฅผ ๋ณด์ฌ์ค๋๋ค."
#: src/basic-syntax/scopes-shadowing.md:30
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let a = 1;\n"
" let b = &a;\n"
" let a = a + 1;\n"
" println!(\"{a} {b}\");\n"
"}\n"
"```"
msgstr ""
#: src/memory-management.md:1
msgid "# Memory Management"
msgstr "# ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ"
#: src/memory-management.md:3
msgid "Traditionally, languages have fallen into two broad categories:"
msgstr "์ ํต์ ์ผ๋ก, ๋ ์ข
๋ฅ์ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด๊ฐ ์์ต๋๋ค:"
#: src/memory-management.md:5
msgid ""
"* Full control via manual memory management: C, C++, Pascal, ...\n"
"* Full safety via automatic memory management at runtime: Java, Python, Go, Haskell, ..."
msgstr ""
"* ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ๊ฐ ํ๋ก๊ทธ๋๋จธ์ ์์ ํ ํต์ ํ์ ์์ง๋ง ์๋(๊ทธ๋์ ์์ ํ์ง ์์ ์ ์๋)์ธ ์ธ์ด: C, C++, Pascal, ...\n"
"* ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ๊ฐ ๋ฐํ์์ ์ํด ๋๋ฏ๋ก ์์ ํ์ง๋ง ์๋(๊ทธ๋์ ํ๋ก๊ทธ๋๋จธ๊ฐ ๊ฐ์
ํ ์ฌ์ง๊ฐ ์ ๊ฑฐ๋ ์๋)์ธ ์ธ์ด: Java, Python, Go, Haskell, ..."
#: src/memory-management.md:8
msgid "Rust offers a new mix:"
msgstr "๋ฌ์คํธ๋ ์ด ๋์ ํผํฉํ ์๋ก์ด ํํ์ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ ๊ธฐ๋ฒ์ ์ ๊ณตํฉ๋๋ค:"
#: src/memory-management.md:10
msgid ""
"> Full control *and* safety via compile time enforcement of correct memory\n"
"> management."
msgstr "> ์ปดํ์ผ ์ ์ฌ๋ฐ๋ฅธ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ๋ฅผ ๊ฐ์ ํจ์ผ๋ก์จ ์์ ํ ํต์ ์ ์์ ์ฑ ๋ชจ๋ ์ ๊ณต"
#: src/memory-management.md:13
msgid "It does this with an explicit ownership concept."
msgstr "์ด๋ฅผ ๊ฐ๋ฅํ๊ฒ ํ๋ ๋ฌ์คํธ์ ์ปจ์
์ ๋ช
์์ ์ธ ์์ ๊ถ์
๋๋ค."
#: src/memory-management.md:15
msgid "First, let's refresh how memory management works."
msgstr "์ฐ์ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ๊ฐ ์ด๋ค์ง๋ ๋ฐฉ์์ ๋ค์ ์ดํด ๋ณด๊ฒ ์ต๋๋ค."
#: src/memory-management/stack-vs-heap.md:1
msgid "# The Stack vs The Heap"
msgstr "# ์คํ(Stack)๊ณผ ํ(Heap)"
#: src/memory-management/stack-vs-heap.md:3
msgid ""
"* Stack: Continuous area of memory for local variables.\n"
" * Values have fixed sizes known at compile time.\n"
" * Extremely fast: just move a stack pointer.\n"
" * Easy to manage: follows function calls.\n"
" * Great memory locality."
msgstr ""
"* ์คํ: ์ง์ญ ๋ณ์๋ฅผ ์ํ ์ฐ์์ ์ธ ๋ฉ๋ชจ๋ฆฌ ์์ญ\n"
" * ์ฌ๊ธฐ ์ ์ฅ๋๋ ๊ฐ์ ์ปดํ์ผ ์ ๊ฒฐ์ ๋๋ ๊ณ ์ ํฌ๊ธฐ๋ฅผ ๊ฐ์ต๋๋ค. \n"
" * ๋งค์ฐ ๋น ๋ฆ: ๋ฉ๋ชจ๋ฆฌ ํ ๋น/๋ฐํ์ด ๋จ์ง ์คํ ํฌ์ธํฐ์ ์ด๋๋ง์ผ๋ก ๊ตฌํ๋ฉ๋๋ค.\n"
" * ๊ด๋ฆฌ๊ฐ ์ฌ์: ํจ์๊ฐ ํธ์ถ๋๋ฉด ํ ๋น๋๊ณ , ๋ฆฌํดํ๋ฉด ๋ฐํ๋ฉ๋๋ค.\n"
" * ์คํ์ ์๋ ๊ฐ๋ค์ ๋งค์ฐ ๋์ ๋ฉ๋ชจ๋ฆฌ ์ธ์ ์ฑ์ ๊ฐ์ง๋๋ค(_์ญ์ฃผ_: ๊ทธ๋์ ์บ์๋ฅผ ํจ๊ณผ์ ์ผ๋ก ํ์ฉํ ์ ์์ต๋๋ค)"
#: src/memory-management/stack-vs-heap.md:9
msgid ""
"* Heap: Storage of values outside of function calls.\n"
" * Values have dynamic sizes determined at runtime.\n"
" * Slightly slower than the stack: some book-keeping needed.\n"
" * No guarantee of memory locality."
msgstr ""
"* ํ: ํจ์ ํธ์ถ/๋ฆฌํด๊ณผ ์๊ด ์์ด ์ ์ง๋๋ ๊ฐ์ด ์ ์ฅ๋๋ ๊ณณ\n"
" * ์ฌ๊ธฐ ์ ์ฅ๋๋ ๊ฐ์ ํ๋ก๊ทธ๋จ ์ํ์ ๊ทธ ํฌ๊ธฐ๊ฐ ๊ฒฐ์ ๋ฉ๋๋ค.\n"
" * ์คํ ๋ณด๋ค๋ ๋๋ฆผ: ๋ฉ๋ชจ๋ฆฌ ํ ๋น/๋ฐํ์ ํด์ผ ํ ์ผ์ด ์ข ๋ ์์ต๋๋ค.\n"
" * ๋ฉ๋ชจ๋ฆฌ ์ธ์ ์ฑ์ ๋ณด์ฅํ์ง ์์ต๋๋ค."
#: src/memory-management/stack.md:1
msgid "# Stack Memory"
msgstr "# ์คํ ๋ฉ๋ชจ๋ฆฌ"
#: src/memory-management/stack.md:3
msgid ""
"Creating a `String` puts fixed-sized data on the stack and dynamically sized\n"
"data on the heap:"
msgstr "`String` ํ์
์ ๊ณ ์ ํฌ๊ธฐ ๋ฐ์ดํฐ(_์ญ์ฃผ_: ๋ฌธ์์ด์ ๊ธธ์ด, ๋ฌธ์์ด์ด ์ ์ฅ๋ ๋ฒํผ์ ์ฃผ์ ๋ฑ)๋ ์คํ์ ์ ์ฅํ๊ณ , ๊ฐ๋ณ ํฌ๊ธฐ ๋ฐ์ดํฐ(_์ญ์ฃผ_: ๋ฌธ์์ด ๋ฒํผ)๋ ํ์ ์ ์ฅํฉ๋๋ค:"
#: src/memory-management/stack.md:6
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let s1 = String::from(\"Hello\");\n"
"}\n"
"```"
msgstr ""
#: src/memory-management/stack.md:12
msgid ""
"```bob\n"
" Stack Heap\n"
".- - - - - - - - - - - - - -. .- - - - - - - - - - - - - - - -.\n"
": : : :\n"
": s1 : : :\n"
": +-----------+-------+ : : +----+----+----+----+----+ :\n"
": | ptr | o---+---+-----+-->| H | e | l | l | o | :\n"
": | len | 5 | : : +----+----+----+----+----+ :\n"
": | capacity | 5 | : : :\n"
": +-----------+-------+ : : :\n"
": : `- - - - - - - - - - - - - - - -'\n"
"`- - - - - - - - - - - - - -'\n"
"```"
msgstr ""
#: src/memory-management/stack.md:28
msgid "* Mention that a `String` is backed by a `Vec`, so it has a capacity and length and can grow if mutable via reallocation on the heap."
msgstr "* ๋ฌธ์์ด(`String`)์ ์ค์ ๋ก๋ `Vec`์
๋๋ค. ํฌ๊ธฐ(capacity)์ ํ์ฌ ๊ธธ์ด(length) ์ ๋ณด๋ฅผ ๊ฐ์ง๋ฉฐ, ๋ ํฐ ํฌ๊ธฐ๊ฐ ํ์ํ ๊ฒฝ์ฐ ํ์์ ์ฌ ํ ๋น์ ํฉ๋๋ค."
#: src/memory-management/stack.md:30
msgid "* If students ask about it, you can mention that the underlying memory is heap allocated using the [System Allocator] and custom allocators can be implemented using the [Allocator API]"
msgstr "* ํ์ ๊ธฐ๋ณธ์ ์ผ๋ก [System Allocator]๋ฅผ ํตํด ํ ๋น๋ฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ [Allocator API]๋ฅผ ์ด์ฉํด์ ์ปค์คํ
๋ฉ๋ชจ๋ฆฌ ํ ๋น์๋ฅผ ๋ง๋ค ์๋ ์์ต๋๋ค."
#: src/memory-management/stack.md:32
msgid "* We can inspect the memory layout with `unsafe` code. However, you should point out that this is rightfully unsafe!"
msgstr "* `unsafe` ์ฝ๋๋ก ๋ฉ๋ชจ๋ฆฌ ๋ ์ด์์์ ์ดํด๋ณผ ์ ์์ต๋๋ค. ๋ฌผ๋ก ์ด ์ฝ๋๊ฐ ์์ ํ์ง ์๋ค๋ ์ ์ ์๋ ค์ฃผ์ธ์!"
#: src/memory-management/stack.md:34
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let mut s1 = String::from(\"Hello\");\n"
" s1.push(' ');\n"
" s1.push_str(\"world\");\n"
" // DON'T DO THIS AT HOME! For educational purposes only.\n"
" // String provides no guarantees about its layout, so this could lead to\n"
" // undefined behavior.\n"
" unsafe {\n"
" let (capacity, ptr, len): (usize, usize, usize) = std::mem::transmute(s1);\n"
" println!(\"ptr = {ptr:#x}, len = {len}, capacity = {capacity}\");\n"
" }\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn main() {\n"
" let mut s1 = String::from(\"Hello\");\n"
" s1.push(' ');\n"
" s1.push_str(\"world\");\n"
" // DON'T DO THIS AT HOME! For educational purposes only.\n"
" // String provides no guarantees about its layout, so this could lead to\n"
" // undefined behavior.\n"
" unsafe {\n"
" let (capacity, ptr, len): (usize, usize, usize) = std::mem::transmute(s1);\n"
" println!(\"ptr = {ptr:#x}, len = {len}, capacity = {capacity}\");\n"
" }\n"
"}\n"
"```"
#: src/memory-management/stack.md:51
msgid ""
"[System Allocator]: https://doc.rust-lang.org/std/alloc/struct.System.html\n"
"[Allocator API]: https://doc.rust-lang.org/std/alloc/index.html"
msgstr ""
"[System Allocator]: https://doc.rust-lang.org/std/alloc/struct.System.html\n"
"[Allocator API]: https://doc.rust-lang.org/std/alloc/index.html"
#: src/memory-management/manual.md:1
msgid "# Manual Memory Management"
msgstr "# ์๋ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ"
#: src/memory-management/manual.md:3
msgid "You allocate and deallocate heap memory yourself."
msgstr "์ฌ์ฉ์๊ฐ ์ง์ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ํ ๋น, ํด์ ํฉ๋๋ค."
#: src/memory-management/manual.md:5
msgid "If not done with care, this can lead to crashes, bugs, security vulnerabilities, and memory leaks."
msgstr "์กฐ์ฌํ์ง ์์ผ๋ฉด, ์ถฉ๋(crash), ๋ฒ๊ทธ, ๋ณด์์ทจ์ฝ์ฑ ๋ฐ ๋ฉ๋ชจ๋ฆฌ ๋์ถ์ด ๋ฐ์ํ ์ ์์ต๋๋ค."
#: src/memory-management/manual.md:7
msgid "## C Example"
msgstr "## C ์ธ์ด ์์ "
#: src/memory-management/manual.md:9
msgid "You must call `free` on every pointer you allocate with `malloc`:"
msgstr "`malloc`์ผ๋ก ํ ๋นํ๋ ํฌ์ธํฐ๋ง๋ค `free`๋ฅผ ํธ์ถํด์ผ ํฉ๋๋ค:"
#: src/memory-management/manual.md:11
msgid ""
"```c\n"
"void foo(size_t n) {\n"
" int* int_array = (int*)malloc(n * sizeof(int));\n"
" //\n"
" // ... lots of code\n"
" //\n"
" free(int_array);\n"
"}\n"
"```"
msgstr ""
#: src/memory-management/manual.md:21
msgid ""
"Memory is leaked if the function returns early between `malloc` and `free`: the\n"
"pointer is lost and we cannot deallocate the memory."
msgstr "๋ง์ฝ `malloc` ๊ณผ `free` ์ฌ์ด์์ ํจ์๊ฐ ์ผ์ฐ ๋ฐํ๋๋ฉด ๋ฉ๋ชจ๋ฆฌ ๋์ถ์ด ์ผ์ด๋ฉ๋๋ค: ํฌ์ธํฐ๋ฅผ ์์ด๋ฒ๋ฆฌ๊ฒ ๋์ด ๋ฉ๋ชจ๋ฆฌ๋ฅผ ๋ฐํํ ์ ์๊ฒ ๋ฉ๋๋ค."
#: src/memory-management/scope-based.md:1
msgid "# Scope-Based Memory Management"
msgstr "# ๋ฒ์๊ธฐ๋ฐ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ"
#: src/memory-management/scope-based.md:3
msgid "Constructors and destructors let you hook into the lifetime of an object."
msgstr "์์ฑ์์ ์๋ฉธ์๋ฅผ ์ฌ์ฉํ์ฌ ๊ฐ์ฒด์ ์๋ช
์ฃผ๊ธฐ์ ๋ฐ๋ผ ๋ฉ๋ชจ๋ฆฌ ํ ๋น/ํด์ ๊ฐ ์ผ์ด๋๋๋ก ํ ์ ์์ต๋๋ค."
#: src/memory-management/scope-based.md:5
msgid ""
"By wrapping a pointer in an object, you can free memory when the object is\n"
"destroyed. The compiler guarantees that this happens, even if an exception is\n"
"raised."
msgstr "ํฌ์ธํฐ๋ฅผ ๊ฐ์ฒด๋ก ๊ฐ์ธ๋๋ก ํ๋ฉด, ๊ทธ ๊ฐ์ฒด๊ฐ ์๋ฉธ๋ ๋ ๊ทธ ํฌ์ธํฐ๊ฐ ๊ฐ๋ฆฌํค๋ ๋ฉ๋ชจ๋ฆฌ๊ฐ ํด์ ๋๋๋ก ํ ์ ์์ต๋๋ค. ์ปดํ์ผ๋ฌ๋ ๊ฐ์ฒด๊ฐ ์๋ฉธ๋ ๋ ๋ฐ๋์ ์๋ฉธ์๊ฐ ํธ์ถ๋๋ ๊ฒ์ ๋ณด์ฅํฉ๋๋ค. ์ฌ์ง์ด๋ ์์ธ(exception)๊ฐ ๋ฐ์(_์ญ์ฃผ_: ํจ์์ ๋ฆฌํด์ด๋ ์ค์ฝํ์ ์ข
๋ฃ ๋ฟ๋ง์ด ์๋๋ผ) ํ๋๋ผ๋์."
#: src/memory-management/scope-based.md:9
msgid ""
"This is often called _resource acquisition is initialization_ (RAII) and gives\n"
"you smart pointers."
msgstr "์ด๋ฅผ ์ข
์ข
RAII (Resource Acquisition Is Initialization)๋ผ๊ณ ํ๋ฉฐ, ์ด๋ฐ ๊ฐ์ฒด๋ ์ผ์ข
์ ์ค๋งํธ ํฌ์ธํฐ ์ญํ ์ ํฉ๋๋ค."
#: src/memory-management/scope-based.md:12
msgid "## C++ Example"
msgstr "## C++ ์์ "
#: src/memory-management/scope-based.md:14
msgid ""
"```c++\n"
"void say_hello(std::unique_ptr person) {\n"
" std::cout << \"Hello \" << person->name << std::endl;\n"
"}\n"
"```"
msgstr ""
#: src/memory-management/scope-based.md:20
msgid ""
"* The `std::unique_ptr` object is allocated on the stack, and points to\n"
" memory allocated on the heap.\n"
"* At the end of `say_hello`, the `std::unique_ptr` destructor will run.\n"
"* The destructor frees the `Person` object it points to."
msgstr ""
"* `std::unique_ptr`๊ฐ์ฒด๋ ์คํ์ ํ ๋น๋๋ฉฐ, ํ์ ํ ๋น๋ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ๊ฐ๋ฆฌํต๋๋ค.\n"
"* `say_hello`ํจ์๊ฐ ๋๋๋ฉด `std::unique_ptr`์ ์๋ฉธ์๊ฐ ์คํ๋ฉ๋๋ค.\n"
"* ์๋ฉธ์๋ `Person` ๊ฐ์ฒด๊ฐ ๊ฐ๋ฆฌํค๋ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ํด์ ํฉ๋๋ค."
#: src/memory-management/scope-based.md:25
msgid "Special move constructors are used when passing ownership to a function:"
msgstr "์ด๋ ์์ฑ์๋ ํจ์ ํธ์ถ ์ ์์ ๊ถ์ ์ ๋ฌํ ๋ ์ฌ์ฉ๋ฉ๋๋ค:"
#: src/memory-management/scope-based.md:27
msgid ""
"```c++\n"
"std::unique_ptr person = find_person(\"Carla\");\n"
"say_hello(std::move(person));\n"
"```"
msgstr ""
#: src/memory-management/garbage-collection.md:1
msgid "# Automatic Memory Management"
msgstr "# ์๋ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ"
#: src/memory-management/garbage-collection.md:3
msgid ""
"An alternative to manual and scope-based memory management is automatic memory\n"
"management:"
msgstr "์๋, ์ค์ฝํ๊ธฐ๋ฐ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ์ ๋์์ผ๋ก ์๋ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ ๋ฐฉ์์ด ์์ต๋๋ค:"
#: src/memory-management/garbage-collection.md:6
msgid ""
"* The programmer never allocates or deallocates memory explicitly.\n"
"* A garbage collector finds unused memory and deallocates it for the programmer."
msgstr ""
"* ๊ฐ๋ฐ์๋ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ๋ช
์์ ์ผ๋ก ํ ๋น/ํด์ ํ์ง ์์ต๋๋ค.\n"
"* ๊ฐ๋น์ง ์ปฌ๋ ํฐ(GC)๋ ์ฌ์ฉ๋์ง ์๋ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ์ฐพ์ ํด์ ํฉ๋๋ค."
#: src/memory-management/garbage-collection.md:9
msgid "## Java Example"
msgstr "## Jave ์์ "
#: src/memory-management/garbage-collection.md:11
msgid "The `person` object is not deallocated after `sayHello` returns:"
msgstr "`person`๊ฐ์ฒด๋ `sayHello`ํจ์ ๋ฐํ ํ์๋ ํด์ ๋์ง ์์ต๋๋ค. (_์ญ์ฃผ_: GC๊ฐ ๋์ค์ ์์์ ํด์ ํฉ๋๋ค.)"
#: src/memory-management/garbage-collection.md:13
msgid ""
"```java\n"
"void sayHello(Person person) {\n"
" System.out.println(\"Hello \" + person.getName());\n"
"}\n"
"```"
msgstr ""
#: src/memory-management/rust.md:1
msgid "# Memory Management in Rust"
msgstr "# ๋ฌ์คํธ์์์ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ"
#: src/memory-management/rust.md:3
msgid "Memory management in Rust is a mix:"
msgstr "๋ฌ์คํธ์ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ๋ ์ง๊ธ๊น์ง ์ค๋ช
ํ ๋ฐฉ์๋ค์ ํผํฉํด์ ์ฌ์ฉํฉ๋๋ค:"
#: src/memory-management/rust.md:5
msgid ""
"* Safe and correct like Java, but without a garbage collector.\n"
"* Depending on which abstraction (or combination of abstractions) you choose, can be a single unique pointer, reference counted, or atomically reference counted.\n"
"* Scope-based like C++, but the compiler enforces full adherence.\n"
"* A Rust user can choose the right abstraction for the situation, some even have no cost at runtime like C."
msgstr ""
"* ์๋ฐ์ฒ๋ผ ์์ ํ๊ณ ์ ํํฉ๋๋ค. ํ์ง๋ง GC๋ ์์ต๋๋ค.\n"
"* ๋ค์ํ ์ถ์ํ๋ฅผ ์ ๊ณตํฉ๋๋ค: ๋จ์ผ ํฌ์ธํฐ, ์ฐธ์กฐ ์นด์ดํธ, ์ํ ๋ฏน(atomic) ์ฐธ์กฐ ์นด์ดํธ.\n"
"* C++ ์ฒ๋ผ ๋ฒ์(์ค์ฝํ) ๊ธฐ๋ฐ์
๋๋ค. ํ์ง๋ง ์ปดํ์ผ๋ฌ๊ฐ ํจ์ฌ ๋ ์๊ฒฉํฉ๋๋ค.\n"
"* ์ฌ์ฉ์๋ ์ํฉ์ ๋ฐ๋ผ ์ ํฉํ ์ถ์ํ๋ฅผ ์ ํํ ์ ์์ต๋๋ค. ๊ทธ ์ค์๋ C ์ธ์ด ์ฒ๋ผ ๋ฐํ์ ์ค๋ฒํค๋๊ฐ ์๋ ๊ฒ๋ ์์ต๋๋ค."
#: src/memory-management/rust.md:10
msgid "It achieves this by modeling _ownership_ explicitly."
msgstr "๋ฌ์คํธ๋ *์์ ๊ถ*์ ์ธ์ด ์ฐจ์์์ ๋ช
์์ ์ผ๋ก ๋ชจ๋ธ๋ง ํจ์ผ๋ก์จ ์ด๋ฅผ ์ด๋ฃน๋๋ค."
#: src/memory-management/rust.md:14
msgid "* If asked how at this point, you can mention that in Rust this is usually handled by RAII wrapper types such as [Box], [Vec], [Rc], or [Arc]. These encapsulate ownership and memory allocation via various means, and prevent the potential errors in C."
msgstr "* ์ด ์์ ์์ ๊ทธ๊ฒ ์ด๋ป๊ฒ ๊ฐ๋ฅํ๋๋ ์ง๋ฌธ์ด ์์ผ๋ฉด, ๋ฌ์คํธ์์ ์ด ์์
์ ์ผ๋ฐ์ ์ผ๋ก [Box], [Vec], [Rc] ๋๋ [Arc]์ ๊ฐ์ RAII ํ์
์ ์ํด ์ฒ๋ฆฌ๋๋ค๊ณ ๋ต๋ณํ ์ ์์ต๋๋ค. ์ด๋ค์ ๋ค์ํ ๋ฐฉ๋ฒ์ ํตํด ์์ ๊ถ๊ณผ ๋ฉ๋ชจ๋ฆฌ ํ ๋น์ ๋ํ ๊ตฌ์ฒด์ ์ธ ๋ด์ฉ์์ ์บก์ํํ์ฌ, C ์ธ์ด์๋ค๋ฉด ๋ฐ์ํ ์ ์์์ ๋ค์ํ ์๋ฌ๋ฅผ ๋ง์ต๋๋ค."
#: src/memory-management/rust.md:16
msgid "* You may be asked about destructors here, the [Drop] trait is the Rust equivalent."
msgstr "* ์๋ฉธ์์ ๋ํ ์ง๋ฌธ๋ ์์ ์ ์์ต๋๋ค. [Drop] ํธ๋ ์์ด ๋ต์
๋๋ค."
#: src/memory-management/rust.md:20
msgid ""
"[Box]: https://doc.rust-lang.org/std/boxed/struct.Box.html\n"
"[Vec]: https://doc.rust-lang.org/std/vec/struct.Vec.html\n"
"[Rc]: https://doc.rust-lang.org/std/rc/struct.Rc.html\n"
"[Arc]: https://doc.rust-lang.org/std/sync/struct.Arc.html\n"
"[Drop]: https://doc.rust-lang.org/std/ops/trait.Drop.html"
msgstr ""
#: src/memory-management/comparison.md:1
msgid "# Comparison"
msgstr "# ๋น๊ต"
#: src/memory-management/comparison.md:3
msgid "Here is a rough comparison of the memory management techniques."
msgstr "๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ ๊ธฐ์ ์ ๋๋ต์ ์ธ ๋น๊ต์
๋๋ค."
#: src/memory-management/comparison.md:5
msgid "## Pros of Different Memory Management Techniques"
msgstr "## ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ ๋ฐฉ๋ฒ ๋ณ ์ฅ์ "
#: src/memory-management/comparison.md:7
msgid ""
"* Manual like C:\n"
" * No runtime overhead.\n"
"* Automatic like Java:\n"
" * Fully automatic.\n"
" * Safe and correct.\n"
"* Scope-based like C++:\n"
" * Partially automatic.\n"
" * No runtime overhead.\n"
"* Compiler-enforced scope-based like Rust:\n"
" * Enforced by compiler.\n"
" * No runtime overhead.\n"
" * Safe and correct."
msgstr ""
"* C์ ๊ฐ์ ์๋ ๊ด๋ฆฌ: \n"
" * ๋ฐํ์ ์ค๋ฒํค๋๊ฐ ์์. \n"
"* JAVA์ ๊ฐ์ ์๋ํ ๊ด๋ฆฌ: \n"
" * ์์ ํ ์๋ํ.\n"
" * ์์ ํ๊ณ ์ ํํจ.\n"
"* C++ ์ ๊ฐ์ ๋ฒ์ ๊ธฐ๋ฐ ๊ด๋ฆฌ: \n"
" * ๋ถ๋ถ ์๋ํ\n"
" * ๋ฐํ์ ์ค๋ฒํค๋๊ฐ ์์.\n"
"* ๋ฌ์คํธ์ ๊ฐ์ ์ปดํ์ผ๋ฌ ์ํ ๋ฒ์ ๊ธฐ๋ฐ ๊ด๋ฆฌ: \n"
" * ์ปดํ์ผ๋ฌ์ ์ํด ์ํ๋ฉ๋๋ค.\n"
" * ๋ฐํ์ ์ค๋ฒํค๋๊ฐ ์์ต๋๋ค. \n"
" * ์์ ํ๊ณ ์ ํํฉ๋๋ค."
#: src/memory-management/comparison.md:20
msgid "## Cons of Different Memory Management Techniques"
msgstr "## ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ ๋ฐฉ๋ฒ ๋ณ ๋จ์ "
#: src/memory-management/comparison.md:22
msgid ""
"* Manual like C:\n"
" * Use-after-free.\n"
" * Double-frees.\n"
" * Memory leaks.\n"
"* Automatic like Java:\n"
" * Garbage collection pauses.\n"
" * Destructor delays.\n"
"* Scope-based like C++:\n"
" * Complex, opt-in by programmer.\n"
" * Potential for use-after-free.\n"
"* Compiler-enforced and scope-based like Rust:\n"
" * Some upfront complexity.\n"
" * Can reject valid programs."
msgstr ""
"* C์ ๊ฐ์ ์๋ ๊ด๋ฆฌ:\n"
" * ์ฌ์ฉ ํ ํด์ ๋ฌธ์ .\n"
" * ์ด์ค ํด์ ๋ฌธ์ .\n"
" * ๋ฉ๋ชจ๋ฆฌ ๋์ถ ๋ฌธ์ .\n"
"* JAVA์ ๊ฐ์ ์๋ํ ๊ด๋ฆฌ:\n"
" * GC๋์์ผ๋ก ์ธํ ๋ฉ์ถค.\n"
" * ์๋ฉธ์ ์ง์ฐ (_์ญ์ฃผ_: ํน์ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ๋์ด์ ์ฌ์ฉํ์ง ์๋๋ผ๋ ๊ณง๋ฐ๋ก ํด์ ๋์ง ์๊ณ GC๊ฐ ๋์ํ ๋ ๊น์ง ๊ธฐ๋ค๋ ค์ผ ํ๋ค๋ ์ )\n"
"* C++ ์ ๊ฐ์ ๋ฒ์ ๊ธฐ๋ฐ ๊ด๋ฆฌ:\n"
" * ๋ณต์กํ๋ฉฐ, ๊ฐ๋ฐ์์ ์ ํ์ฌํญ์.\n"
" * ์ฌ์ฉ ํ ํด์ ๋ฌธ์ ๊ฐ๋ฅ์ฑ ์์.\n"
"* ๋ฌ์คํธ์ ๊ฐ์ ์ปดํ์ผ๋ฌ๊ฐ ๊ฐ์ ํ๋ ์ํ ๋ฒ์ ๊ธฐ๋ฐ ๊ด๋ฆฌ:\n"
" * ์ฝ๊ฐ์ ์ด๊ธฐ ๋ณต์ก์ฑ.\n"
" * ์ฌ๋ฐ๋ฅธ ํ๋ก๊ทธ๋จ์ด์ง๋ง ์ปดํ์ผ๋ฌ๊ฐ ๊ฑฐ๋ถํ ์ ์์."
#: src/ownership.md:1
msgid "# Ownership"
msgstr "# ์์ ๊ถ"
#: src/ownership.md:3
msgid ""
"All variable bindings have a _scope_ where they are valid and it is an error to\n"
"use a variable outside its scope:"
msgstr "๋ชจ๋ ๋ณ์ ๋ฐ์ธ๋ฉ์ ์ ํจํ \"๋ฒ์(์ค์ฝํ)\"๋ฅผ ๊ฐ์ง๋ฉฐ, ๋ฒ์ ๋ฐ์์ ๋ณ์ ์ฌ์ฉํ๋ฉด ์๋ฌ๊ฐ ๋ฐ์ํฉ๋๋ค:"
#: src/ownership.md:6
msgid ""
"```rust,editable,compile_fail\n"
"struct Point(i32, i32);"
msgstr ""
#: src/ownership.md:9
msgid ""
"fn main() {\n"
" {\n"
" let p = Point(3, 4);\n"
" println!(\"x: {}\", p.0);\n"
" }\n"
" println!(\"y: {}\", p.1);\n"
"}\n"
"```"
msgstr ""
#: src/ownership.md:18
msgid ""
"* At the end of the scope, the variable is _dropped_ and the data is freed.\n"
"* A destructor can run here to free up resources.\n"
"* We say that the variable _owns_ the value."
msgstr ""
"* ์ค์ฝํ๊ฐ ์ข
๋ฃ๋๋ฉด ๋ณ์๋ \"์ญ์ (drop)\"๋์๋ค๊ณ ํ๋ฉฐ ๊ทธ ๋ณ์์ ๋ฐ์ดํฐ๋ ๋ฉ๋ชจ๋ฆฌ์์ ํด์ ๋ฉ๋๋ค.\n"
"* ์ค์ฝํ๊ฐ ์ข
๋ฃ๋ ๋ ๋ค๋ฅธ ๋ฆฌ์์ค๋ฅผ ํด์ ํ๊ธฐ ์ํด ์๋ฉธ์๊ฐ ํธ์ถ๋๋๋ก ํ ์ ์์ต๋๋ค.\n"
"* ์ด๊ฒ์ ๋๊ณ ๋ณ์๊ฐ ๊ฐ์ \"์์ \"ํ๋ค๊ณ ํํํฉ๋๋ค."
#: src/ownership/move-semantics.md:1
msgid "# Move Semantics"
msgstr "# Move ๋ฌธ๋ฒ(Move Semantics)"
#: src/ownership/move-semantics.md:3
msgid "An assignment will transfer ownership between variables:"
msgstr "(๋ณ์์) ํ ๋น์ ์์ ๊ถ์ ๋ณ์ ๊ฐ์ ์ด๋์ํต๋๋ค:"
#: src/ownership/move-semantics.md:5
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let s1: String = String::from(\"Hello!\");\n"
" let s2: String = s1;\n"
" println!(\"s2: {s2}\");\n"
" // println!(\"s1: {s1}\");\n"
"}\n"
"```"
msgstr ""
#: src/ownership/move-semantics.md:14
msgid ""
"* The assignment of `s1` to `s2` transfers ownership.\n"
"* The data was _moved_ from `s1` and `s1` is no longer accessible.\n"
"* When `s1` goes out of scope, nothing happens: it has no ownership.\n"
"* When `s2` goes out of scope, the string data is freed.\n"
"* There is always _exactly_ one variable binding which owns a value."
msgstr ""
"* `s1`์ `s2`์ ํ ๋นํ์ฌ ์์ ๊ถ์ ์ด์ ์ํต๋๋ค.\n"
"* ๋ฐ์ดํฐ๋ `s1`์์ _์ด๋_๋ฉ๋๋ค. ๋ฐ๋ผ์ ํ๋ก๊ทธ๋๋จธ๋ `s1`์ ๋ ์ด์ ์ ๊ทผ ํ ์ ์์ต๋๋ค.\n"
"* `s1`์ ์ค์ฝํ๊ฐ ์ข
๋ฃ๋๋ฉด ์๋ฌด ์ผ๋ ์์ต๋๋ค: ์๋ํ๋ฉด `s1`์ ์๋ฌด๋ฐ ์์ ๊ถ์ด ์๊ธฐ ๋๋ฌธ์
๋๋ค.\n"
"* `s2`์ ์ค์ฝํ๊ฐ ์ข
๋ฃ๋๋ฉด ๋ฌธ์์ด ๋ฐ์ดํฐ๋ ํด์ ๋ฉ๋๋ค.\n"
"* ๊ฐ(๋ฐ์ดํฐ)์ ์์ ๊ถ์ ๊ฐ๋ ๋ณ์๋ ํญ์ *๋จ* ํ๋ ์
๋๋ค."
#: src/ownership/move-semantics.md:22
msgid "* Mention that this is the opposite of the defaults in C++, which copies by value unless you use `std::move` (and the move constructor is defined!)."
msgstr "* ์ด๋ C++๊ณผ ์ ๋ฐ๋ ์์ ์ค๋ช
ํ์ธ์. C++์์๋ ๋ณต์ฌ๊ฐ ๊ธฐ๋ณธ์ด๊ณ , `std::move` ๋ฅผ ์ด์ฉํด์ผ๋ง (๊ทธ๋ฆฌ๊ณ ์ด๋ ์์ฑ์๊ฐ ์ ์๋์ด ์์ด์ผ๋ง!) ์์ ๊ถ ์ด์ ์ด ๋ฉ๋๋ค."
#: src/ownership/move-semantics.md:24
msgid "* In Rust, clones are explicit (by using `clone`)."
msgstr "* ๋ฌ์คํธ์์๋ ๋ณต์ฌํ ๋์๋ ๋ช
์์ ์ผ๋ก `clone`์ ์ฌ์ฉํฉ๋๋ค."
#: src/ownership/moved-strings-rust.md:1
msgid "# Moved Strings in Rust"
msgstr "# ๋ฌ์คํธ์์์ ๋ฌธ์์ด ์ด๋(Move)"
#: src/ownership/moved-strings-rust.md:3
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let s1: String = String::from(\"Rust\");\n"
" let s2: String = s1;\n"
"}\n"
"```"
msgstr ""
#: src/ownership/moved-strings-rust.md:10
msgid ""
"* The heap data from `s1` is reused for `s2`.\n"
"* When `s1` goes out of scope, nothing happens (it has been moved from)."
msgstr ""
"* `s1`์ ํ ๋ฐ์ดํฐ๋ `s2`์์ ์ฌ์ฌ์ฉ ๋ฉ๋๋ค.\n"
"* `s1`์ ์ค์ฝํ๊ฐ ์ข
๋ฃ๋๋ฉด ์๋ฌด์ผ๋ ์ผ์ด๋์ง ์์ต๋๋ค.(์ด๋ฏธ ์ด๋๋์์ต๋๋ค.)"
#: src/ownership/moved-strings-rust.md:13
msgid "Before move to `s2`:"
msgstr "`s2`๋ก ์ด๋ ์ ๋ฉ๋ชจ๋ฆฌ:"
#: src/ownership/moved-strings-rust.md:15
msgid ""
"```bob\n"
" Stack Heap\n"
".- - - - - - - - - - - - - -. .- - - - - - - - - - - - - -.\n"
": : : :\n"
": s1 : : :\n"
": +-----------+-------+ : : +----+----+----+----+ :\n"
": | ptr | o---+---+-----+-->| R | u | s | t | :\n"
": | len | 4 | : : +----+----+----+----+ :\n"
": | capacity | 4 | : : :\n"
": +-----------+-------+ : : :\n"
": : `- - - - - - - - - - - - - -'\n"
": :\n"
"`- - - - - - - - - - - - - -'\n"
"```"
msgstr ""
#: src/ownership/moved-strings-rust.md:30
msgid "After move to `s2`:"
msgstr "`s2`๋ก ์ด๋ ํ ๋ฉ๋ชจ๋ฆฌ:"
#: src/ownership/moved-strings-rust.md:32
msgid ""
"```bob\n"
" Stack Heap\n"
".- - - - - - - - - - - - - -. .- - - - - - - - - - - - - -.\n"
": : : :\n"
": s1 \"(inaccessible)\" : : :\n"
": +-----------+-------+ : : +----+----+----+----+ :\n"
": | ptr | o---+---+--+--+-->| R | u | s | t | :\n"
": | len | 4 | : | : +----+----+----+----+ :\n"
": | capacity | 4 | : | : :\n"
": +-----------+-------+ : | : :\n"
": : | `- - - - - - - - - - - - - -'\n"
": s2 : |\n"
": +-----------+-------+ : |\n"
": | ptr | o---+---+--'\n"
": | len | 4 | :\n"
": | capacity | 4 | :\n"
": +-----------+-------+ :\n"
": :\n"
"`- - - - - - - - - - - - - -'\n"
"```"
msgstr ""
#: src/ownership/double-free-modern-cpp.md:1
msgid "# Double Frees in Modern C++"
msgstr "# Modern C++์์ ์ด์คํด์ ๋ฌธ์ "
#: src/ownership/double-free-modern-cpp.md:3
msgid "Modern C++ solves this differently:"
msgstr "Modern C++์ ์ด ๋ฌธ์ ๋ฅผ ๋ค๋ฅด๊ฒ ํด๊ฒฐํฉ๋๋ค:"
#: src/ownership/double-free-modern-cpp.md:5
msgid ""
"```c++\n"
"std::string s1 = \"Cpp\";\n"
"std::string s2 = s1; // Duplicate the data in s1.\n"
"```"
msgstr ""
#: src/ownership/double-free-modern-cpp.md:10
msgid ""
"* The heap data from `s1` is duplicated and `s2` gets its own independent copy.\n"
"* When `s1` and `s2` go out of scope, they each free their own memory."
msgstr ""
"* `s1`์ ํ ๋ฐ์ดํฐ๋ ๋ณต์ ๋๊ณ , `s2`๋ ๋
๋ฆฝ์ ์ธ ๋ณต์ฌ๋ณธ์ ์ป์ต๋๋ค.\n"
"* `s1` ์ `s2`์ ์ค์ฝํ๊ฐ ์ข
๋ฃ๋๋ฉด ๊ฐ๊ฐ์ ๋ฉ๋ชจ๋ฆฌ๊ฐ ํด์ ๋ฉ๋๋ค."
#: src/ownership/double-free-modern-cpp.md:13
msgid "Before copy-assignment:"
msgstr "๋ณต์ฌ ์ :"
#: src/ownership/double-free-modern-cpp.md:16
msgid ""
"```bob\n"
" Stack Heap\n"
".- - - - - - - - - - - - - -. .- - - - - - - - - - - -.\n"
": : : :\n"
": s1 : : :\n"
": +-----------+-------+ : : +----+----+----+ :\n"
": | ptr | o---+---+--+--+-->| C | p | p | :\n"
": | len | 3 | : : +----+----+----+ :\n"
": | capacity | 3 | : : :\n"
": +-----------+-------+ : : :\n"
": : `- - - - - - - - - - - -'\n"
"`- - - - - - - - - - - - - -'\n"
"```"
msgstr ""
#: src/ownership/double-free-modern-cpp.md:30
msgid "After copy-assignment:"
msgstr "๋ณต์ฌ ํ:"
#: src/ownership/double-free-modern-cpp.md:32
msgid ""
"```bob\n"
" Stack Heap\n"
".- - - - - - - - - - - - - -. .- - - - - - - - - - - -.\n"
": : : :\n"
": s1 : : :\n"
": +-----------+-------+ : : +----+----+----+ :\n"
": | ptr | o---+---+--+--+-->| C | p | p | :\n"
": | len | 3 | : : +----+----+----+ :\n"
": | capacity | 3 | : : :\n"
": +-----------+-------+ : : :\n"
": : : :\n"
": s2 : : :\n"
": +-----------+-------+ : : +----+----+----+ :\n"
": | ptr | o---+---+-----+-->| C | p | p | :\n"
": | len | 3 | : : +----+----+----+ :\n"
": | capacity | 3 | : : :\n"
": +-----------+-------+ : : :\n"
": : `- - - - - - - - - - - -'\n"
"`- - - - - - - - - - - - - -'\n"
"```"
msgstr ""
#: src/ownership/moves-function-calls.md:1
msgid "# Moves in Function Calls"
msgstr "# ํจ์ ํธ์ถ์์์ ์ด๋(Move)"
#: src/ownership/moves-function-calls.md:3
msgid ""
"When you pass a value to a function, the value is assigned to the function\n"
"parameter. This transfers ownership:"
msgstr "๊ฐ์ ํจ์์ ์ ๋ฌํ ๋, ๊ทธ ๊ฐ์ ๋งค๊ฐ๋ณ์์ ํ ๋น๋ฉ๋๋ค. ์ด๋ ์์ ๊ถ์ ์ด๋์ด ์ผ์ด๋ฉ๋๋ค:"
#: src/ownership/moves-function-calls.md:6
msgid ""
"```rust,editable\n"
"fn say_hello(name: String) {\n"
" println!(\"Hello {name}\")\n"
"}"
msgstr ""
#: src/ownership/moves-function-calls.md:11
msgid ""
"fn main() {\n"
" let name = String::from(\"Alice\");\n"
" say_hello(name);\n"
" // say_hello(name);\n"
"}\n"
"```"
msgstr ""
#: src/ownership/moves-function-calls.md:20
msgid ""
"* With the first call to `say_hello`, `main` gives up ownership of `name`. Afterwards, `name` cannot be used anymore within `main`.\n"
"* The heap memory allocated for `name` will be freed at the end of the `say_hello` function.\n"
"* `main` can retain ownership if it passes `name` as a reference (`&name`) and if `say_hello` accepts a reference as a parameter.\n"
"* Alternatively, `main` can pass a clone of `name` in the first call (`name.clone()`).\n"
"* Rust makes it harder than C++ to inadvertently create copies by making move semantics the default, and by forcing programmers to make clones explicit."
msgstr ""
"* `say_hello`ํจ์์ ์ฒซ๋ฒ์งธ ํธ์ถ์ `main`ํจ์๋ ์์ ์ด ๊ฐ์ง `name`์ ๋ํ ์์ ๊ถ์ ํฌ๊ธฐํ๋ฏ๋ก, ์ดํ `main`ํจ์์์๋ `name`์ ์ฌ์ฉํ ์ ์์ต๋๋ค.\n"
"* `name`์ ํ ๋น๋์๋ ํ ๋ฉ๋ชจ๋ฆฌ๋ `say_hello`ํจ์์ ๋์์ ํด์ ๋ฉ๋๋ค.\n"
"* `main`ํจ์์์ `name`์ ์ฐธ์กฐ๋ก ์ ๋ฌ(๋น๋ฆผ)ํ๊ณ (`&name`), `say_hello`์์ ๋งค๊ฐ๋ณ์๋ฅผ ์ฐธ์กฐํ์ผ๋ก ์์ ํ๋ค๋ฉด `main`ํจ์๋ `name`์ ์์ ๊ถ์ ์ ์งํ ์ ์์ต๋๋ค.\n"
"* ๋๋ ์ฒซ๋ฒ์งธ ํธ์ถ ์ `main`ํจ์์์ `name`์ ๋ณต์ ํ์ฌ ์ ๋ฌํ ์๋ ์์ต๋๋ค.(`name.clone()`)\n"
"* ๋ฌ์คํธ๋ ์ด๋์ ๊ธฐ๋ณธ์ผ๋ก ํ๊ณ ๋ณต์ ๋ฅผ ๋ช
์์ ์ผ๋ก ์ ์ธํ๋๋ก ๋ง๋ฌ์ผ๋ก, ์๋์น ์๊ฒ ๋ณต์ฌ๋ณธ์ ๋ง๋๋ ๊ฒ์ด C++์์๋ณด๋ค ์ด๋ ต์ต๋๋ค."
#: src/ownership/copy-clone.md:1
msgid "# Copying and Cloning"
msgstr "# ๋ณต์ฌ(copy)์ ๋ณต์ (clone)"
#: src/ownership/copy-clone.md:3
msgid "While move semantics are the default, certain types are copied by default:"
msgstr "์ด๋์ด ๊ธฐ๋ณธ ์ค์ ์ด์ง๋ง, ํน์ ํ์
์ ๋ณต์ฌ๋ฉ๋๋ค:"
#: src/ownership/copy-clone.md:5
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let x = 42;\n"
" let y = x;\n"
" println!(\"x: {x}\");\n"
" println!(\"y: {y}\");\n"
"}\n"
"```"
msgstr ""
#: src/ownership/copy-clone.md:14
msgid "These types implement the `Copy` trait."
msgstr "์ด๋ฌํ ํ์
๋ค์ `Copy` ํธ๋ ์์ ๊ตฌํํฉ๋๋ค."
#: src/ownership/copy-clone.md:16
msgid "You can opt-in your own types to use copy semantics:"
msgstr "์ง์ ๋ง๋ ํ์
๋ค๋ `Copy`ํธ๋ ์์ ๊ตฌํํ์ฌ ๋ณต์ฌ๋ฅผ ํ ์ ์์ต๋๋ค:"
#: src/ownership/copy-clone.md:18
msgid ""
"```rust,editable\n"
"#[derive(Copy, Clone, Debug)]\n"
"struct Point(i32, i32);"
msgstr ""
#: src/ownership/copy-clone.md:22
msgid ""
"fn main() {\n"
" let p1 = Point(3, 4);\n"
" let p2 = p1;\n"
" println!(\"p1: {p1:?}\");\n"
" println!(\"p2: {p2:?}\");\n"
"}\n"
"```"
msgstr ""
#: src/ownership/copy-clone.md:30
msgid ""
"* After the assignment, both `p1` and `p2` own their own data.\n"
"* We can also use `p1.clone()` to explicitly copy the data."
msgstr ""
"* ํ ๋น ํ, `p1`์ `p2`๋ ์์ ์ ๋ฐ์ดํฐ๋ฅผ ์์ ํฉ๋๋ค.\n"
"* ๋ช
์์ ์ผ๋ก `p1.clone()`๋ฅผ ์ฌ์ฉํ์ฌ ๋ฐ์ดํฐ๋ฅผ ๋ณต์ฌํ ์ ์์ต๋๋ค."
#: src/ownership/copy-clone.md:35
msgid "Copying and cloning are not the same thing:"
msgstr "๋ณต์ฌ(copy)์ ๋ณต์ (clone)๋ ๊ฐ์ง ์์ต๋๋ค:"
#: src/ownership/copy-clone.md:37
msgid ""
"* Copying refers to bitwise copies of memory regions and does not work on arbitrary objects.\n"
"* Copying does not allow for custom logic (unlike copy constructors in C++).\n"
"* Cloning is a more general operation and also allows for custom behavior by implementing the `Clone` trait.\n"
"* Copying does not work on types that implement the `Drop` trait."
msgstr ""
"* ๋ณต์ฌ๋ ๋ฉ๋ชจ๋ฆฌ์ ๋ด์ฉ์ ๊ทธ๋๋ก ํ ๋ฒ ๋ ๋ง๋๋ ๊ฒ์ ์๋ฏธํ๋ฉฐ, ์๋ฌด ๊ฐ์ฒด์์๋ ๋ค ์ง์ํ์ง๋ ์์ต๋๋ค.\n"
"* ๋ณต์ฌ๋ ์ปค์คํฐ๋ง์ด์ฆ ํ ์ ์์ต๋๋ค. (C++์์ ๋ณต์ฌ ์์ฑ์๋ฅผ ํตํด ๋ณต์ฌ ๋์์ ์์๋ก ๊ตฌํํ ์ ์๋ ๊ฒ๊ณผ ๋น๊ต๊ฐ ๋ฉ๋๋ค.)\n"
"* ๋ณต์ ๋ ๋ณด๋ค ์ผ๋ฐ์ ์ธ ์์
์ด๋ฉฐ, `Clone`ํธ๋ ์์ ๊ตฌํํ์ฌ ๋ณต์ ์ ๋์์ ์ปค์คํฐ๋ง์ด์ฆ ํ ์ ์์ต๋๋ค.\n"
"* `Drop` ํธ๋ ์์ ๊ตฌํํ ํ์
์ ๋ณต์ฌ๋์ง ์์ต๋๋ค."
#: src/ownership/copy-clone.md:42 src/ownership/lifetimes-function-calls.md:29
msgid "In the above example, try the following:"
msgstr "์์ ์์์์ ๋ค์์ ์๋ํด ๋ณด์๊ธฐ ๋ฐ๋๋๋ค:"
#: src/ownership/copy-clone.md:44
msgid ""
"* Add a `String` field to `struct Point`. It will not compile because `String` is not a `Copy` type.\n"
"* Remove `Copy` from the `derive` attribute. The compiler error is now in the `println!` for `p1`.\n"
"* Show that it works if you clone `p1` instead."
msgstr ""
"* `Point`๊ตฌ์กฐ์ฒด์ `String`ํ๋๋ฅผ ์ถ๊ฐํ์ธ์. ์ปดํ์ผ ๋์ง ์์ ๊ฒ์
๋๋ค. ์๋ํ๋ฉด `String`์ `Copy`ํธ๋ ์์ ๊ตฌํํ๊ณ ์์ง ์๊ธฐ ๋๋ฌธ์
๋๋ค.\n"
"* `derive` ์์ฑ์์ `Copy`๋ฅผ ์ ๊ฑฐํด ๋ณด์ธ์. `p1`์ `println!` ํ ๋ ์ปดํ์ผ ์๋ฌ๊ฐ ๋ฐ์ํ ๊ฒ์
๋๋ค.\n"
"* `p1`์ ๋ณต์ ํ๋ฉด ์ ๋์ํจ์ ํ์ธํด ๋ณด์ธ์."
#: src/ownership/copy-clone.md:48
msgid ""
"If students ask about `derive`, it is sufficient to say that this is a way to generate code in Rust\n"
"at compile time. In this case the default implementations of `Copy` and `Clone` traits are generated.\n"
" \n"
" "
msgstr ""
"๋ง์ฝ ํ์๋ค์ด `derive`์ ๋ํด ๋ฌป๋๋ค๋ฉด, ์ปดํ์ผ ์ ๋ฌ์คํธ์์ ์ฝ๋๋ฅผ ์์ฑํ๋๋ฐฉ๋ฒ์ด๋ผ๊ณ ๋งํ๋ ๊ฒ์ผ๋ก ์ถฉ๋ถํฉ๋๋ค. ์ ๊ฒฝ์ฐ `Copy`์ `Clone` ํธ๋ ์์ ๋ํ ๊ธฐ๋ณธ ๊ตฌํ์ด ์์ฑ๋ฉ๋๋ค.\n"
" "
#: src/ownership/borrowing.md:1
msgid "# Borrowing"
msgstr "# ๋น๋ฆผ(Borrowing)"
#: src/ownership/borrowing.md:3
msgid ""
"Instead of transferring ownership when calling a function, you can let a\n"
"function _borrow_ the value:"
msgstr "ํจ์ ํธ์ถ์ ๊ฐ์ ์์ ๊ถ์ ์ด๋ํ๋ ๋์ ์ ํจ์๊ฐ ๊ฐ์ *๋น๋ ค์ฌ ์* ์์ต๋๋ค:"
#: src/ownership/borrowing.md:6 src/ownership/lifetimes-function-calls.md:5
msgid ""
"```rust,editable\n"
"#[derive(Debug)]\n"
"struct Point(i32, i32);"
msgstr ""
#: src/ownership/borrowing.md:10
msgid ""
"fn add(p1: &Point, p2: &Point) -> Point {\n"
" Point(p1.0 + p2.0, p1.1 + p2.1)\n"
"}"
msgstr ""
#: src/ownership/borrowing.md:14
msgid ""
"fn main() {\n"
" let p1 = Point(3, 4);\n"
" let p2 = Point(10, 20);\n"
" let p3 = add(&p1, &p2);\n"
" println!(\"{p1:?} + {p2:?} = {p3:?}\");\n"
"}\n"
"```"
msgstr ""
#: src/ownership/borrowing.md:22
msgid ""
"* The `add` function _borrows_ two points and returns a new point.\n"
"* The caller retains ownership of the inputs."
msgstr ""
"* `add` ํจ์๋ ๋ `Point` ๊ฐ์ฒด ๊ฐ์ _๋น๋ ค_์์ ์๋ก์ด `Point` ๊ฐ์ฒด๋ฅผ ๋ฐํํฉ๋๋ค.\n"
"* `p1`๊ณผ `p2`์ ์์ ๊ถ์ ์ฌ์ ํ ํธ์ถ์(`main`ํจ์)์ ์์ต๋๋ค."
#: src/ownership/borrowing.md:27
msgid ""
"Notes on stack returns:\n"
msgstr ""
"์คํ์ ํ ๋น๋ ๊ฐ์ ๋ฆฌํดํ๋ ๊ฒ์ ๋ํ ์ฐธ๊ณ : \n"
msgid ""
"* Demonstrate that the return from `add` is cheap because the compiler can eliminate the copy operation. Change the above code to print stack addresses and run it on the [Playground]. In the \"DEBUG\" optimization level, the addresses should change, while the stay the same when changing to the \"RELEASE\" setting:"
msgstr ""
"* `add`์์ ๊ฐ์ ๋ฐํํ๋ ๊ฒ์ ๋งค์ฐ ๊ฐ์ด ์ธ๋ค๋ ๊ฒ์ ์ค๋ช
ํ์ธ์. ์๋ํ๋ฉด, ์ปดํ์ผ๋ฌ๊ฐ ๋ณต์ฌ ๊ณผ์ ์ ์๋ตํ ์ ์๊ธฐ ๋๋ฌธ์
๋๋ค. ์ ์ฝ๋๋ฅผ ์คํ ์ฃผ์๋ฅผ ์ถ๋ ฅํ๋๋ก ์์ ํ๊ณ [Playground]์์ ์ํํด ๋ณด์ธ์. \"๋๋ฒ๊ทธ\" ์ต์ ํ ๋ ๋ฒจ์์๋ ์ฃผ์๊ฐ ๋ฐ๋์ง๋ง, \"๋ฆด๋ฆฌ์ฆ\" ๋ ๋ฒจ์์๋ ๋ฐ๋์ง ์์ต๋๋ค:"
#: src/ownership/borrowing.md:30
msgid ""
" ```rust,editable\n"
" #[derive(Debug)]\n"
" struct Point(i32, i32);"
msgstr ""
#: src/ownership/borrowing.md:34
msgid ""
" fn add(p1: &Point, p2: &Point) -> Point {\n"
" let p = Point(p1.0 + p2.0, p1.1 + p2.1);\n"
" println!(\"&p.0: {:p}\", &p.0);\n"
" p\n"
" }"
msgstr ""
#: src/ownership/borrowing.md:40
msgid ""
" fn main() {\n"
" let p1 = Point(3, 4);\n"
" let p2 = Point(10, 20);\n"
" let p3 = add(&p1, &p2);\n"
" println!(\"&p3.0: {:p}\", &p3.0);\n"
" println!(\"{p1:?} + {p2:?} = {p3:?}\");\n"
" }\n"
" ```\n"
msgstr ""
" fn main() {\n"
" let p1 = Point(3, 4);\n"
" let p2 = Point(10, 20);\n"
" let p3 = add(&p1, &p2);\n"
" println!(\"&p3.0: {:p}\", &p3.0);\n"
" println!(\"{p1:?} + {p2:?} = {p3:?}\");\n"
" }\n"
" ```\n"
msgid ""
"* The Rust compiler can do return value optimization (RVO).\n"
"* In C++, copy elision has to be defined in the language specification because constructors can have side effects. In Rust, this is not an issue at all. If RVO did not happen, Rust will always performs a simple and efficient `memcpy` copy."
msgstr ""
"* ๋ฌ์คํธ ์ปดํ์ผ๋ฌ๋ ๋ฐํ๊ฐ ์ต์ ํ(RVO)๋ฅผ ์ํํ ์ ์์ต๋๋ค.\n"
"* C++์์ copy elision์ ์์ฑ์์ ๋ถ์ํจ๊ณผ ๊ฐ๋ฅ์ฑ์ด ์์ด ์ธ์ด๋ ๋ฒจ์ ์ ์๊ฐ ํ์ํ์ง๋ง ๋ฌ์คํธ์์๋ ๋ฌธ์ ๊ฐ ๋์ง ์์ต๋๋ค. ๋ง์ฝ RVO๊ฐ ๋ฐ์ํ์ง ์์ผ๋ฉด ๋ฌ์คํธ๋ ํญ์ ๊ฐ๋จํ๊ณ ํจ์จ์ ์ธ `memcpy`๋ณต์ฌ๋ฅผ ์ํํ ๊ฒ์
๋๋ค."
#: src/ownership/borrowing.md:53
msgid "[Playground]: https://play.rust-lang.org/"
msgstr ""
#: src/ownership/shared-unique-borrows.md:1
msgid "# Shared and Unique Borrows"
msgstr "# ๊ณต์ ์ ๊ณ ์ ๋น๋ฆผ"
#: src/ownership/shared-unique-borrows.md:3
msgid "Rust puts constraints on the ways you can borrow values:"
msgstr "๋ฌ์คํธ์์๋ ๊ฐ์ ๋น๋ฆด ๋ ๋ค์๊ณผ ๊ฐ์ ์ ์ฝ์กฐ๊ฑด์ด ์์ต๋๋ค:"
#: src/ownership/shared-unique-borrows.md:5
msgid ""
"* You can have one or more `&T` values at any given time, _or_\n"
"* You can have exactly one `&mut T` value."
msgstr ""
"* ํ๋ฒ์ ํ๋ ์ด์์ `&T` ๊ฐ์ ๊ฐ์ง๊ฑฐ๋, _๋๋_\n"
"* ์ ํํ ํ๋์ `&mut T` ๊ฐ๋ง์ ๊ฐ์ง ์ ์์ต๋๋ค."
#: src/ownership/shared-unique-borrows.md:8
msgid ""
"```rust,editable,compile_fail\n"
"fn main() {\n"
" let mut a: i32 = 10;\n"
" let b: &i32 = &a;"
msgstr ""
#: src/ownership/shared-unique-borrows.md:13
msgid ""
" {\n"
" let c: &mut i32 = &mut a;\n"
" *c = 20;\n"
" }"
msgstr ""
#: src/ownership/shared-unique-borrows.md:18 src/std/rc.md:13
msgid ""
" println!(\"a: {a}\");\n"
" println!(\"b: {b}\");\n"
"}\n"
"```"
msgstr ""
#: src/ownership/shared-unique-borrows.md:25
msgid ""
"* The above code does not compile because `a` is borrowed as mutable (through `c`) and as immutable (through `b`) at the same time.\n"
"* Move the `println!` statement for `b` before the scope that introduces `c` to make the code compile.\n"
"* After that change, the compiler realizes that `b` is only ever used before the new mutable borrow of `a` through `c`. This is a feature of the borrow checker called \"non-lexical lifetimes\"."
msgstr ""
"* ์ ์ฝ๋ ์ปดํ์ผ ๋์ง ์์ต๋๋ค. ์๋ํ๋ฉด `c`๋ `a`๋ฅผ ๊ฐ๋ณ ๋ณ์๋ก ๋น๋ ธ๊ณ , ์ด์ ๋์์ `b`๋ `a`๋ฅผ ๋ถ๋ณ ๋ณ์๋ก ๋น๋ ธ๊ธฐ ๋๋ฌธ์
๋๋ค.\n"
"* `b`์ ๋ํ `println!` ๊ตฌ๋ถ์ `c`๊ฐ ์๋ ์ค์ฝํ ์์ผ๋ก ์ด๋ํ๋ฉด ์ปดํ์ผ์ด ๋ฉ๋๋ค.\n"
"* ์ด๋ ๊ฒ ๋ฐ๊พธ๋ฉด, ์ปดํ์ผ๋ฌ๋ `c`๊ฐ `a`๋ฅผ ๊ฐ๋ณ ๋ณ์๋ก ๋น๋ฆฌ๊ธฐ ์ ์๋ง `b`๊ฐ ์ฌ์ฉ๋๋ค๋ ๊ฒ์ ํ์ธํ ์ ์์ต๋๋ค. ๋น๋ฆผ ๊ฒ์ฌ๊ธฐ์ ์ด๋ฌํ ๊ธฐ๋ฅ์ \"non-lexical lifetime\" ์ด๋ผ๊ณ ํฉ๋๋ค.\n"
" * ๋จ์ํ ์ค์ฝํ๋ง ๋ณด๋ฉด `b`์ ์๋ช
์ `main`ํจ์์ ์ ์ฒด๋ผ๊ณ ์๊ฐํ ์ ์์ต๋๋ค. ๋๋ฌธ์ `c`์ ๋ธ๋ก ์์์๋ `a`์ ๋ํ ๊ฐ๋ณ ๋น๋ฆผ๊ณผ ๋ถ๋ณ ๋น๋ฆผ์ด ๋์์ ์กด์ฌํ๋ ๊ฒ ์ฒ๋ผ ๋ณด์ด๋ฉฐ, ์ด๋ ์ ์ ์ฝ ์กฐ๊ฑด์ ์๋ฐํ๋ ๊ฒ์ผ๋ก ์๊ฐํ ์ ์์ต๋๋ค. ๊ทธ๋ฌ๋ ์ปดํ์ผ๋ฌ๋ `b`๊ฐ `c`๋ธ๋ก์ด ์์๋๊ธฐ ์ ์๋ง ์ฌ์ฉ๋๋ค๋ ์ ์ ์ ๊ทน ํ์ฉํด์ `b`์ ์๋ช
์ `c`๋ธ๋ก์ ์์ ์ ๊น์ง๋ก ์ค์
๋๋ค. ๊ทธ๋ฌ๋ฉด `b`์ `c`์ ์๋ช
์ ๊ฒน์น์ง ์๊ณ , ๋ฐ๋ผ์ ์ ์ฝ ์กฐ๊ฑด์ ์๋ฐํ์ง ์์ต๋๋ค."
#: src/ownership/lifetimes.md:1
msgid "# Lifetimes"
msgstr "# ์๋ช
"
#: src/ownership/lifetimes.md:3
msgid "A borrowed value has a _lifetime_:"
msgstr "๋น๋ ค์จ ๊ฐ์ *์๋ช
*์ ๊ฐ์ต๋๋ค:"
#: src/ownership/lifetimes.md:5
msgid ""
"* The lifetime can be elided: `add(p1: &Point, p2: &Point) -> Point`.\n"
"* Lifetimes can also be explicit: `&'a Point`, `&'document str`.\n"
"* Read `&'a Point` as \"a borrowed `Point` which is valid for at least the\n"
" lifetime `a`\".\n"
"* Lifetimes are always inferred by the compiler: you cannot assign a lifetime\n"
" yourself.\n"
" * Lifetime annotations create constraints; the compiler verifies that there is\n"
" a valid solution."
msgstr ""
"* ์๋ช
์ ์๋ตํ ์ ์์ต๋๋ค: `add(p1: &Point, p2: &Point) -> Point`.\n"
"* ๋ฌผ๋ก ๋ช
์ํ ์๋ ์์ต๋๋ค: `&'a Point`, `&'document str`.\n"
"* `&'a Point` ๋ `Point`์ ์๋ช
์ด ์ต์ํ `'a`๋ผ๋ ์๋ช
๋ณด๋ค๋ ๊ฐ๊ฑฐ๋ ๋ ๊ธธ๋ค๋ ๊ฒ์ ์๋ฏธํฉ๋๋ค.\n"
"* ์๋ช
์ ํญ์ ์ปดํ์ผ๋ฌ๊ฐ ์๋์ผ๋ก ์ถ๋ก ํฉ๋๋ค. ์ง์ ์๋ช
์ ์ง์ ํ ์๋ ์์ต๋๋ค.\n"
" * ์๋ช
ํ๊ธฐ(`'`)์ ์๋ช
์ถ๋ก ์ ์ ์ฝ์กฐ๊ฑด์ด ๋ฉ๋๋ค. ์ปดํ์ผ๋ฌ๋ ์ด ์ ์ฝ์กฐ๊ฑด์ ๋ง์กฑ์ํค๋ ์ ์ํ ์๋ช
์ ์ถ๋ก ํ ์ ์๋์ง ๊ฒ์ฌ๋ฅผ ํฉ๋๋ค."
#: src/ownership/lifetimes-function-calls.md:1
msgid "# Lifetimes in Function Calls"
msgstr "# ํจ์ ํธ์ถ์์์ ์๋ช
"
#: src/ownership/lifetimes-function-calls.md:3
msgid "In addition to borrowing its arguments, a function can return a borrowed value:"
msgstr "ํจ์๋ ์ธ์๋ฅผ ๋น๋ฆฌ๋ ๊ฒ ์ธ์๋ ๋น๋ฆฐ ๊ฐ์ ๋ฐํํ ์ ์์ต๋๋ค:"
#: src/ownership/lifetimes-function-calls.md:9
msgid ""
"fn left_most<'a>(p1: &'a Point, p2: &'a Point) -> &'a Point {\n"
" if p1.0 < p2.0 { p1 } else { p2 }\n"
"}"
msgstr ""
#: src/ownership/lifetimes-function-calls.md:13
msgid ""
"fn main() {\n"
" let p1: Point = Point(10, 10);\n"
" let p2: Point = Point(20, 20);\n"
" let p3: &Point = left_most(&p1, &p2);\n"
" println!(\"left-most point: {:?}\", p3);\n"
"}\n"
"```"
msgstr ""
#: src/ownership/lifetimes-function-calls.md:21
msgid ""
"* `'a` is a generic parameter, it is inferred by the compiler.\n"
"* Lifetimes start with `'` and `'a` is a typical default name.\n"
"* Read `&'a Point` as \"a borrowed `Point` which is valid for at least the\n"
" lifetime `a`\".\n"
" * The _at least_ part is important when parameters are in different scopes."
msgstr ""
"* `'a`๋ ์ ๋ค๋ฆญ ๋งค๊ฐ๋ณ์๋ก ์ปดํ์ผ๋ฌ๋ก์ ์ํด ์ถ๋ก ๋ฉ๋๋ค.\n"
"* ์๋ช
์ ์ด๋ฆ์ `'` ๋ก ์์ํ๋ฉฐ ๋ณดํต `'a`๋ฅผ ๋ง์ด ์๋๋ค.\n"
"* `&'a Point` ๋ `Point`์ ์๋ช
์ด `'a` ์๋ช
๊ณผ ์ต์ํ ๊ฐ๊ฑฐ๋ ๋ ๊ธธ๋ค๋ ๊ฒ์ ์๋ฏธํฉ๋๋ค.\n"
" * ๋งค๊ฐ๋ณ์๋ค์ด ์๋ก ๋ค๋ฅธ ์ค์ฝํ์ ์์ ๊ฒฝ์ฐ \"์ต์ํ\"์ด๋ผ๋ ์กฐ๊ฑด์ด ์ค์ํฉ๋๋ค."
#: src/ownership/lifetimes-function-calls.md:31
msgid ""
"* Move the declaration of `p2` and `p3` into a a new scope (`{ ... }`), resulting in the following code:\n"
" ```rust,ignore\n"
" #[derive(Debug)]\n"
" struct Point(i32, i32);"
msgstr ""
"* `p2`์ `p3`๋ฅผ ์๋ก์ด ๋ฒ์(`{...}`)๋ก ์๋ ์ฝ๋์ ๊ฐ์ด ์ด๋ํด ๋ด
๋๋ค:\n"
" ```rust,ignore\n"
" #[derive(Debug)]\n"
" struct Point(i32, i32);"
#: src/ownership/lifetimes-function-calls.md:36
msgid ""
" fn left_most<'a>(p1: &'a Point, p2: &'a Point) -> &'a Point {\n"
" if p1.0 < p2.0 { p1 } else { p2 }\n"
" }"
msgstr ""
#: src/ownership/lifetimes-function-calls.md:40
msgid ""
" Note how this does not compile since `p3` outlives `p2`."
msgstr ""
" `p3`์ ์๋ช
์ด `p2` ๋ณด๋ค ๊ธธ๊ธฐ ๋๋ฌธ์ ์ด ์์ ๋ ์ปดํ์ผ๋์ง ์์์ ํ์ธํ์๊ธฐ ๋ฐ๋๋๋ค."
#: src/ownership/lifetimes-function-calls.md:52
msgid ""
"* Reset the workspace and change the function signature to `fn left_most<'a, 'b>(p1: &'a Point, p2: &'a Point) -> &'b Point`. This will not compile because the relationship between the lifetimes `'a` and `'b` is unclear.\n"
"* Another way to explain it:\n"
" * Two references to two values are borrowed by a function and the function returns\n"
" another reference.\n"
" * It must have come from one of those two inputs (or from a global variable).\n"
" * Which one is it? The compiler needs to to know, so at the call site the returned reference is not used\n"
" for longer than a variable from where the reference came from."
msgstr ""
"* ์์
๊ณต๊ฐ์ ์ด๊ธฐํ ํ ํ ํจ์ ์๊ทธ๋์ฒ๋ฅผ `fn left_most<'a, 'b>(p1: &'a Point, p2: &'a Point) -> &'b Point`๋ก ๋ณ๊ฒฝํด ๋ด
๋๋ค. ์ด ๊ฒฝ์ฐ `'a`์ `'b`์ฌ์ด์ ๊ด๊ณ๊ฐ ๋ถ๋ถ๋ช
ํ๊ธฐ ๋๋ฌธ์ ์ปดํ์ผ ๋์ง ์์ต๋๋ค.\n"
"* ์ด ์๋ฌ๋ฅผ ์ค๋ช
ํ๋ ๋ ๋ค๋ฅธ ๋ฐฉ๋ฒ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:\n"
" * ์ด ํจ์๋ ๋ ๊ฐ์ ๋น๋ ค์, ์๋ก์ด ์ฐธ์กฐ๋ฅผ ๋ฐํํฉ๋๋ค.\n"
" * ์ด ๋ฐํ๋ ์ฐธ์กฐ๋ ๋ ์
๋ ฅ ์ค ํ๋๋ก ๋ถํฐ ์์ผ ํฉ๋๋ค. (์๋๋ฉด ์ ์ญ ๋ณ์๋ก ๋ถํฐ)\n"
" * ๋ ์
๋ ฅ ์ค ์ด๋ค ๊ฒ์ผ๊น์? ์ปดํ์ผ๋ฌ๋ ์ด๋ฅผ ์์์ผ ํฉ๋๋ค. ๊ทธ๋์ผ๋ง ํจ์ ํธ์ถ๋ถ์์ ๋ดค์ ๋, ๋ฐํ๋ ์ฐธ์กฐ์ ์๋ช
์ด ์๋ ๊ฐ์ ์๋ช
๋ณด๋ค ๊ธธ์ง ์์์ ํ์ธํ ์ ์๊ธฐ ๋๋ฌธ์
๋๋ค."
#: src/ownership/lifetimes-data-structures.md:1
msgid "# Lifetimes in Data Structures"
msgstr "# ๊ตฌ์กฐ์ฒด์์์ ์๋ช
"
#: src/ownership/lifetimes-data-structures.md:3
msgid "If a data type stores borrowed data, it must be annotated with a lifetime:"
msgstr "์ด๋ค ํ์
์ด ๋น๋ ค์จ ๋ฐ์ดํฐ๋ฅผ ์ ์ฅํ๊ณ ์๋ค๋ฉด, ๋ฐ๋์ ์๋ช
์ ํ์ํด์ผ ํฉ๋๋ค:"
#: src/ownership/lifetimes-data-structures.md:5
msgid ""
"```rust,editable\n"
"#[derive(Debug)]\n"
"struct Highlight<'doc>(&'doc str);"
msgstr ""
#: src/ownership/lifetimes-data-structures.md:9
msgid ""
"fn erase(text: String) {\n"
" println!(\"Bye {text}!\");\n"
"}"
msgstr ""
#: src/ownership/lifetimes-data-structures.md:13
msgid ""
"fn main() {\n"
" let text = String::from(\"The quick brown fox jumps over the lazy dog.\");\n"
" let fox = Highlight(&text[4..19]);\n"
" let dog = Highlight(&text[35..43]);\n"
" // erase(text);\n"
" println!(\"{fox:?}\");\n"
" println!(\"{dog:?}\");\n"
"}\n"
"```"
msgstr ""
#: src/ownership/lifetimes-data-structures.md:25
msgid ""
"* In the above example, the annotation on `Highlight` enforces that the data underlying the contained `&str` lives at least as long as any instance of `Highlight` that uses that data.\n"
"* If `text` is consumed before the end of the lifetime of `fox` (or `dog`), the borrow checker throws an error.\n"
"* Types with borrowed data force users to hold on to the original data. This can be useful for creating lightweight views, but it generally makes them somewhat harder to use.\n"
"* When possible, make data structures own their data directly.\n"
"* Some structs with multiple references inside can have more than one lifetime annotation. This can be necessary if there is a need to describe lifetime relationships between the references themselves, in addition to the lifetime of the struct itself. Those are very advanced use cases.\n"
" "
msgstr ""
"* ์์ ์์ ์์ `Highlight`์ ์ด๋
ธํ
์ด์
(`<'doc>`)์ ์ ์ด๋ `Highlight` ์ธ์คํด์ค๊ฐ ์ด์์๋ ๋์์๋ ๊ทธ ๋ด๋ถ์ `&str`๊ฐ ๊ฐ๋ฆฌํค๋ ๋ฐ์ดํฐ ์ญ์ ์ด์์์ด์ผ ํ๋ค๋ ๊ฒ์ ์๋ฏธํฉ๋๋ค.\n"
"* ๋ง์ฝ `text`๊ฐ `fox` (ํน์ `dog`)์ ์๋ช
์ด ๋คํ๊ธฐ ์ ์ `erase`ํจ์ ํธ์ถ ๋ฑ์ผ๋ก ์ฌ๋ผ์ง๊ฒ ๋๋ค๋ฉด ๋น๋ฆผ ๊ฒ์ฌ๊ธฐ๊ฐ ์๋ฌ๋ฅผ ๋ฐ์ํฉ๋๋ค.\n"
"* ๋น๋ฆฐ ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ง๊ณ ์๋ ํ์
์ ์ฌ์ฉ์๋ก ํ์ฌ๊ธ ์๋ณธ ๋ฐ์ดํฐ๋ฅผ ์ ์งํ๋๋ก ๊ฐ์ ํฉ๋๋ค. ์ด๋ฐ ํ์
์ ๊ฒฝ๋ ๋ทฐ(lightweight view)๋ฅผ ๋ง๋๋๋ฐ ์ ์ฉํ์ง๋ง, ์ด ์ ์ฝ ์กฐ๊ฑด ๋๋ฌธ์ ์ด๋ฐ ํ์
์ ์ฌ์ฉํ๋ ๊ฒ์ด ์ฝ์ง๋ง์ ์์ต๋๋ค.\n"
"* ๋ฐ๋ผ์, ๊ฐ๋ฅํ๋ค๋ฉด, ๊ตฌ์กฐ์ฒด๊ฐ ์์ ์ ๋ฐ์ดํฐ๋ฅผ ์ง์ ์์ ํ๋๋ก ํ๋ ๊ฒ์ด ์ข์ต๋๋ค.\n"
"* ํ ๊ตฌ์กฐ์ฒด์์ ์ฌ๋ฌ ์ฐธ์กฐ๊ฐ ์์ผ๋ฉด์, ์ด ์ฐธ์กฐ๋ค์ ์๋ช
์ด ์๋ก ๋ค๋ฅด๊ฒ ์ง์ ๋๋ ๊ฒฝ์ฐ๋ ์์ต๋๋ค. ์ด๋ ์ฐธ์กฐ์ ๊ทธ ๊ตฌ์กฐ์ฒด ๊ฐ์ ๊ด๊ณ ๋ฟ๋ง์ด ์๋๋ผ, ๊ทธ ์ฐธ์กฐ๋ค ์ฌ์ด์ ์๋ช
๊ด๊ณ๋ฅผ ์ค๋ช
ํด์ผ ํ ๊ฒฝ์ฐ์ ํ์ํฉ๋๋ค. ๋งค์ฐ ๊ณ ๊ธ ๊ธฐ์ ์
๋๋ค.\n"
" "
#: src/exercises/day-1/afternoon.md:1
msgid "# Day 1: Afternoon Exercises"
msgstr "# 1์ผ์ฐจ ์คํ ์ฐ์ต๋ฌธ์ "
#: src/exercises/day-1/afternoon.md:3
msgid "We will look at two things:"
msgstr "์ด๋ฒ ์ฐ์ต๋ฌธ์ ๋ ์๋ ๋๊ฐ์ง์
๋๋ค:"
#: src/exercises/day-1/afternoon.md:5
msgid "* A small book library,"
msgstr "* ์์ ๋์๊ด"
#: src/exercises/day-1/afternoon.md:7
msgid "* Iterators and ownership (hard)."
msgstr "* ๋ฐ๋ณต์์ ์์ ๊ถ (์ด๋ ค์)"
#: src/exercises/day-1/afternoon.md:13 src/exercises/day-2/afternoon.md:9
msgid "[solutions]: solutions-afternoon.md"
msgstr ""
#: src/exercises/day-1/book-library.md:1
msgid "# Designing a Library"
msgstr "# ๋์๊ด ์ค๊ณ"
#: src/exercises/day-1/book-library.md:3
msgid ""
"We will learn much more about structs and the `Vec` type tomorrow. For now,\n"
"you just need to know part of its API:"
msgstr "์ฐ๋ฆฌ๋ ๋ด์ผ ๊ตฌ์กฐ์ฒด์ `Vec`์ ๋ํด ๋ ๋ง์ ๊ฒ์ ๋ฐฐ์ธ ๊ฒ์
๋๋ค. ์ผ๋จ ์ค๋์ API์ ์ผ๋ถ๋ง ์๋ฉด ๋ฉ๋๋ค:"
#: src/exercises/day-1/book-library.md:6
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let mut vec = vec![10, 20];\n"
" vec.push(30);\n"
" println!(\"middle value: {}\", vec[vec.len() / 2]);\n"
" for item in vec.iter() {\n"
" println!(\"item: {item}\");\n"
" }\n"
"}\n"
"```"
msgstr ""
#: src/exercises/day-1/book-library.md:17
msgid ""
"Use this to create a library application. Copy the code below to\n"
" and update the types to make it compile:"
msgstr "๋์๊ด ํ๋ก๊ทธ๋จ์ ๋ง๋ค๊ธฐ ์ํด ์๋ ์ฝ๋๋ฅผ ์ ๋ณต์ฌํด์ ๊ตฌํํ์๋ฉด ๋ฉ๋๋ค:"
#: src/exercises/day-1/book-library.md:20
msgid "```rust,should_panic"
msgstr ""
#: src/exercises/day-1/book-library.md:22
msgid ""
"struct Library {\n"
" books: Vec,\n"
"}"
msgstr ""
#: src/exercises/day-1/book-library.md:26
#: src/exercises/day-1/solutions-afternoon.md:27
msgid ""
"struct Book {\n"
" title: String,\n"
" year: u16,\n"
"}"
msgstr ""
#: src/exercises/day-1/book-library.md:31
#: src/exercises/day-1/solutions-afternoon.md:32
msgid ""
"impl Book {\n"
" // This is a constructor, used below.\n"
" fn new(title: &str, year: u16) -> Book {\n"
" Book {\n"
" title: String::from(title),\n"
" year,\n"
" }\n"
" }\n"
"}"
msgstr ""
"impl Book {\n"
" // ์๋๋ Book ๊ตฌ์กฐ์ฒด์ ์์ฑ์์
๋๋ค.\n"
" fn new(title: &str, year: u16) -> Book {\n"
" Book {\n"
" title: String::from(title),\n"
" year,\n"
" }\n"
" }\n"
"}"
#: src/exercises/day-1/book-library.md:41
msgid ""
"// This makes it possible to print Book values with {}.\n"
"impl std::fmt::Display for Book {\n"
" fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {\n"
" write!(f, \"{} ({})\", self.title, self.year)\n"
" }\n"
"}"
msgstr ""
"// ์ด ๊ตฌํ๋ฉ์๋๋ {} ํฌ๋งท์ผ๋ก ์ถ๋ ฅํ ์ ์๊ฒ ๋์์ค๋๋ค.\n"
"impl std::fmt::Display for Book {\n"
" fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {\n"
" write!(f, \"{} ({})\", self.title, self.year)\n"
" }\n"
"}"
#: src/exercises/day-1/book-library.md:48
msgid ""
"impl Library {\n"
" fn new() -> Library {\n"
" unimplemented!()\n"
" }"
msgstr ""
#: src/exercises/day-1/book-library.md:53
msgid ""
" //fn len(self) -> usize {\n"
" // unimplemented!()\n"
" //}"
msgstr ""
#: src/exercises/day-1/book-library.md:57
msgid ""
" //fn is_empty(self) -> bool {\n"
" // unimplemented!()\n"
" //}"
msgstr ""
#: src/exercises/day-1/book-library.md:61
msgid ""
" //fn add_book(self, book: Book) {\n"
" // unimplemented!()\n"
" //}"
msgstr ""
#: src/exercises/day-1/book-library.md:65
msgid ""
" //fn print_books(self) {\n"
" // unimplemented!()\n"
" //}"
msgstr ""
#: src/exercises/day-1/book-library.md:69
msgid ""
" //fn oldest_book(self) -> Option<&Book> {\n"
" // unimplemented!()\n"
" //}\n"
"}"
msgstr ""
#: src/exercises/day-1/book-library.md:74
msgid ""
"// This shows the desired behavior. Uncomment the code below and\n"
"// implement the missing methods. You will need to update the\n"
"// method signatures, including the \"self\" parameter! You may\n"
"// also need to update the variable bindings within main.\n"
"fn main() {\n"
" let library = Library::new();"
msgstr ""
"// ์๋ ์์ค ์ฃผ์์ ์ ๊ฑฐํ๊ณ ๋๋ฝ๋ ๋ฉ์๋๋ฅผ ๊ตฌํํ์ธ์\n"
"// ๋ฏธ๊ตฌํ ๋ฉ์๋๋ ์กด์ฌํ๋ฏ๋ก ๋ฉ์๋ ์๊ทธ๋์ฒ๋ฅผ ์
๋ฐ์ดํธ ํ์ธ์(self ํฌํจ)\n"
"fn main() {\n"
" let library = Library::new();"
#: src/exercises/day-1/book-library.md:81
#: src/exercises/day-1/solutions-afternoon.md:113
msgid " //println!(\"Our library is empty: {}\", library.is_empty());"
msgstr ""
#: src/exercises/day-1/book-library.md:83
msgid ""
" let favorite_book = Book::new(\"Lord of the Rings\", 1954);\n"
" println!(\"Our favorite book {favorite_book} should go in the library\");\n"
" //library.add_book(favorite_book);\n"
" //library.add_book(Book::new(\"Alice's Adventures in Wonderland\", 1865));\n"
" //\n"
" //library.print_books();\n"
" //\n"
" //match library.oldest_book() {\n"
" // Some(book) => println!(\"My oldest book is {book}\"),\n"
" // None => println!(\"My library is empty!\"),\n"
" //}\n"
" //\n"
" //println!(\"Our library has {} books\", library.len());\n"
" for book in library.books {\n"
" println!(\"{book}\");\n"
" }\n"
"}\n"
"```"
msgstr ""
#: src/exercises/day-1/book-library.md:102
msgid ""
"[Solution](solutions-afternoon.md#designing-a-library)"
msgstr ""
"[ํด๋ต](solutions-afternoon.md#designing-a-library)"
#: src/exercises/day-1/iterators-and-ownership.md:1
msgid "# Iterators and Ownership"
msgstr "# ๋ฐ๋ณต์์ ์์ ๊ถ"
#: src/exercises/day-1/iterators-and-ownership.md:3
msgid ""
"The ownership model of Rust affects many APIs. An example of this is the\n"
"[`Iterator`](https://doc.rust-lang.org/std/iter/trait.Iterator.html) and\n"
"[`IntoIterator`](https://doc.rust-lang.org/std/iter/trait.IntoIterator.html)\n"
"traits."
msgstr "๋ฌ์คํธ์ ์์ ๊ถ ๋ชจ๋ธ์ ๋ง์ API์ ๋ฐ์์ด ๋์ด ์์ต๋๋ค. ์๋ฅผ๋ค์ด [`Iterator`](https://doc.rust-lang.org/std/iter/trait.Iterator.html) ์ [`IntoIterator`](https://doc.rust-lang.org/std/iter/trait.IntoIterator.html) ๊ฐ์ ํธ๋ ์์ด ์์ต๋๋ค."
#: src/exercises/day-1/iterators-and-ownership.md:8
msgid "## `Iterator`"
msgstr ""
#: src/exercises/day-1/iterators-and-ownership.md:10
msgid ""
"Traits are like interfaces: they describe behavior (methods) for a type. The\n"
"`Iterator` trait simply says that you can call `next` until you get `None` back:"
msgstr "ํธ๋ ์์ ํ์
์ ๋ํ ํ๋(๋ฉ์๋)๋ฅผ ์ค๋ช
ํ๋ค๋ ์ ์์ ์ธํฐํ์ด์ค์ ์ ์ฌํฉ๋๋ค. `Iterator`๋ ๋จ์ํ `None`์ด ๋์ฌ๋๊น์ง `next`๋ฅผ ํธ์ถํ๋ ๊ฒ์ด ๊ฐ๋ฅํ๋ค๋ ๊ฒ์ ๋ํ๋ด๋ ํธ๋ ์์
๋๋ค:"
#: src/exercises/day-1/iterators-and-ownership.md:13
msgid ""
"```rust\n"
"pub trait Iterator {\n"
" type Item;\n"
" fn next(&mut self) -> Option;\n"
"}\n"
"```"
msgstr ""
#: src/exercises/day-1/iterators-and-ownership.md:20
msgid "You use this trait like this:"
msgstr "`Iterator` ํธ๋ ์์ ์ด๋ ๊ฒ ์ฌ์ฉํฉ๋๋ค:"
#: src/exercises/day-1/iterators-and-ownership.md:22
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let v: Vec = vec![10, 20, 30];\n"
" let mut iter = v.iter();"
msgstr ""
#: src/exercises/day-1/iterators-and-ownership.md:27
msgid ""
" println!(\"v[0]: {:?}\", iter.next());\n"
" println!(\"v[1]: {:?}\", iter.next());\n"
" println!(\"v[2]: {:?}\", iter.next());\n"
" println!(\"No more items: {:?}\", iter.next());\n"
"}\n"
"```"
msgstr ""
#: src/exercises/day-1/iterators-and-ownership.md:34
msgid "What is the type returned by the iterator? Test your answer here:"
msgstr "๋ฐ๋ณต์๊ฐ ๋ฐํํ๋ ๊ฐ๋ค์ ํ์
์ด ๋ญ๊น์? ์ฌ๊ธฐ์ ๋ต์ ํ
์คํธ ํด ๋ณด์ธ์:"
#: src/exercises/day-1/iterators-and-ownership.md:36
msgid ""
"```rust,editable,compile_fail\n"
"fn main() {\n"
" let v: Vec = vec![10, 20, 30];\n"
" let mut iter = v.iter();"
msgstr ""
#: src/exercises/day-1/iterators-and-ownership.md:41
#: src/exercises/day-1/iterators-and-ownership.md:78
msgid ""
" let v0: Option<..> = iter.next();\n"
" println!(\"v0: {v0:?}\");\n"
"}\n"
"```"
msgstr ""
#: src/exercises/day-1/iterators-and-ownership.md:46
msgid "Why is this type used?"
msgstr "์ ์ด๋ฐ ํ์
์ด ์ฌ์ฉ๋๋ ๊ฒ์ผ๊น์?"
#: src/exercises/day-1/iterators-and-ownership.md:48
msgid "## `IntoIterator`"
msgstr ""
#: src/exercises/day-1/iterators-and-ownership.md:50
msgid ""
"The `Iterator` trait tells you how to _iterate_ once you have created an\n"
"iterator. The related trait `IntoIterator` tells you how to create the iterator:"
msgstr "`Iterator` ํธ๋ ์์ ์์ฑ๋ ๋ฐ๋ณต์๋ฅผ *์ฌ์ฉ*ํ๋ ๋ฐฉ๋ฒ์ ์๋ ค์ค๋๋ค. ๋ฐ๋ฉด `IntoIterator` ํธ๋ ์์ ๋ฐ๋ณต์๋ฅผ *์์ฑ*ํ๋ ๋ฐฉ๋ฒ์ ์๋ ค์ค๋๋ค:"
#: src/exercises/day-1/iterators-and-ownership.md:53
msgid ""
"```rust\n"
"pub trait IntoIterator {\n"
" type Item;\n"
" type IntoIter: Iterator- ;"
msgstr ""
#: src/exercises/day-1/iterators-and-ownership.md:58
msgid ""
" fn into_iter(self) -> Self::IntoIter;\n"
"}\n"
"```"
msgstr ""
#: src/exercises/day-1/iterators-and-ownership.md:62
msgid ""
"The syntax here means that every implementation of `IntoIterator` must\n"
"declare two types:"
msgstr "`IntoIterator`์ ๋ชจ๋ ๊ตฌํ์ ๋ฐ๋์ ๋ค์์ ๋ ํ์
์ ์ ์ธํด์ผํฉ๋๋ค:"
#: src/exercises/day-1/iterators-and-ownership.md:65
msgid ""
"* `Item`: the type we iterate over, such as `i8`,\n"
"* `IntoIter`: the `Iterator` type returned by the `into_iter` method."
msgstr ""
"* `Item`: `i8`๊ณผ ๊ฐ์ด ๋ฐ๋ณต๋๋ ๊ฐ์ ํ์
\n"
"* `IntoIter`: `into_iter` ๋ฉ์๋์์ ๋ฐํ๋๋ `Iterator`ํ์
."
#: src/exercises/day-1/iterators-and-ownership.md:68
msgid ""
"Note that `IntoIter` and `Item` are linked: the iterator must have the same\n"
"`Item` type, which means that it returns `Option
- `"
msgstr "`IntoIter`์๋ `Item`์ด ์ฐ๊ฒฐ๋์ด ์์์ ์ฃผ๋ชฉํ์ธ์. `IntoIter` ๋ฐ๋ณต์๋ `Item` ํ์
์ ๋ฐ์ดํฐ๋ฅผ ๊ฐ๋ฆฌ์ผ์ผ ํฉ๋๋ค. ์ฆ, ๋ฐ๋ณต์๋ `Option
- `์ ๋ฆฌํดํฉ๋๋ค."
#: src/exercises/day-1/iterators-and-ownership.md:71
msgid "Like before, what is the type returned by the iterator?"
msgstr "์ด์ ๊ณผ ๋ง์ฐฌ๊ฐ์ง๋ก, ๋ฐ๋ณต์๊ฐ ๋ฐํํ๋ ํ์
์ ๋ฌด์์
๋๊น?"
#: src/exercises/day-1/iterators-and-ownership.md:73
msgid ""
"```rust,editable,compile_fail\n"
"fn main() {\n"
" let v: Vec = vec![String::from(\"foo\"), String::from(\"bar\")];\n"
" let mut iter = v.into_iter();"
msgstr ""
#: src/exercises/day-1/iterators-and-ownership.md:83
msgid "## `for` Loops"
msgstr "## ๋ฐฐ์ด๊ณผ `for` ๋ฐ๋ณต๋ฌธ"
#: src/exercises/day-1/iterators-and-ownership.md:85
msgid ""
"Now that we know both `Iterator` and `IntoIterator`, we can build `for` loops.\n"
"They call `into_iter()` on an expression and iterates over the resulting\n"
"iterator:"
msgstr "์, ์ด์ ์ฐ๋ฆฌ๋ `Iterator`์ `IntoIterator`๋ฅผ ์์์ผ๋ฏ๋ก `for` ๋ฃจํ๋ฅผ ๋ง๋ค ์ ์์ต๋๋ค. `for` ๋ฃจํ๋ `into_iter()`๋ฅผ ํธ์ถํ์ฌ ๋ฐ๋ณต์๋ฅผ ๋ง๋ ๋ค์ ๊ทธ ๋ฐ๋ณต์๋ฅผ ์ด์ฉํ์ฌ ์์๋ค์ ๋ฐ๋ณตํด์ ์ ๊ทผํฉ๋๋ค:"
#: src/exercises/day-1/iterators-and-ownership.md:89
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let v: Vec = vec![String::from(\"foo\"), String::from(\"bar\")];"
msgstr ""
#: src/exercises/day-1/iterators-and-ownership.md:93
msgid ""
" for word in &v {\n"
" println!(\"word: {word}\");\n"
" }"
msgstr ""
#: src/exercises/day-1/iterators-and-ownership.md:97
msgid ""
" for word in v {\n"
" println!(\"word: {word}\");\n"
" }\n"
"}\n"
"```"
msgstr ""
#: src/exercises/day-1/iterators-and-ownership.md:103
msgid "What is the type of `word` in each loop?"
msgstr "๋งค ๋ฃจํ์์ `word`์ ํ์
์ ๋ฌด์์
๋๊น?"
#: src/exercises/day-1/iterators-and-ownership.md:105
msgid ""
"Experiment with the code above and then consult the documentation for [`impl\n"
"IntoIterator for\n"
"&Vec`](https://doc.rust-lang.org/std/vec/struct.Vec.html#impl-IntoIterator-for-%26%27a%20Vec%3CT%2C%20A%3E)\n"
"and [`impl IntoIterator for\n"
"Vec`](https://doc.rust-lang.org/std/vec/struct.Vec.html#impl-IntoIterator-for-Vec%3CT%2C%20A%3E)\n"
"to check your answers."
msgstr ""
"์ ์ฝ๋์์ ์คํ ํด ๋ณธ ํ ๋ค์ ๋ฌธ์๋ฅผ ์ฐธ์กฐํด์ ๋ต๋ณ์ ํ์ธํ์๊ธฐ ๋ฐ๋๋๋ค.\n"
"* [`impl IntoIterator for &Vec`](https://doc.rust-lang.org/std/vec/struct.Vec.html#impl-IntoIterator-for-%26%27a%20Vec%3CT%2C%20A%3E)\n"
"* [`impl IntoIterator for Vec`](https://doc.rust-lang.org/std/vec/struct.Vec.html#impl-IntoIterator-for-Vec%3CT%2C%20A%3E)"
#: src/welcome-day-2.md:1
msgid "# Welcome to Day 2"
msgstr "# 2์ผ์ฐจ ๊ฐ์"
#: src/welcome-day-2.md:3
msgid "Now that we have seen a fair amount of Rust, we will continue with:"
msgstr "์๋นํ ๋ถ๋์ ๋ฌ์คํธ์ ๋ํด ๋ณด์๊ณ , ์ด์ด์ ์ค๋ ๊ฐ์๋ฅผ ์งํํ๊ฒ ์ต๋๋ค:"
#: src/welcome-day-2.md:5
msgid "* Structs, enums, methods."
msgstr "* ๊ตฌ์กฐ์ฒด, ์ด๊ฑฐํ, ๋ฉ์๋."
#: src/welcome-day-2.md:7
msgid "* Pattern matching: destructuring enums, structs, and arrays."
msgstr "* ํจํด ๋งค์นญ: ์ด๊ฑฐํ, ๊ตฌ์กฐ์ฒด ๊ทธ๋ฆฌ๊ณ ๋ฐฐ์ด ๋ถํด."
#: src/welcome-day-2.md:9
msgid ""
"* Control flow constructs: `if`, `if let`, `while`, `while let`, `break`, and\n"
" `continue`."
msgstr "* ํ๋ฆ ์ ์ด: `if`, `if let`, `while`, `while let`, `break`, ๊ทธ๋ฆฌ๊ณ `continue`."
#: src/welcome-day-2.md:12
msgid ""
"* The Standard Library: `String`, `Option` and `Result`, `Vec`, `HashMap`, `Rc`\n"
" and `Arc`."
msgstr "* ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ: `String`, `Option` ๊ณผ `Result`, `Vec`, `HashMap`, `Rc` ๊ทธ๋ฆฌ๊ณ `Arc`."
#: src/welcome-day-2.md:15
msgid "* Modules: visibility, paths, and filesystem hierarchy."
msgstr "* ๋ชจ๋: ๊ฐ์์ฑ, ๊ฒฝ๋ก ๋ฐ ํ์ผ ์์คํ
๊ณ์ธต."
#: src/structs.md:1
msgid "# Structs"
msgstr "# ๊ตฌ์กฐ์ฒด"
#: src/structs.md:3
msgid "Like C and C++, Rust has support for custom structs:"
msgstr "C/C++ ์ ๋ง์ฐฌ๊ฐ์ง๋ก ๋ฌ์คํธ๋ ์ปค์คํ
๊ตฌ์กฐ์ฒด๋ฅผ ์ง์ํฉ๋๋ค:"
#: src/structs.md:5
msgid ""
"```rust,editable\n"
"struct Person {\n"
" name: String,\n"
" age: u8,\n"
"}"
msgstr ""
#: src/structs.md:11
msgid ""
"fn main() {\n"
" let mut peter = Person {\n"
" name: String::from(\"Peter\"),\n"
" age: 27,\n"
" };\n"
" println!(\"{} is {} years old\", peter.name, peter.age);\n"
" \n"
" peter.age = 28;\n"
" println!(\"{} is {} years old\", peter.name, peter.age);\n"
" \n"
" let jackie = Person {\n"
" name: String::from(\"Jackie\"),\n"
" ..peter\n"
" };\n"
" println!(\"{} is {} years old\", jackie.name, jackie.age);\n"
"}\n"
"```"
msgstr ""
#: src/structs.md:29
msgid ""
"
\n"
"Key Points: "
msgstr ""
"\n"
"ํค ํฌ์ธํธ: "
#: src/structs.md:32
msgid ""
"* Structs work like in C or C++.\n"
" * Like in C++, and unlike in C, no typedef is needed to define a type.\n"
" * Unlike in C++, there is no inheritance between structs.\n"
"* Methods are defined in an `impl` block, which we will see in following slides.\n"
"* This may be a good time to let people know there are different types of structs. \n"
" * Zero-sized structs `e.g., struct Foo;` might be used when implementing a trait on some type but donโt have any data that you want to store in the value itself. \n"
" * The next slide will introduce Tuple structs, used when the field names are not important.\n"
"* The syntax `..peter` allows us to copy the majority of the fields from the old struct without having to explicitly type it all out. It must always be the last element."
msgstr ""
"* ๊ตฌ์กฐ์ฒด๋ C/C++ ์ ์ ์ฌํฉ๋๋ค.\n"
" * C++ ์ ๊ฐ์ง๋ง C์๋ ๋ฌ๋ฆฌ ํ์
์ ์ ์ํ๊ธฐ ์ํด 'typedef'๊ฐ ํ์ํ์ง ์์ต๋๋ค.\n"
" * C++ ์ ๋ฌ๋ฆฌ ๊ตฌ์กฐ์ฒด ๊ฐ ์์์ ์์ต๋๋ค.\n"
"* ๋ฉ์๋๋ `impl`๋ธ๋ก์ ์ ์ ํฉ๋๋ค. ๋ค์ ์ฌ๋ผ์ด๋์์ ํ์ธ ํ ์ ์์ต๋๋ค.\n"
"* ์ฌ๋๋ค์๊ฒ ๋ค๋ฅธ ์ข
๋ฅ์ ๊ตฌ์กฐ์ฒด๊ฐ ์์์ ์๊ฒ ํ๊ธฐ์ ์ข์ ์๊ฐ์ผ ๊ฒ์
๋๋ค.\n"
" * 0 ํฌ๊ธฐ ๊ตฌ์กฐ์ฒด(์: `struct Foo;`)๋ ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ง๊ณ ์์ง ์์ง๋ง ํน์ ํ์
์ ํธ๋ ์์ ๊ตฌํํ ๋ ์ ์ฉํฉ๋๋ค.\n"
" * ๋ค์ ์ฌ๋ผ์ด๋์์๋ ํ๋ ์ด๋ฆ์ด ๋ ์ค์ํ ๋ ์ฌ์ฉํ ์ ์๋ ํํ ๊ตฌ์กฐ์ฒด๋ฅผ ์๊ฐํฉ๋๋ค.\n"
"* `..peter` ๋ฌธ๋ฒ์ ํ ๊ตฌ์กฐ์ฒด์์ ๋ค๋ฅธ ๊ตฌ์กฐ์ฒด๋ก ๋๋ถ๋ถ์ ๊ฐ์ ๋ณต์ฌํ๋ ค๊ณ ํ๋ ๊ฒฝ์ฐ์ ํ๋ํ๋ ํ์ดํํ๋ ์๊ณ ๋ฅผ ๋์ด์ค๋๋ค. ๋ฐ๋์ ๋งจ ๋ง์ง๋ง์ ์์ผ ํฉ๋๋ค."
#: src/structs/tuple-structs.md:1
msgid "# Tuple Structs"
msgstr "# ํํ"
#: src/structs/tuple-structs.md:3
msgid "If the field names are unimportant, you can use a tuple struct:"
msgstr "๊ฐ ํ๋ ์ด๋ฆ์ด ์ค์ํ์ง ์๋ค๋ฉด ํํ ๊ตฌ์กฐ์ฒด๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค:"
#: src/structs/tuple-structs.md:5
msgid ""
"```rust,editable\n"
"struct Point(i32, i32);"
msgstr ""
#: src/structs/tuple-structs.md:8
msgid ""
"fn main() {\n"
" let p = Point(17, 23);\n"
" println!(\"({}, {})\", p.0, p.1);\n"
"}\n"
"```"
msgstr ""
#: src/structs/tuple-structs.md:14
msgid "This is often used for single-field wrappers (called newtypes):"
msgstr "ํํ ๊ตฌ์กฐ์ฒด๋ ์ข
์ข
๋จ์ผ ํ๋์ ๋ํผ(wrapper, ๋ฌ์คํธ์์ ๋ดํ์
(newtype)์ด๋ผ๊ณ ๋ถ๋ฆ)๋ก ์ฌ์ฉ๋ฉ๋๋ค:"
#: src/structs/tuple-structs.md:16
msgid ""
"```rust,editable,compile_fail\n"
"struct PoundOfForce(f64);\n"
"struct Newtons(f64);"
msgstr ""
#: src/structs/tuple-structs.md:20
msgid ""
"fn compute_thruster_force() -> PoundOfForce {\n"
" todo!(\"Ask a rocket scientist at NASA\")\n"
"}"
msgstr ""
#: src/structs/tuple-structs.md:24
msgid ""
"fn set_thruster_force(force: Newtons) {\n"
" // ...\n"
"}"
msgstr ""
#: src/structs/tuple-structs.md:28
msgid ""
"fn main() {\n"
" let force = compute_thruster_force();\n"
" set_thruster_force(force);\n"
"}"
msgstr ""
#: src/structs/tuple-structs.md:33 src/traits/default.md:36
#: src/generics/trait-objects.md:86
msgid "```"
msgstr ""
#: src/structs/tuple-structs.md:37
msgid ""
"* Newtypes are a great way to encode additional information about the value in a primitive type, for example:\n"
" * The number is measured in some units: `Newtons` in the example above.\n"
" * The value passed some validation when it was created, so you no longer have to validate it again at every use: 'PhoneNumber(String)` or `OddNumber(u32)`.\n"
"* Demonstrate how to add a `f64` value to a `Newtons` type by accessing the single field in the newtype.\n"
" * Rust generally doesnโt like inexplicit things, like automatic unwrapping or for instance using booleans as integers.\n"
" * Operator overloading is discussed on Day 3 (generics). \n"
" "
msgstr ""
"* ๋ดํ์
์ ๋ค์๊ณผ ๊ฐ์ ์์ํ์
๊ฐ์ ํน๋ณํ ์๋ฏธ๋ฅผ ๋ถ์ฌํ๋ ๋ฐ ์ ์ฉํฉ๋๋ค.\n"
" * ๋จ์ ํ์๋ฅผ ์ํ ์ซ์: ์ ์์ ์์๋ ๋ดํด ๋จ์ ํ๊ธฐ๋ฅผ ์ํด ์ฌ์ฉํฉ๋๋ค.\n"
" * ๊ฐ์ด ์์ฑ๋ ๋ ์ด๋ฏธ ์ ํจ์ฑ ๊ฒ์ฌ๋ฅผ ํต๊ณผ ํ์ผ๋ฏ๋ก ์ถ๊ฐ์ ์ธ ๊ฒ์ฌ๊ฐ ํ์์๋ ๊ฒฝ์ฐ: `PhoneNumber(String)`๋๋ `OddNumber(u32)`\n"
"* `Newtons` ํ์
์ ๊ฐ์ `f64` ๊ฐ์ ๋ํ๋ ๋ฐฉ๋ฒ์ ๋ณด์ฌ์ฃผ์ธ์.\n"
" * ๋ฌ์คํธ๋ ๋์ฒด๋ก ๋ถ๋ช
ํ์ง ์์ ๊ฒ์ ์ซ์ดํฉ๋๋ค. ์๋ฅผ ๋ค๋ฉด ์๋์ผ๋ก unwrapํ๊ฑฐ๋ ๋ถ๋ฆฌ์ธ ๊ฐ์ ์ ์ ๊ฐ์ผ๋ก ์ฌ์ฉํ๋ ๊ฒ๋ค์ด ๊ทธ๋ ์ต๋๋ค.\n"
" * ์ฐ์ฐ์ ์ฌ์ ์๋ 3์ผ์ฐจ ์ ๋ค๋ฆญ ๋ถ๋ถ์์ ๋ค๋ฃน๋๋ค.\n"
" "
#: src/structs/field-shorthand.md:1
msgid "# Field Shorthand Syntax"
msgstr "# ํ๋ ํ ๋น ๋จ์ถ ๋ฌธ๋ฒ(Field Shorthand Syntax)"
#: src/structs/field-shorthand.md:3
msgid ""
"If you already have variables with the right names, then you can create the\n"
"struct using a shorthand:"
msgstr "๊ตฌ์กฐ์ฒด ํ๋์ ๋์ผํ ์ด๋ฆ์ ๋ณ์๊ฐ ์๋ค๋ฉด ์๋์ ๊ฐ์ด \"์งง์ ๋ฌธ๋ฒ\"์ผ๋ก ๊ตฌ์กฐ์ฒด๋ฅผ ์์ฑํ ์ ์์ต๋๋ค:"
#: src/structs/field-shorthand.md:6 src/methods.md:6
msgid ""
"```rust,editable\n"
"#[derive(Debug)]\n"
"struct Person {\n"
" name: String,\n"
" age: u8,\n"
"}"
msgstr ""
#: src/structs/field-shorthand.md:13
msgid ""
"impl Person {\n"
" fn new(name: String, age: u8) -> Person {\n"
" Person { name, age }\n"
" }\n"
"}"
msgstr ""
#: src/structs/field-shorthand.md:19
msgid ""
"fn main() {\n"
" let peter = Person::new(String::from(\"Peter\"), 27);\n"
" println!(\"{peter:?}\");\n"
"}\n"
"```"
msgstr ""
#: src/structs/field-shorthand.md:27
msgid "* The `new` function could be written using `Self` as a type, as it is interchangeable with the struct type name"
msgstr "* `new`ํจ์๋ฅผ ๋ค์์ฒ๋ผ ๊ตฌ์กฐ์ฒด ์ด๋ฆ ๋์ `Self`๋ฅผ ์ฌ์ฉํ์ฌ ์์ฑํด๋ ๋ฉ๋๋ค."
#: src/structs/field-shorthand.md:29
msgid ""
"```rust,ignore\n"
"impl Person {\n"
" fn new(name: String, age: u8) -> Self {\n"
" Self { name, age }\n"
" }\n"
"}\n"
"```"
msgstr ""
#: src/structs/field-shorthand.md:37
msgid ""
"* Methods are defined in the `impl` block.\n"
"* Use struct update syntax to define a new structure using `peter`. Note that the variable `peter` will no longer be accessible afterwards.\n"
"* Use `{:#?}` when printing structs to request the `Debug` representation."
msgstr ""
"* ๋ฉ์๋๋ `impl` ๋ธ๋ก์ ์ ์๋ฉ๋๋ค.\n"
"* `peter`์ ๊ตฌ์กฐ์ฒด ์
๋ฐ์ดํธ ๋ฌธ๋ฒ์ ์ฌ์ฉํ์ฌ ์๋ก์ด ๊ตฌ์กฐ์ฒด ์ธ์คํด์ค๋ฅผ ๋ง๋ค์ด๋ณด์ธ์. ์ด๋, `peter`๋ ๋์ด์ ์ฌ์ฉํ ์ ์๊ฒ ๋ฉ๋๋ค.\n"
"* ๊ตฌ์กฐ์ฒด๋ฅผ `Debug` ํํ๋ก ์ถ๋ ฅํ๋ ค๋ฉด `{:#?}`๋ฅผ ์ฌ์ฉํ์ธ์."
#: src/enums.md:1
msgid "# Enums"
msgstr "# ์ด๊ฑฐํ"
#: src/enums.md:3
msgid ""
"The `enum` keyword allows the creation of a type which has a few\n"
"different variants:"
msgstr "`enum` ํค์๋๋ ๋ช๊ฐ์ง ์ ํ(variant)์ผ๋ก ํํ๋๋ ํ์
์ ์์ฑํฉ๋๋ค:"
#: src/enums.md:6
msgid ""
"```rust,editable\n"
"fn generate_random_number() -> i32 {\n"
" 4 // Chosen by fair dice roll. Guaranteed to be random.\n"
"}"
msgstr ""
#: src/enums.md:11
msgid ""
"#[derive(Debug)]\n"
"enum CoinFlip {\n"
" Heads,\n"
" Tails,\n"
"}"
msgstr ""
#: src/enums.md:17
msgid ""
"fn flip_coin() -> CoinFlip {\n"
" let random_number = generate_random_number();\n"
" if random_number % 2 == 0 {\n"
" return CoinFlip::Heads;\n"
" } else {\n"
" return CoinFlip::Tails;\n"
" }\n"
"}"
msgstr ""
#: src/enums.md:26
msgid ""
"fn main() {\n"
" println!(\"You got: {:?}\", flip_coin());\n"
"}\n"
"```"
msgstr ""
#: src/enums.md:31 src/enums/sizes.md:27
msgid ""
"Key Points:"
msgstr ""
"ํค ํฌ์ธํธ:"
#: src/enums.md:35
msgid ""
"* Enumerations allow you to collect a set of values under one type\n"
"* This page offers an enum type `CoinFlip` with two variants `Heads` and `Tail`. You might note the namespace when using variants.\n"
"* This might be a good time to compare Structs and Enums:\n"
" * In both, you can have a simple version without fields (unit struct) or one with different types of fields (variant payloads). \n"
" * In both, associated functions are defined within an `impl` block.\n"
" * You could even implement the different variants of an enum with separate structs but then they wouldnโt be the same type as they would if they were all defined in an enum. \n"
""
msgstr ""
"* ์ด๊ฑฐํ์ ๊ฐ๋ค์ ์งํฉ์ ํ๋์ ํ์
์ผ๋ก ํํํ ์ ์๊ฒ ํฉ๋๋ค.\n"
"* ์์ `CoinFlip` ์ด๊ฑฐํ ํ์
์ `Heads`์ `Tail` ๋๊ฐ์ง variant๋ฅผ ๊ฐ์ง๋๋ค. ์ด๊ฑฐํ ํ์
์ variant๋ ๋ค์์คํ์ด์ค๋ฅผ ๋ถ์ฌ์ ์ฌ์ฉํฉ๋๋ค.\n"
"* ๊ตฌ์กฐ์ฒด์ ์ด๊ฑฐํ์ ๋น๊ตํด ๋ณผ๊น์?\n"
" * ๊ตฌ์กฐ์ฒด๋ ์ด๊ฑฐํ ๋ชจ๋, ํ๋๊ฐ ํ๋๋ ์๋ ๋จ์ํ ํํ๋ ๊ฐ๋ฅ ํ๊ณ , ์ฌ๋ฌ ํ์
์ ํ๋๋ฅผ ๊ฐ์ง ์๋ ์์ต๋๋ค.\n"
" * ๋ ๋ค ์ฐ๊ดํจ์๋ฅผ `impl`๋ธ๋ก์ผ๋ก ์ ์ ํ ์ ์์ต๋๋ค.\n"
" * ์ด๊ฑฐํ ํ์
์ ๊ฐ variant๋ฅผ ๋ณ๋์ ๊ตฌ์กฐ์ฒด๋ก ์ ์ํ ์๋ ์์ง๋ง, ๊ทธ๋ฌ๋ฉด ์ด๊ฑฐํ์ ์ฌ์ฉํ์ ๋์ฒ๋ผ ํ๋์ ํ์
์ผ๋ก ์ทจ๊ธํ ์ ์์ต๋๋ค.\n"
""
#: src/enums/variant-payloads.md:1
msgid "# Variant Payloads"
msgstr "# ๋ฐ์ดํฐ๋ฅผ ํฌํจํ๋ ์ด๊ฑฐํ(Variant Payloads)"
#: src/enums/variant-payloads.md:3
msgid ""
"You can define richer enums where the variants carry data. You can then use the\n"
"`match` statement to extract the data from each variant:"
msgstr "์ข๋ ๋ณต์กํ ์ด๊ฑฐํ์ ๊ฒฝ์ฐ variant์ ๋ฐ์ดํฐ(payload)๋ฅผ ํฌํจ์ํค๋ ํฉ๋๋ค. ๊ฐ variant์ ๋ด๊ธด ๋ฐ์ดํฐ๋ `match`๋ฌธ์ ์ด์ฉํด ์ถ์ถํฉ๋๋ค:"
#: src/enums/variant-payloads.md:6
msgid ""
"```rust,editable\n"
"enum WebEvent {\n"
" PageLoad, // Variant without payload\n"
" KeyPress(char), // Tuple struct variant\n"
" Click { x: i64, y: i64 }, // Full struct variant\n"
"}"
msgstr ""
#: src/enums/variant-payloads.md:13
msgid ""
"#[rustfmt::skip]\n"
"fn inspect(event: WebEvent) {\n"
" match event {\n"
" WebEvent::PageLoad => println!(\"page loaded\"),\n"
" WebEvent::KeyPress(c) => println!(\"pressed '{c}'\"),\n"
" WebEvent::Click { x, y } => println!(\"clicked at x={x}, y={y}\"),\n"
" }\n"
"}"
msgstr ""
#: src/enums/variant-payloads.md:22
msgid ""
"fn main() {\n"
" let load = WebEvent::PageLoad;\n"
" let press = WebEvent::KeyPress('x');\n"
" let click = WebEvent::Click { x: 20, y: 80 };"
msgstr ""
#: src/enums/variant-payloads.md:27
msgid ""
" inspect(load);\n"
" inspect(press);\n"
" inspect(click);\n"
"}\n"
"```"
msgstr ""
#: src/enums/variant-payloads.md:35
msgid ""
"* The values in the enum variants can only be accessed after being pattern matched. The pattern binds references to the fields in the \"match arm\" after the `=>`.\n"
" * The expression is matched against the patterns from top to bottom. There is no fall-through like in C or C++.\n"
" * The match expression has a value. The value is the last expression in the match arm which was executed.\n"
" * Starting from the top we look for what pattern matches the value then run the code following the arrow. Once we find a match, we stop. \n"
"* Demonstrate what happens when the search is inexhaustive. Note the advantage the Rust compiler provides by confirming when all cases are handled. \n"
"* `match` inspects a hidden discriminant field in the `enum`.\n"
"* It is possible to retrieve the discriminant by calling `std::mem::discriminant()`\n"
" * This is useful, for example, if implementing `PartialEq` for structs where comparing field values doesn't affect equality.\n"
"* `WebEvent::Click { ... }` is not exactly the same as `WebEvent::Click(Click)` with a top level `struct Click { ... }`. The inlined version cannot implement traits, for example. \n"
" \n"
""
msgstr ""
"* ์ด๊ฑฐํ ์์ ๊ฐ์ ํจํด ๋งค์นญ์ด ๋๊ณ ๋ ์ดํ์๋ง ์ ๊ทผ ๊ฐ๋ฅํฉ๋๋ค. ๊ทธ ๊ฐ์ ๋ํ ๋ ํผ๋ฐ์ค๋ `=>` ์ดํ์ ์ฌ์ฉ๊ฐ๋ฅํฉ๋๋ค.\n"
" * ๋งค์น ํจํด๋ค์ ์์์ ์๋๋ก ์์์ ๋ฐ๋ผ ๊ฒ์ฌํฉ๋๋ค. C๋ C++์์์ ๊ฐ์ fall-through๋ ์์ต๋๋ค.\n"
" * ๋งค์น ํํ์ ์์ฒด๋ ๊ฐ์ ๊ฐ์ง๋๋ค. ๊ทธ ๊ฐ์ ๋งค์นญ์ด ๋ ํจํด์์ ๊ฐ์ฅ ๋ง์ง๋ง์ ์ํ๋ ํํ์์ด ๋ฉ๋๋ค.\n"
" * ๊ฐ์ฅ ์์์ ๋ถํฐ ์ด๋ค ํจํด์ด ์ฃผ์ด์ง ๊ฐ๊ณผ ๋งค์นญํ๋์ง ๊ฒ์ฌํ ๋ค์, ๋งค์นญ๋ ๊ฒ์ด ๋ฐ๊ฒฌ๋๋ฉด ํ์ดํ๋ฅผ ๋ฐ๋ผ ์ฝ๋๋ฅผ ์ํํฉ๋๋ค. ํ ๋ฒ ๋งค์นญ์ด ๋๊ณ ์ฝ๋๊ฐ ์ํ์ด ๋๋ฉด, ๋์ด์์ ๋งค์นญ์ ์์ต๋๋ค.\n"
"* ๋งค์นญ ํจํด๋ค์ด ๋ถ์ถฉ๋ถ ํ๋ค๋ฉด ์ด๋ค ์ผ์ด ์ผ์ด๋๋์ง ์ค๋ช
ํ์ธ์. ๋ฌ์คํธ ์ปดํ์ผ๋ฌ๋ ๋ชจ๋ ๊ฐ๋ฅํ ์ผ์ด์ค๋ค์ด ํธ๋ค๋ง ๋๋์ง ์ฒดํฌํ๋ค๋ ์ ์ ์๊ธฐ์ํค์ธ์.\n"
"* `match`๋ ์ฃผ์ด์ง ์ด๊ฑฐํ ๊ฐ์ด ์ค์ ๋ก ์ด๋ค variant์ธ์ง ํ๋จํ๊ธฐ ์ํด, ๊ทธ variant์ ์ข
๋ฅ๊ฐ ๊ธฐ๋ก๋, ์จ๊ฒจ์ง ํ๋(์๋ณ์)์ ๊ฐ์ ๊ฒ์ฌํฉ๋๋ค.\n"
"* `std::mem::discriminant()`๋ฅผ ์ด์ฉํ์ฌ ์๋ณ์๋ฅผ ์ป์ ์๋ ์์ต๋๋ค.\n"
" * ์ด๋ ๊ฐ ํ๋ ๊ฐ์ ๊ตณ์ด ๋น๊ตํ ํ์ ์๋ ๊ตฌ์กฐ์ฒด์ ๋ํด `PartialEq` ํธ๋ ์์ ๊ตฌํํ ๋ ์ ์ฉํฉ๋๋ค.\n"
"* `WebEvent::Click { ... }`์ ์ต์์ ๋ ๋ฒจ ๊ตฌ์กฐ์ฒด `struct Click {...}`๋ฅผ ๋ฐ๋ก ์ ์ํ๊ณ `WebEvent::Click(Click)`์ฒ๋ผ ํํ ํํ๋ก ์ ์ํ ๊ฒ๊ณผ ์ ํํ ๊ฐ์ง ์์ต๋๋ค. ์๋ฅผ ๋ค์ด `WebEvent::Click { ... }` ๋ก ์ ์ํ ๊ฒฝ์ฐ, ๊ตฌ์กฐ์ฒด ํํ์ ์ ์ฌํ์ง๋ง ํธ๋ ์์ ๊ตฌํ ํ ์ ์์ต๋๋ค.\n"
" \n"
""
#: src/enums/sizes.md:1
msgid "# Enum Sizes"
msgstr "# ์ด๊ฑฐํ ํ์
์ ํฌ๊ธฐ"
#: src/enums/sizes.md:3
msgid "Rust enums are packed tightly, taking constraints due to alignment into account:"
msgstr "๋ฌ์คํธ์ ์ด๊ฑฐํ์ ์ ๋ ฌ(alignment)๋ก ์ธํ ์ ์ฝ์ ๊ณ ๋ คํ์ฌ ํฌ๊ธฐ๋ฅผ ๋นฝ๋นฝํ๊ฒ ์ก์ต๋๋ค:"
#: src/enums/sizes.md:5
msgid ""
"```rust,editable\n"
"use std::mem::{align_of, size_of};"
msgstr ""
"```rust,editable\n"
"use std::mem::{align_of, size_of};"
#: src/enums/sizes.md:8
msgid ""
"macro_rules! dbg_size {\n"
" ($t:ty) => {\n"
" println!(\"{}: size {} bytes, align: {} bytes\",\n"
" stringify!($t), size_of::<$t>(), align_of::<$t>());\n"
" };\n"
"}"
msgstr ""
"macro_rules! dbg_size {\n"
" ($t:ty) => {\n"
" println!(\"{}: size {} bytes, align: {} bytes\",\n"
" stringify!($t), size_of::<$t>(), align_of::<$t>());\n"
" };\n"
"}"
#: src/enums/sizes.md:15
msgid ""
"enum Foo {\n"
" A,\n"
" B,\n"
"}"
msgstr ""
"enum Foo {\n"
" A,\n"
" B,\n"
"}"
#: src/enums/sizes.md:20
msgid ""
"fn main() {\n"
" dbg_size!(Foo);\n"
"}\n"
"```"
msgstr ""
"fn main() {\n"
" dbg_size!(Foo);\n"
"}\n"
"```"
#: src/enums/sizes.md:25
msgid "* See the [Rust Reference](https://doc.rust-lang.org/reference/type-layout.html)."
msgstr "* ์์ธํ ์ฌํญ์ [๊ณต์๋ฌธ์](https://doc.rust-lang.org/reference/type-layout.html)๋ฅผ ํ์ธํ์ธ์."
#: src/enums/sizes.md:39
msgid ""
"Key Points: \n"
msgstr ""
"ํค ํฌ์ธํธ: \n"
msgid ""
" * Internally Rust is using a field (discriminant) to keep track of the enum variant.\n"
" * `Bar` enum demonstrates that there is a way to control the discriminant value and type. If `repr` is removed, the discriminant type takes 2 bytes, becuase 10001 fits 2 bytes.\n"
" * As a niche optimization an enum discriminant is merged with the pointer so that `Option<&Foo>` is the same size as `&Foo`.\n"
" * `Option` is another example of tight packing.\n"
" * For [some types](https://doc.rust-lang.org/std/option/#representation), Rust guarantees that `size_of::()` equals `size_of::