msgid ""
msgstr ""
"Project-Id-Version: [ํ๊ตญ์ด]Comprehensive Rust ๐ฆ\n"
"POT-Creation-Date: 2023-09-24\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.3.2\n"
#: src/SUMMARY.md:4 src/index.md:1
msgid "Welcome to Comprehensive Rust ๐ฆ"
msgstr "Comprehensive Rust์ ์ค์ ๊ฒ์ ํ์ํฉ๋๋ค ๐ฆ"
#: src/SUMMARY.md:5 src/running-the-course.md:1
msgid "Running the Course"
msgstr "๊ฐ์ ์งํ"
#: src/SUMMARY.md:6 src/running-the-course/course-structure.md:1
msgid "Course Structure"
msgstr "๊ฐ์ ๊ตฌ์ฑ"
#: src/SUMMARY.md:7 src/running-the-course/keyboard-shortcuts.md:1
msgid "Keyboard Shortcuts"
msgstr "๋จ์ถํค"
#: src/SUMMARY.md:8 src/running-the-course/translations.md:1
msgid "Translations"
msgstr "๋ค๋ฅธ ์ธ์ด๋ค"
#: src/SUMMARY.md:9 src/cargo.md:1
msgid "Using Cargo"
msgstr "์นด๊ณ ์ฌ์ฉํ๊ธฐ"
#: src/SUMMARY.md:10
msgid "Rust Ecosystem"
msgstr "๋ฌ์คํธ ์ํ๊ณ"
#: src/SUMMARY.md:11
msgid "Code Samples"
msgstr "์ฝ๋ ์ํ"
#: src/SUMMARY.md:12
msgid "Running Cargo Locally"
msgstr "์นด๊ณ (Cargo) ์ํํ๊ธฐ"
#: src/SUMMARY.md:15
msgid "Day 1: Morning"
msgstr "1์ผ์ฐจ ์ค์ "
#: src/SUMMARY.md:19 src/SUMMARY.md:76 src/SUMMARY.md:130 src/SUMMARY.md:187
#: src/SUMMARY.md:213 src/SUMMARY.md:263
msgid "Welcome"
msgstr "๊ฐ์"
#: src/SUMMARY.md:20 src/welcome-day-1/what-is-rust.md:1
msgid "What is Rust?"
msgstr "๋ฌ์คํธ๋?"
#: src/SUMMARY.md:21 src/hello-world.md:1
msgid "Hello World!"
msgstr "Hello World!"
#: src/SUMMARY.md:22 src/hello-world/small-example.md:1
msgid "Small Example"
msgstr "์์ ์์ "
#: src/SUMMARY.md:23 src/why-rust.md:1
msgid "Why Rust?"
msgstr "๋ฌ์คํธ๋ฅผ ์จ์ผํ๋ ์ด์ "
#: src/SUMMARY.md:24 src/why-rust/compile-time.md:1
msgid "Compile Time Guarantees"
msgstr "์ปดํ์ผ ์ ๋ณด์ฅ๋๋ ๊ฒ๋ค"
#: src/SUMMARY.md:25 src/why-rust/runtime.md:1
msgid "Runtime Guarantees"
msgstr "๋ฐํ์ ์ ๋ณด์ฅ๋๋ ๊ฒ๋ค"
#: src/SUMMARY.md:26 src/why-rust/modern.md:1
msgid "Modern Features"
msgstr "ํ๋์ ์ธ ํน์ง"
#: src/SUMMARY.md:27 src/basic-syntax.md:1
msgid "Basic Syntax"
msgstr "๊ธฐ๋ณธ ๋ฌธ๋ฒ"
#: src/SUMMARY.md:28 src/basic-syntax/scalar-types.md:1
msgid "Scalar Types"
msgstr "์ค์นผ๋ผ ํ์
"
#: src/SUMMARY.md:29 src/basic-syntax/compound-types.md:1
msgid "Compound Types"
msgstr "๋ณตํฉ ํ์
"
#: src/SUMMARY.md:30 src/basic-syntax/references.md:1
msgid "References"
msgstr "์ฐธ์กฐ"
#: src/SUMMARY.md:31 src/basic-syntax/references-dangling.md:1
msgid "Dangling References"
msgstr "ํ์(dangling) ์ฐธ์กฐ"
#: src/SUMMARY.md:32 src/basic-syntax/slices.md:1
msgid "Slices"
msgstr "์ฌ๋ผ์ด์ค"
#: src/SUMMARY.md:33
msgid "String vs str"
msgstr "String๊ณผ str"
#: src/SUMMARY.md:34 src/basic-syntax/functions.md:1
msgid "Functions"
msgstr "ํจ์"
#: src/SUMMARY.md:35 src/basic-syntax/rustdoc.md:1
msgid "Rustdoc"
msgstr "Rustdoc"
#: src/SUMMARY.md:36 src/SUMMARY.md:83 src/basic-syntax/methods.md:1
#: src/methods.md:1
msgid "Methods"
msgstr "๋ฉ์๋"
#: src/SUMMARY.md:37
msgid "Overloading"
msgstr "์ค๋ฒ๋ก๋ฉ"
#: src/SUMMARY.md:38 src/SUMMARY.md:67 src/SUMMARY.md:91 src/SUMMARY.md:121
#: src/SUMMARY.md:150 src/SUMMARY.md:179 src/SUMMARY.md:206 src/SUMMARY.md:227
#: src/SUMMARY.md:255 src/SUMMARY.md:277 src/SUMMARY.md:298
#: src/exercises/android/morning.md:1 src/exercises/bare-metal/morning.md:1
#: src/exercises/bare-metal/afternoon.md:1
#: src/exercises/concurrency/morning.md:1
#: src/exercises/concurrency/afternoon.md:1
msgid "Exercises"
msgstr "์ฐ์ต๋ฌธ์ "
#: src/SUMMARY.md:39 src/exercises/day-1/implicit-conversions.md:1
msgid "Implicit Conversions"
msgstr "๋ฌต์์ ํ๋ณํ"
#: src/SUMMARY.md:40
msgid "Arrays and for Loops"
msgstr "๋ฐฐ์ด๊ณผ for ๋ฐ๋ณต๋ฌธ"
#: src/SUMMARY.md:42
msgid "Day 1: Afternoon"
msgstr "1์ผ์ฐจ ์คํ"
#: src/SUMMARY.md:44 src/basic-syntax/variables.md:1
msgid "Variables"
msgstr "๋ณ์"
#: src/SUMMARY.md:45 src/basic-syntax/type-inference.md:1
msgid "Type Inference"
msgstr "ํ์
์ถ๋ก "
#: src/SUMMARY.md:46
msgid "static & const"
msgstr "์ ์ ๋ณ์(static)์ ์์(const)"
#: src/SUMMARY.md:47 src/basic-syntax/scopes-shadowing.md:1
msgid "Scopes and Shadowing"
msgstr "๋ฒ์(Scopes)์ ์๋์(Shadowing)"
#: src/SUMMARY.md:48 src/memory-management.md:1
msgid "Memory Management"
msgstr "๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ"
#: src/SUMMARY.md:49
msgid "Stack vs Heap"
msgstr "์คํ(Stack)๊ณผ ํ(Heap)"
#: src/SUMMARY.md:50
msgid "Stack Memory"
msgstr "์คํ ๋ฉ๋ชจ๋ฆฌ"
#: src/SUMMARY.md:51 src/memory-management/manual.md:1
msgid "Manual Memory Management"
msgstr "์๋ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ"
#: src/SUMMARY.md:52 src/memory-management/scope-based.md:1
msgid "Scope-Based Memory Management"
msgstr "๋ฒ์๊ธฐ๋ฐ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ"
#: src/SUMMARY.md:53
msgid "Garbage Collection"
msgstr "๊ฐ๋น์ง ์ปฌ๋ ์
"
#: src/SUMMARY.md:54
msgid "Rust Memory Management"
msgstr "๋ฌ์คํธ์ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ"
#: src/SUMMARY.md:55 src/memory-management/comparison.md:1
msgid "Comparison"
msgstr "๋น๊ต"
#: src/SUMMARY.md:56 src/ownership.md:1
msgid "Ownership"
msgstr "์์ ๊ถ"
#: src/SUMMARY.md:57 src/ownership/move-semantics.md:1
msgid "Move Semantics"
msgstr "Move ๋ฌธ๋ฒ"
#: src/SUMMARY.md:58 src/ownership/moved-strings-rust.md:1
msgid "Moved Strings in Rust"
msgstr "๋ฌ์คํธ์์์ ๋ฌธ์์ด ์ด๋"
#: src/SUMMARY.md:59
msgid "Double Frees in Modern C++"
msgstr "Modern C++์์ ์ด์คํด์ ๋ฌธ์ "
#: src/SUMMARY.md:60 src/ownership/moves-function-calls.md:1
msgid "Moves in Function Calls"
msgstr "ํจ์ ํธ์ถ์์์ ์ด๋(Move)"
#: src/SUMMARY.md:61 src/ownership/copy-clone.md:1
msgid "Copying and Cloning"
msgstr "๋ณต์ฌ์ ๋ณต์ "
#: src/SUMMARY.md:62 src/ownership/borrowing.md:1
msgid "Borrowing"
msgstr "๋น๋ฆผ"
#: src/SUMMARY.md:63 src/ownership/shared-unique-borrows.md:1
msgid "Shared and Unique Borrows"
msgstr "๊ณต์ ์ ๊ณ ์ ๋น๋ฆผ"
#: src/SUMMARY.md:64 src/ownership/lifetimes.md:1
msgid "Lifetimes"
msgstr "์๋ช
"
#: src/SUMMARY.md:65 src/ownership/lifetimes-function-calls.md:1
msgid "Lifetimes in Function Calls"
msgstr "ํจ์ ํธ์ถ์์์ ์๋ช
"
#: src/SUMMARY.md:66 src/ownership/lifetimes-data-structures.md:1
msgid "Lifetimes in Data Structures"
msgstr "๊ตฌ์กฐ์ฒด์์์ ์๋ช
"
#: src/SUMMARY.md:68 src/exercises/day-1/book-library.md:1
msgid "Storing Books"
msgstr "์ฑ
์ ์ฅํ๊ธฐ"
#: src/SUMMARY.md:69 src/exercises/day-1/iterators-and-ownership.md:1
msgid "Iterators and Ownership"
msgstr "๋ฐ๋ณต์์ ์์ ๊ถ"
#: src/SUMMARY.md:72
msgid "Day 2: Morning"
msgstr "2์ผ์ฐจ ์ค์ "
#: src/SUMMARY.md:77 src/structs.md:1
msgid "Structs"
msgstr "๊ตฌ์กฐ์ฒด"
#: src/SUMMARY.md:78 src/structs/tuple-structs.md:1
msgid "Tuple Structs"
msgstr "ํํ"
#: src/SUMMARY.md:79 src/structs/field-shorthand.md:1
msgid "Field Shorthand Syntax"
msgstr "ํ๋ ํ ๋น ๋จ์ถ ๋ฌธ๋ฒ"
#: src/SUMMARY.md:80 src/enums.md:1
msgid "Enums"
msgstr "์ด๊ฑฐํ"
#: src/SUMMARY.md:81 src/enums/variant-payloads.md:1
msgid "Variant Payloads"
msgstr "๋ฐ์ดํฐ๋ฅผ ํฌํจํ๋ ์ด๊ฑฐํ(Variant Payloads)"
#: src/SUMMARY.md:82 src/enums/sizes.md:1
msgid "Enum Sizes"
msgstr "์ด๊ฑฐํ์ ํฌ๊ธฐ"
#: src/SUMMARY.md:84 src/methods/receiver.md:1
msgid "Method Receiver"
msgstr "๋ฉ์๋ ๋ฆฌ์๋ฒ(Receiver)"
#: src/SUMMARY.md:85 src/SUMMARY.md:161 src/SUMMARY.md:276
#: src/methods/example.md:1 src/concurrency/shared_state/example.md:1
msgid "Example"
msgstr "์์ "
#: src/SUMMARY.md:86 src/pattern-matching.md:1
msgid "Pattern Matching"
msgstr "ํจํด ๋งค์นญ"
#: src/SUMMARY.md:87 src/pattern-matching/destructuring-enums.md:1
msgid "Destructuring Enums"
msgstr "์ด๊ฑฐํ ๋ถํด(์ญ๊ตฌ์กฐํ)"
#: src/SUMMARY.md:88 src/pattern-matching/destructuring-structs.md:1
msgid "Destructuring Structs"
msgstr "๊ตฌ์กฐ์ฒด ๋ถํด(์ญ๊ตฌ์กฐํ)"
#: src/SUMMARY.md:89 src/pattern-matching/destructuring-arrays.md:1
msgid "Destructuring Arrays"
msgstr "๋ฐฐ์ด ๋ถํด(์ญ๊ตฌ์กฐํ)"
#: src/SUMMARY.md:90 src/pattern-matching/match-guards.md:1
msgid "Match Guards"
msgstr "๋งค์น ๊ฐ๋"
#: src/SUMMARY.md:92 src/exercises/day-2/health-statistics.md:1
msgid "Health Statistics"
msgstr "๊ฑด๊ฐ์ํ ๋ชจ๋ํฐ๋ง ์์คํ
"
#: src/SUMMARY.md:93 src/exercises/day-2/solutions-morning.md:3
msgid "Points and Polygons"
msgstr "์ ๊ณผ ๋ค๊ฐํ"
#: src/SUMMARY.md:95
msgid "Day 2: Afternoon"
msgstr "2์ผ์ฐจ ์คํ"
#: src/SUMMARY.md:97 src/SUMMARY.md:290 src/control-flow.md:1
msgid "Control Flow"
msgstr "ํ๋ฆ ์ ์ด"
#: src/SUMMARY.md:98 src/control-flow/blocks.md:1
msgid "Blocks"
msgstr "๋ธ๋ก"
#: src/SUMMARY.md:99
msgid "if expressions"
msgstr "if ํํ์"
#: src/SUMMARY.md:100
msgid "if let expressions"
msgstr "if let ํํ์"
#: src/SUMMARY.md:101
msgid "while expressions"
msgstr "while ํํ์"
#: src/SUMMARY.md:102
msgid "while let expressions"
msgstr "while let ํํ์"
#: src/SUMMARY.md:103
msgid "for expressions"
msgstr "for ํํ์"
#: src/SUMMARY.md:104
msgid "loop expressions"
msgstr "loop ํํ์"
#: src/SUMMARY.md:105
msgid "match expressions"
msgstr "match ํํ์"
#: src/SUMMARY.md:106
msgid "break & continue"
msgstr "break์ continue"
#: src/SUMMARY.md:107 src/std.md:1
msgid "Standard Library"
msgstr "ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ"
#: src/SUMMARY.md:108
msgid "Option and Result"
msgstr "Option๊ณผ Result"
#: src/SUMMARY.md:109 src/std/string.md:1
msgid "String"
msgstr "String"
#: src/SUMMARY.md:110
msgid "Vec"
msgstr "Vec"
#: src/SUMMARY.md:111
msgid "HashMap"
msgstr "HashMap"
#: src/SUMMARY.md:112
msgid "Box"
msgstr "Box"
#: src/SUMMARY.md:113
msgid "Recursive Data Types"
msgstr "์ฌ๊ท์ ์๋ฃ๊ตฌ์กฐ"
#: src/SUMMARY.md:114 src/std/box-niche.md:1
msgid "Niche Optimization"
msgstr "๋์น(ํ์) ์ต์ ํ(Niche Optimization)"
#: src/SUMMARY.md:115
msgid "Rc"
msgstr "Rc"
#: src/SUMMARY.md:116
msgid "Cell/RefCell"
msgstr "Cell๊ณผ RefCell"
#: src/SUMMARY.md:117 src/modules.md:1
msgid "Modules"
msgstr "๋ชจ๋"
#: src/SUMMARY.md:118 src/modules/visibility.md:1
msgid "Visibility"
msgstr "๊ฐ์์ฑ"
#: src/SUMMARY.md:119 src/modules/paths.md:1
msgid "Paths"
msgstr "๊ฒฝ๋ก"
#: src/SUMMARY.md:120 src/modules/filesystem.md:1
msgid "Filesystem Hierarchy"
msgstr "ํ์ผ์์คํ
๊ณ์ธต"
#: src/SUMMARY.md:122 src/exercises/day-2/luhn.md:1
#: src/exercises/day-2/solutions-afternoon.md:3
msgid "Luhn Algorithm"
msgstr "๋ฃฌ ์๊ณ ๋ฆฌ์ฆ"
#: src/SUMMARY.md:123 src/exercises/day-2/strings-iterators.md:1
#: src/exercises/day-2/solutions-afternoon.md:97
msgid "Strings and Iterators"
msgstr "๋ฌธ์์ด๊ณผ ๋ฐ๋ณต์"
#: src/SUMMARY.md:126
msgid "Day 3: Morning"
msgstr "3์ผ์ฐจ ์ค์ "
#: src/SUMMARY.md:131 src/generics.md:1
msgid "Generics"
msgstr "์ ๋ค๋ฆญ"
#: src/SUMMARY.md:132 src/generics/data-types.md:1
msgid "Generic Data Types"
msgstr "์ ๋ค๋ฆญ ๋ฐ์ดํฐ ํ์
"
#: src/SUMMARY.md:133 src/generics/methods.md:1
msgid "Generic Methods"
msgstr "์ ๋ค๋ฆญ ๋ฉ์๋"
#: src/SUMMARY.md:134 src/generics/monomorphization.md:1
msgid "Monomorphization"
msgstr "๋จํํ"
#: src/SUMMARY.md:135 src/traits.md:1
msgid "Traits"
msgstr "ํธ๋ ์(Trait)"
#: src/SUMMARY.md:136 src/traits/trait-objects.md:1
msgid "Trait Objects"
msgstr "ํธ๋ ์ ๊ฐ์ฒด"
#: src/SUMMARY.md:137 src/traits/deriving-traits.md:1
msgid "Deriving Traits"
msgstr "ํธ๋ ์ ์์ํ๊ธฐ"
#: src/SUMMARY.md:138 src/traits/default-methods.md:1
msgid "Default Methods"
msgstr "๊ธฐ๋ณธ ๋ฉ์๋"
#: src/SUMMARY.md:139 src/traits/trait-bounds.md:1
msgid "Trait Bounds"
msgstr "์ ๋ค๋ฆญ ํ์
์ ํ(ํธ๋ ์ ๊ฒฝ๊ณ)"
#: src/SUMMARY.md:140
msgid "impl Trait"
msgstr "ํธ๋ ์ ๊ตฌํํ๊ธฐ"
#: src/SUMMARY.md:141 src/traits/important-traits.md:1
msgid "Important Traits"
msgstr "์ค์ํ ํธ๋ ์"
#: src/SUMMARY.md:142
msgid "Iterator"
msgstr "Iterator"
#: src/SUMMARY.md:143 src/traits/from-iterator.md:1
msgid "FromIterator"
msgstr "FromIterator"
#: src/SUMMARY.md:144
msgid "From and Into"
msgstr "From๊ณผ Into"
#: src/SUMMARY.md:145
msgid "Read and Write"
msgstr "Read์ Write"
#: src/SUMMARY.md:146
msgid "Drop"
msgstr "Drop"
#: src/SUMMARY.md:147
msgid "Default"
msgstr "Default"
#: src/SUMMARY.md:148
msgid "Operators: Add, Mul, ..."
msgstr "์ฐ์ฐ์: Add, Mul, ..."
#: src/SUMMARY.md:149
msgid "Closures: Fn, FnMut, FnOnce"
msgstr "ํด๋ก์ : Fn, FnMut, FnOnce"
#: src/SUMMARY.md:151 src/exercises/day-3/simple-gui.md:1
#: src/exercises/day-3/solutions-morning.md:3
msgid "A Simple GUI Library"
msgstr "๊ฐ๋จํ GUI ๋ผ์ด๋ธ๋ฌ๋ฆฌ"
#: src/SUMMARY.md:153
msgid "Day 3: Afternoon"
msgstr "3์ผ์ฐจ ์คํ"
#: src/SUMMARY.md:155 src/error-handling.md:1
msgid "Error Handling"
msgstr "์ค๋ฅ์ฒ๋ฆฌ"
#: src/SUMMARY.md:156 src/error-handling/panics.md:1
msgid "Panics"
msgstr "ํจ๋"
#: src/SUMMARY.md:157
msgid "Catching Stack Unwinding"
msgstr "์คํ ๋๊ฐ๊ธฐ"
#: src/SUMMARY.md:158
msgid "Structured Error Handling"
msgstr "๊ตฌ์กฐํ๋ ์ค๋ฅ์ฒ๋ฆฌ"
#: src/SUMMARY.md:159
msgid "Propagating Errors with ?"
msgstr "'?'๋ฅผ ์ด์ฉํ ์ค๋ฅ ์ ํ"
#: src/SUMMARY.md:160 src/error-handling/converting-error-types.md:1
#: src/error-handling/converting-error-types-example.md:1
msgid "Converting Error Types"
msgstr "์ค๋ฅํ์
๋ณํ"
#: src/SUMMARY.md:162 src/error-handling/deriving-error-enums.md:1
msgid "Deriving Error Enums"
msgstr "๋๋ค๋ฅธ ์ค๋ฅ ์ด๊ฑฐํ"
#: src/SUMMARY.md:163 src/error-handling/dynamic-errors.md:1
msgid "Dynamic Error Types"
msgstr "๋์ ์ธ ์๋ฌ ํ์
"
#: src/SUMMARY.md:164 src/error-handling/error-contexts.md:1
msgid "Adding Context to Errors"
msgstr "์ค๋ฅ์ ์ํฉ์ ๋ณด ์ถ๊ฐ"
#: src/SUMMARY.md:165 src/testing.md:1
msgid "Testing"
msgstr "ํ
์คํธ"
#: src/SUMMARY.md:166 src/testing/unit-tests.md:1
msgid "Unit Tests"
msgstr "๋จ์ ํ
์คํธ"
#: src/SUMMARY.md:167 src/testing/test-modules.md:1
msgid "Test Modules"
msgstr "ํ
์คํธ ๋ชจ๋"
#: src/SUMMARY.md:168 src/testing/doc-tests.md:1
msgid "Documentation Tests"
msgstr "๋ฌธ์ํ์ฃผ์ ํ
์คํธ"
#: src/SUMMARY.md:169 src/testing/integration-tests.md:1
msgid "Integration Tests"
msgstr "ํตํฉ ํ
์คํธ"
#: src/SUMMARY.md:170 src/bare-metal/useful-crates.md:1
msgid "Useful crates"
msgstr "์ ์ฉํ ํฌ๋ ์ดํธ"
#: src/SUMMARY.md:171 src/unsafe.md:1
msgid "Unsafe Rust"
msgstr "์์ ํ์ง ์์ ๋ฌ์คํธ"
#: src/SUMMARY.md:172 src/unsafe/raw-pointers.md:1
msgid "Dereferencing Raw Pointers"
msgstr "์์ ํฌ์ธํฐ ์ญ์ฐธ์กฐ(๋ฐ๋ผ๊ฐ๊ธฐ)"
#: src/SUMMARY.md:173 src/unsafe/mutable-static-variables.md:1
msgid "Mutable Static Variables"
msgstr "์ ์ ๊ฐ๋ณ ๋ณ์"
#: src/SUMMARY.md:174 src/unsafe/unions.md:1
msgid "Unions"
msgstr "Unions"
#: src/SUMMARY.md:175 src/unsafe/calling-unsafe-functions.md:1
msgid "Calling Unsafe Functions"
msgstr "์์ ํ์ง ์์ ํจ์ ํธ์ถ"
#: src/SUMMARY.md:176 src/unsafe/writing-unsafe-functions.md:1
msgid "Writing Unsafe Functions"
msgstr "์์ ํ์ง ์์ ํจ์ ์์ฑํ๊ธฐ"
#: src/SUMMARY.md:177
msgid "Extern Functions"
msgstr "์ธ๋ถ(๋ค๋ฅธ์ธ์ด) ํจ์๋ค"
#: src/SUMMARY.md:178 src/unsafe/unsafe-traits.md:1
msgid "Implementing Unsafe Traits"
msgstr "์์ ํ์ง ์์ ํธ๋ ์ ๊ตฌํํ๊ธฐ"
#: src/SUMMARY.md:180 src/exercises/day-3/safe-ffi-wrapper.md:1
#: src/exercises/day-3/solutions-afternoon.md:3
msgid "Safe FFI Wrapper"
msgstr "FFI๋ํผ"
#: src/SUMMARY.md:183 src/SUMMARY.md:253
#: src/running-the-course/course-structure.md:16 src/bare-metal/android.md:1
msgid "Android"
msgstr "์๋๋ก์ด๋"
#: src/SUMMARY.md:188 src/android/setup.md:1
msgid "Setup"
msgstr "์ค์น"
#: src/SUMMARY.md:189 src/android/build-rules.md:1
msgid "Build Rules"
msgstr "๋น๋ ๊ท์น"
#: src/SUMMARY.md:190
msgid "Binary"
msgstr "๋ฐ์ด๋๋ฆฌ"
#: src/SUMMARY.md:191
msgid "Library"
msgstr "๋ผ์ด๋ธ๋ฌ๋ฆฌ"
#: src/SUMMARY.md:192 src/android/aidl.md:1
msgid "AIDL"
msgstr "AIDL"
#: src/SUMMARY.md:193
msgid "Interface"
msgstr "AIDL ์ธํฐํ์ด์ค"
#: src/SUMMARY.md:194
msgid "Implementation"
msgstr "์๋น์ค ๊ตฌํ"
#: src/SUMMARY.md:195
msgid "Server"
msgstr "AIDL ์๋ฒ"
#: src/SUMMARY.md:196 src/android/aidl/deploy.md:1
msgid "Deploy"
msgstr "๋ฐฐํฌ"
#: src/SUMMARY.md:197
msgid "Client"
msgstr "ํด๋ผ์ด์ธํธ"
#: src/SUMMARY.md:198 src/android/aidl/changing.md:1
msgid "Changing API"
msgstr "API ์์ "
#: src/SUMMARY.md:199 src/SUMMARY.md:243 src/android/logging.md:1
#: src/bare-metal/aps/logging.md:1
msgid "Logging"
msgstr "๋ก๊น
"
#: src/SUMMARY.md:200 src/android/interoperability.md:1
msgid "Interoperability"
msgstr "์ํธ์ด์ฉ์ฑ"
#: src/SUMMARY.md:201
msgid "With C"
msgstr "C์์ ์ํธ์ด์ฉ์ฑ"
#: src/SUMMARY.md:202
msgid "Calling C with Bindgen"
msgstr "Bindgen์ ์ฌ์ฉํ Cํธ์ถ"
#: src/SUMMARY.md:203
msgid "Calling Rust from C"
msgstr "C์์ ๋ฌ์คํธ ํธ์ถ"
#: src/SUMMARY.md:204 src/android/interoperability/cpp.md:1
msgid "With C++"
msgstr "C++์์ ์ํธ์ด์ฉ์ฑ"
#: src/SUMMARY.md:205
msgid "With Java"
msgstr "Java์์ ์ํธ์ด์ฉ์ฑ"
#: src/SUMMARY.md:209
msgid "Bare Metal: Morning"
msgstr "Bare Metal ์ค์ "
#: src/SUMMARY.md:214
msgid "no_std"
msgstr "no_std"
#: src/SUMMARY.md:215
msgid "A Minimal Example"
msgstr "์์ ์์ "
#: src/SUMMARY.md:216
msgid "alloc"
msgstr "alloc"
#: src/SUMMARY.md:217 src/bare-metal/microcontrollers.md:1
msgid "Microcontrollers"
msgstr "๋ง์ดํฌ๋ก์ปจํธ๋กค๋ฌ"
#: src/SUMMARY.md:218 src/bare-metal/microcontrollers/mmio.md:1
msgid "Raw MMIO"
msgstr "์์ MMIO"
#: src/SUMMARY.md:219
msgid "PACs"
msgstr "PAC"
#: src/SUMMARY.md:220
msgid "HAL Crates"
msgstr "HAL ํฌ๋ ์ดํธ"
#: src/SUMMARY.md:221
msgid "Board Support Crates"
msgstr "๋ณด๋ ์ง์ ํฌ๋ ์ดํธ"
#: src/SUMMARY.md:222
msgid "The Type State Pattern"
msgstr "Type State ํจํด"
#: src/SUMMARY.md:223
msgid "embedded-hal"
msgstr "embedded-hal"
#: src/SUMMARY.md:224
msgid "probe-rs, cargo-embed"
msgstr "progo-rs, cargo-embed"
#: src/SUMMARY.md:225 src/bare-metal/microcontrollers/debugging.md:1
msgid "Debugging"
msgstr "๋๋ฒ๊น
"
#: src/SUMMARY.md:226 src/SUMMARY.md:246
msgid "Other Projects"
msgstr "๋ค๋ฅธ ํ๋ก์ ํธ"
#: src/SUMMARY.md:228 src/exercises/bare-metal/compass.md:1
#: src/exercises/bare-metal/solutions-morning.md:3
msgid "Compass"
msgstr "๋์นจ๋ฐ"
#: src/SUMMARY.md:230
msgid "Bare Metal: Afternoon"
msgstr "Bare Metal ์คํ"
#: src/SUMMARY.md:232
msgid "Application Processors"
msgstr "์ ํ๋ฆฌ์ผ์ด์
ํ๋ก์ธ์"
#: src/SUMMARY.md:233 src/bare-metal/aps/entry-point.md:1
msgid "Getting Ready to Rust"
msgstr "Rust ์ํ ์ค๋น"
#: src/SUMMARY.md:234
msgid "Inline Assembly"
msgstr "์ธ๋ผ์ธ ์ด์
๋ธ๋ฆฌ"
#: src/SUMMARY.md:235
msgid "MMIO"
msgstr "MMIO"
#: src/SUMMARY.md:236
msgid "Let's Write a UART Driver"
msgstr "UART ๋๋ผ์ด๋ฒ ์์ฑ"
#: src/SUMMARY.md:237
msgid "More Traits"
msgstr "๋ ๋ง์ ํธ๋ ์"
#: src/SUMMARY.md:238
msgid "A Better UART Driver"
msgstr "๋ ๋์ UART ๋๋ผ์ด๋ฒ"
#: src/SUMMARY.md:239 src/bare-metal/aps/better-uart/bitflags.md:1
msgid "Bitflags"
msgstr "๋นํธํ๋๊ทธ"
#: src/SUMMARY.md:240
msgid "Multiple Registers"
msgstr "๋ ๋ง์ ๋ ์ง์คํฐ"
#: src/SUMMARY.md:241 src/bare-metal/aps/better-uart/driver.md:1
msgid "Driver"
msgstr "๋๋ผ์ด๋ฒ"
#: src/SUMMARY.md:242 src/SUMMARY.md:244
msgid "Using It"
msgstr "์ฌ์ฉํด ๋ณด๊ธฐ"
#: src/SUMMARY.md:245 src/bare-metal/aps/exceptions.md:1
msgid "Exceptions"
msgstr "์์ธ"
#: src/SUMMARY.md:247
msgid "Useful Crates"
msgstr "์ ์ฉํ ํฌ๋ ์ดํธ"
#: src/SUMMARY.md:248
msgid "zerocopy"
msgstr "zerocopy"
#: src/SUMMARY.md:249
msgid "aarch64-paging"
msgstr "aarch64-paging"
#: src/SUMMARY.md:250
msgid "buddy_system_allocator"
msgstr "buddy_system_allocator"
#: src/SUMMARY.md:251
msgid "tinyvec"
msgstr "tinyvec"
#: src/SUMMARY.md:252
msgid "spin"
msgstr "ํ์ "
#: src/SUMMARY.md:254 src/bare-metal/android/vmbase.md:1
msgid "vmbase"
msgstr "vmbase"
#: src/SUMMARY.md:256
msgid "RTC Driver"
msgstr "RTC ๋๋ผ์ด๋ฒ"
#: src/SUMMARY.md:259
msgid "Concurrency: Morning"
msgstr "๋์์ฑ ์ค์ "
#: src/SUMMARY.md:264 src/concurrency/threads.md:1
msgid "Threads"
msgstr "์ค๋ ๋"
#: src/SUMMARY.md:265 src/concurrency/scoped-threads.md:1
msgid "Scoped Threads"
msgstr "๋ฒ์ ์ค๋ ๋(Scoped Threads)"
#: src/SUMMARY.md:266 src/concurrency/channels.md:1
msgid "Channels"
msgstr "์ฑ๋"
#: src/SUMMARY.md:267 src/concurrency/channels/unbounded.md:1
msgid "Unbounded Channels"
msgstr "๋ฌด๊ฒฝ๊ณ ์ฑ๋"
#: src/SUMMARY.md:268 src/concurrency/channels/bounded.md:1
msgid "Bounded Channels"
msgstr "๊ฒฝ๊ณ ์ฑ๋"
#: src/SUMMARY.md:269
msgid "Send and Sync"
msgstr "Send์ Sync"
#: src/SUMMARY.md:269
msgid "Send"
msgstr "Send"
#: src/SUMMARY.md:269
msgid "Sync"
msgstr "Sync"
#: src/SUMMARY.md:272 src/concurrency/send-sync/examples.md:1
msgid "Examples"
msgstr "์์ "
#: src/SUMMARY.md:273 src/concurrency/shared_state.md:1
msgid "Shared State"
msgstr "์ํ ๊ณต์ "
#: src/SUMMARY.md:274
msgid "Arc"
msgstr "Arc"
#: src/SUMMARY.md:275
msgid "Mutex"
msgstr "Mutex"
#: src/SUMMARY.md:278 src/SUMMARY.md:299
#: src/exercises/concurrency/dining-philosophers.md:1
#: src/exercises/concurrency/solutions-morning.md:3
msgid "Dining Philosophers"
msgstr "์์ฌํ๋ ์ฒ ํ์๋ค"
#: src/SUMMARY.md:279 src/exercises/concurrency/link-checker.md:1
msgid "Multi-threaded Link Checker"
msgstr "๋ฉํฐ์ค๋ ๋ ๋งํฌ ๊ฒ์ฌ๊ธฐ"
#: src/SUMMARY.md:281
msgid "Concurrency: Afternoon"
msgstr "๋์์ฑ ์คํ"
#: src/SUMMARY.md:283
msgid "Async Basics"
msgstr "๋น๋๊ธฐ ๊ด๋ จ ๊ธฐ๋ณธ์ฌํญ"
#: src/SUMMARY.md:284
msgid "async/await"
msgstr "async/await"
#: src/SUMMARY.md:285 src/async/futures.md:1
msgid "Futures"
msgstr "Future"
#: src/SUMMARY.md:286 src/async/runtimes.md:1
msgid "Runtimes"
msgstr "๋น๋๊ธฐ ๋ฐํ์๋ค"
#: src/SUMMARY.md:287 src/async/runtimes/tokio.md:1
msgid "Tokio"
msgstr "Tokio"
#: src/SUMMARY.md:288 src/exercises/concurrency/link-checker.md:126
#: src/exercises/concurrency/chat-app.md:140 src/async/tasks.md:1
msgid "Tasks"
msgstr "ํ์คํฌ"
#: src/SUMMARY.md:289 src/async/channels.md:1
msgid "Async Channels"
msgstr "๋น๋๊ธฐ ์ฑ๋"
#: src/SUMMARY.md:291 src/async/control-flow/join.md:1
msgid "Join"
msgstr "Join"
#: src/SUMMARY.md:292 src/async/control-flow/select.md:1
msgid "Select"
msgstr "Select"
#: src/SUMMARY.md:293
msgid "Pitfalls"
msgstr "ํจ์ "
#: src/SUMMARY.md:294
msgid "Blocking the Executor"
msgstr "Executor ๋ธ๋กํน ํ๊ธฐ"
#: src/SUMMARY.md:295 src/async/pitfalls/pin.md:1
msgid "Pin"
msgstr "Pin"
#: src/SUMMARY.md:296 src/async/pitfalls/async-traits.md:1
msgid "Async Traits"
msgstr "๋น๋๊ธฐ ํธ๋ ์"
#: src/SUMMARY.md:297 src/async/pitfalls/cancellation.md:1
msgid "Cancellation"
msgstr "์ทจ์"
#: src/SUMMARY.md:300 src/exercises/concurrency/chat-app.md:1
#: src/exercises/concurrency/solutions-afternoon.md:119
msgid "Broadcast Chat Application"
msgstr "์ฑํ
์ ํ๋ฆฌ์ผ์ด์
"
#: src/SUMMARY.md:303
msgid "Final Words"
msgstr "๋์ผ๋ก..."
#: src/SUMMARY.md:307 src/thanks.md:1
msgid "Thanks!"
msgstr "๊ฐ์ฌ์ธ์ฌ"
#: src/SUMMARY.md:308
msgid "Other Resources"
msgstr "๋ฌ์คํธ ์ฐธ๊ณ ์๋ฃ"
#: src/SUMMARY.md:309 src/credits.md:1
msgid "Credits"
msgstr "๋์์ฃผ์ ๋ถ๋ค"
#: src/SUMMARY.md:312 src/exercises/solutions.md:1
msgid "Solutions"
msgstr "ํด๋ต"
#: src/SUMMARY.md:317
msgid "Day 1 Morning"
msgstr "1์ผ์ฐจ ์ค์ "
#: src/SUMMARY.md:318
msgid "Day 1 Afternoon"
msgstr "1์ผ์ฐจ ์คํ"
#: src/SUMMARY.md:319
msgid "Day 2 Morning"
msgstr "2์ผ์ฐจ ์ค์ "
#: src/SUMMARY.md:320
msgid "Day 2 Afternoon"
msgstr "2์ผ์ฐจ ์คํ"
#: src/SUMMARY.md:321
msgid "Day 3 Morning"
msgstr "3์ผ์ฐจ ์ค์ "
#: src/SUMMARY.md:322
msgid "Day 3 Afternoon"
msgstr "3์ผ์ฐจ ์คํ"
#: src/SUMMARY.md:323
msgid "Bare Metal Rust Morning"
msgstr "Bare Metal ์ค์ "
#: src/SUMMARY.md:324 src/exercises/bare-metal/solutions-afternoon.md:1
msgid "Bare Metal Rust Afternoon"
msgstr "์ Bare Metal ์คํ"
#: src/SUMMARY.md:325
msgid "Concurrency Morning"
msgstr "๋์์ฑ ์ค์ "
#: src/SUMMARY.md:326
msgid "Concurrency Afternoon"
msgstr "๋์์ฑ ์คํ"
#: src/index.md:3
msgid ""
"[![Build workflow](https://img.shields.io/github/actions/workflow/status/"
"google/comprehensive-rust/build.yml?style=flat-square)](https://github.com/"
"google/comprehensive-rust/actions/workflows/build.yml?query=branch%3Amain)"
msgstr ""
"[![Build workflow](https://img.shields.io/github/actions/workflow/status/"
"google/comprehensive-rust/build.yml?style=flat-square)](https://github.com/"
"google/comprehensive-rust/actions/workflows/build.yml?query=branch%3Amain)"
#: src/index.md:3
msgid "Build workflow"
msgstr "๋น๋ ์ํฌํ๋ก"
#: src/index.md:3
msgid ""
"[![Build workflow](https://img.shields.io/github/actions/workflow/status/"
"google/comprehensive-rust/build.yml?style=flat-square)](https://github.com/"
"google/comprehensive-rust/actions/workflows/build.yml?query=branch%3Amain) [!"
"[GitHub contributors](https://img.shields.io/github/contributors/google/"
"comprehensive-rust?style=flat-square)](https://github.com/google/"
"comprehensive-rust/graphs/contributors)"
msgstr ""
"[![Build workflow](https://img.shields.io/github/actions/workflow/status/"
"google/comprehensive-rust/build.yml?style=flat-square)](https://github.com/"
"google/comprehensive-rust/actions/workflows/build.yml?query=branch%3Amain) [!"
"[GitHub contributors](https://img.shields.io/github/contributors/google/"
"comprehensive-rust?style=flat-square)](https://github.com/google/"
"comprehensive-rust/graphs/contributors)"
#: src/index.md:4
msgid "GitHub contributors"
msgstr "GitHub ์ฐธ์ฌ์"
#: src/index.md:4
msgid ""
"[![GitHub contributors](https://img.shields.io/github/contributors/google/"
"comprehensive-rust?style=flat-square)](https://github.com/google/"
"comprehensive-rust/graphs/contributors) [![GitHub stars](https://img.shields."
"io/github/stars/google/comprehensive-rust?style=flat-square)](https://github."
"com/google/comprehensive-rust/stargazers)"
msgstr ""
"[![GitHub contributors](https://img.shields.io/github/contributors/google/"
"comprehensive-rust?style=flat-square)](https://github.com/google/"
"comprehensive-rust/graphs/contributors) [![GitHub stars](https://img.shields."
"io/github/stars/google/comprehensive-rust?style=flat-square)](https://github."
"com/google/comprehensive-rust/stargazers)"
#: src/index.md:5
msgid "GitHub stars"
msgstr "GitHub stars"
#: src/index.md:5
msgid ""
"[![GitHub stars](https://img.shields.io/github/stars/google/comprehensive-"
"rust?style=flat-square)](https://github.com/google/comprehensive-rust/"
"stargazers)"
msgstr ""
"[![GitHub stars](https://img.shields.io/github/stars/google/comprehensive-"
"rust?style=flat-square)](https://github.com/google/comprehensive-rust/"
"stargazers)"
#: src/index.md:7
msgid ""
"This is a free Rust course developed by the Android team at Google. The "
"course covers the full spectrum of Rust, from basic syntax to advanced "
"topics like generics and error handling."
msgstr ""
"์ด ๊ฐ์๋ ๋ฌด๋ฃ์ด๋ฉฐ, Google์ Android ํ์ด ๋ง๋ค์์ต๋๋ค. ๊ธฐ๋ณธ ๋ฌธ๋ฒ๋ถํฐ ์ ๋ค"
"๋ฆญ, ์๋ฌ ํธ๋ค๋ง๊ณผ ๊ฐ์ ๊ณ ๊ธ์ฃผ์ ๊น์ง ๋ฌ์คํธ์ ๋ชจ๋ ๊ฒ์ ํฌํจํฉ๋๋ค."
#: src/index.md:11
msgid ""
"The goal of the course is to teach you Rust. We assume you don't know "
"anything about Rust and hope to:"
msgstr ""
"๊ฐ์๋ ๋น์ ์ด ๋ฌ์คํธ์ ๋ํด์ ์๋ฌด๊ฒ๋ ๋ชจ๋ฅธ๋ค๊ณ ๊ฐ์ ํ๊ณ ์๋์ ๋ชฉํ๋ฅผ ๊ฐ์ง"
"๊ณ ์์ต๋๋ค:"
#: src/index.md:14
msgid "Give you a comprehensive understanding of the Rust syntax and language."
msgstr "๋ฌ์คํธ ๊ตฌ๋ฌธ๊ณผ ์ธ์ด์ ๋ํ ํฌ๊ด์ ์ธ ์ดํด๋ฅผ ์ ๊ณตํฉ๋๋ค."
#: src/index.md:15
msgid "Enable you to modify existing programs and write new programs in Rust."
msgstr "๊ธฐ์กด ํ๋ก๊ทธ๋จ์ ์์ ํ๊ณ ๋ฌ์คํธ์์ ์ ํ๋ก๊ทธ๋จ์ ์์ฑํ ์ ์์ต๋๋ค."
#: src/index.md:16
msgid "Show you common Rust idioms."
msgstr "์ผ๋ฐ์ ์ธ ๋ฌ์คํธ ๊ด์ฉ๊ตฌ๋ฅผ ๋ณด์ฌ์ค๋๋ค."
#: src/index.md:18
msgid "We call the first three course days Rust Fundamentals."
msgstr "๊ฐ์์ ์ฒซ 3์ผ ๋์์๋ Rust์ ๊ธฐ์ด๋ฅผ ๋ค์ง๋๋ค."
#: src/index.md:20
msgid ""
"Building on this, you're invited to dive into one or more specialized topics:"
msgstr "๊ทธ ํ์๋, ์๋์ ๊ฐ์ ๊ฐ๋ณ ์ฃผ์ ๋ฅผ ์ฌํํด์ ๊ณต๋ถํ ์ ์์ต๋๋ค:"
#: src/index.md:22
msgid ""
"[Android](android.md): a half-day course on using Rust for Android platform "
"development (AOSP). This includes interoperability with C, C++, and Java."
msgstr ""
"[Android](android.md): Android ํ๋ซํผ ๊ฐ๋ฐ(AOSP) ์ Rust ์ฌ์ฉ์ ๊ดํ ๋ฐ๋์ "
"๊ณผ์ ์
๋๋ค. ์ฌ๊ธฐ์๋ C, C++, Java์์ ์ํธ ์ด์ฉ์ฑ์ด ํฌํจ๋ฉ๋๋ค."
#: src/index.md:24
msgid ""
"[Bare-metal](bare-metal.md): a whole-day class on using Rust for bare-metal "
"(embedded) development. Both microcontrollers and application processors are "
"covered."
msgstr ""
"[Bare-metal](bare-metal.md): bare-metal(์๋ฒ ๋๋) ๊ฐ๋ฐ ์ Rust ์ฌ์ฉ์ ๊ดํ ์ข
"
"์ผ ๊ณผ์ ์
๋๋ค. ๋ง์ดํฌ๋ก์ปจํธ๋กค๋ฌ์ ์ ํ๋ฆฌ์ผ์ด์
ํ๋ก์ธ์๋ฅผ ๋ชจ๋ ๋ค๋ฃน๋๋ค."
#: src/index.md:27
msgid ""
"[Concurrency](concurrency.md): a whole-day class on concurrency in Rust. We "
"cover both classical concurrency (preemptively scheduling using threads and "
"mutexes) and async/await concurrency (cooperative multitasking using "
"futures)."
msgstr ""
"[๋์์ฑ](concurrency.md): Rust์ ๋์์ฑ์ ๊ดํ ์ข
์ผ ๊ณผ์ ์
๋๋ค. ์ฌ๊ธฐ์๋ ๊ณ ์ "
"์ ์ธ ๋์์ฑ(์ค๋ ๋์ ๋ฎคํ
์ค๋ฅผ ์ฌ์ฉํ์ฌ ์ ์ ํ ์ค์ผ์ค๋ง์ ํ๋ ๊ฒ)๊ณผ async/"
"await ๋์์ฑ(future๋ฅผ ์ฌ์ฉํ๋ ํ๋ ฅ์ ์ธ ๋ฉํฐํ์คํน)์ ๋ชจ๋ ๋ค๋ฃน๋๋ค."
#: src/index.md:33
msgid "Non-Goals"
msgstr "์ ์ธ์ฌํญ"
#: src/index.md:35
msgid ""
"Rust is a large language and we won't be able to cover all of it in a few "
"days. Some non-goals of this course are:"
msgstr ""
"๋ฌ์คํธ๋ ๋ฉฐ์น ๋ง์ ๋ชจ๋ ๊ฒ์ ๋ค๋ฃจ๊ธฐ์๋ ๋๋ฌด ํฐ ์ธ์ด์
๋๋ค. ๊ทธ๋์ ์๋์ ๊ฐ์"
"๊ฒ์ ๋ชฉํ๋ก ํ์ง ์์ต๋๋ค:"
#: src/index.md:38
msgid ""
"Learning how to develop macros: please see [Chapter 19.5 in the Rust Book]"
"(https://doc.rust-lang.org/book/ch19-06-macros.html) and [Rust by Example]"
"(https://doc.rust-lang.org/rust-by-example/macros.html) instead."
msgstr ""
"๋งคํฌ๋ก ๋ง๋ค๊ธฐ: ๋งคํฌ๋ก์ ๊ด๋ จํ ์์ธํ ๋ด์ฉ์ [๋ฌ์คํธ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด, 19.1์ ]"
"(https://doc.rust-lang.org/book/ch19-01-unsafe-rust.html)๊ณผ [Rustonomicon]"
"(https://doc.rust-lang.org/nomicon/)๋ฅผ ์ฐธ์กฐํ์ธ์."
#: src/index.md:42
msgid "Assumptions"
msgstr "๋
์ ์์ค์ ๋ํ ๊ฐ์ "
#: src/index.md:44
msgid ""
"The course assumes that you already know how to program. Rust is a "
"statically-typed language and we will sometimes make comparisons with C and "
"C++ to better explain or contrast the Rust approach."
msgstr ""
"๋ณธ ๊ฐ์๋ ์ฌ๋ฌ๋ถ์ด ํ๋ก๊ทธ๋๋ฐ ์์ฒด์ ๋ํด์๋ ์๊ณ ์๋ค๊ณ ๊ฐ์ ํฉ๋๋ค. ๋ฌ์คํธ"
"๋ ์ ์ ํ์
์ธ์ด์ด๋ฉฐ, ๊ฐ์ข์์๋ C/C++ ์์ ๋น๊ต, ๋์กฐ๋ฅผ ํตํด ๋ฌ์คํธ๋ฅผ ์ค๋ช
"
"ํ ๊ฒ์
๋๋ค."
#: src/index.md:48
msgid ""
"If you know how to program in a dynamically-typed language such as Python or "
"JavaScript, then you will be able to follow along just fine too."
msgstr ""
"C/C++์ ๋ชจ๋ฅด๋๋ผ๋ ๋์ ํ์
์ธ์ด(Python์ด๋ JavaScript ๋ฑ) ํ๋ก๊ทธ๋๋ฐ ๊ฒฝํ"
"์ด ์๋ค๋ฉด ๋ฐ๋ผ์ค๋๋ฐ ํฐ ๋ฌธ์ ๋ ์์ ๊ฒ์
๋๋ค."
#: src/index.md:53
msgid ""
"This is an example of a _speaker note_. We will use these to add additional "
"information to the slides. This could be key points which the instructor "
"should cover as well as answers to typical questions which come up in class."
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 internally at Google."
msgstr ""
"๋ค์์ ๊ตฌ๊ธ ๋ด๋ถ์์ ์ด ๊ณผ์ ์ ์ด๋ค์์ผ๋ก ์ด์ํด์๋์ง์ ๋ํ ๋ฐฐ๊ฒฝ ์ ๋ณด์
๋"
"๋ค."
#: src/running-the-course.md:8
msgid "Before you run the course, you will want to:"
msgstr "๊ฐ์๋ฅผ ์คํํ๊ธฐ ์ํ ์ค๋น:"
#: src/running-the-course.md:10
msgid ""
"Make yourself familiar with the course material. We've included speaker "
"notes to help highlight the key points (please help us by contributing more "
"speaker notes!). When presenting, you should make sure to open the speaker "
"notes in a popup (click the link with a little arrow next to \"Speaker "
"Notes\"). This way you have a clean screen to present to the class."
msgstr ""
"๊ฐ์ ์๋ฃ๋ฅผ ์์งํฉ๋๋ค. ์ฃผ์ ์์ ์ ๊ฐ์กฐํ๊ธฐ ์ํด ๊ฐ์ ์ฐธ์กฐ ๋
ธํธ๋ฅผ ํฌํจํ์์ต"
"๋๋ค. (์ถ๊ฐ์ ์ธ ๋
ธํธ๋ฅผ ์์ฑํ์ฌ ์ ๊ณตํด ์ฃผ์๋ฉด ๊ฐ์ฌํ๊ฒ ์ต๋๋ค.) ๊ฐ์ ์ฐธ์กฐ ๋
ธํธ"
"์ ๋งํฌ๋ฅผ ๋๋ฅด๋ฉด ๋ณ๋์ ํ์
์ผ๋ก ๋ถ๋ฆฌ๊ฐ ๋๋ฉฐ, ๋ฉ์ธ ํ๋ฉด์์๋ ์ฌ๋ผ์ง๋๋ค. ๊น"
"๋ํ ํ๋ฉด์ผ๋ก ๊ฐ์๋ฅผ ์งํํ ์ ์์ต๋๋ค."
#: src/running-the-course.md:16
msgid ""
"Decide on the dates. Since the course takes at least three full days, we "
"recommend that you schedule the days over two weeks. Course participants "
"have said that they find it helpful to have a gap in the course since it "
"helps them process all the information we give them."
msgstr ""
"๊ฐ์ ๋ ์ง๋ฅผ ์ ํฉ๋๋ค. ์ต์ 3์ผ์ ๊ฑธ์ณ์ ์งํ์ด ๋๊ธฐ ๋๋ฌธ์, ๋ ์ฃผ์ ๊ฑธ์ณ์ ์ค"
"์ผ์ค์ ์ก๋ ๊ฒ์ ๊ถํฉ๋๋ค. ๊ธฐ์กด ๊ฐ์ ์๊ฐ์๋ค์ ํผ๋๋ฐฑ์ ๋ฐ๋ฅด๋ฉด, ์ฐ๋ฌ์์ ๊ฐ"
"์๋ฅผ ์งํํ๋ ๊ฒ ๋ณด๋ค, ๊ฐ์๋ฅผ ๋์๋์ ํ๋ ๊ฒ์ด ๊ฐ์ ๋ด์ฉ์ ์ํํ๋๋ฐ ๋ ๋"
"์์ด ๋์๋ค๊ณ ํฉ๋๋ค."
#: src/running-the-course.md:21
msgid ""
"Find a room large enough for your in-person participants. We recommend a "
"class size of 15-25 people. That's small enough that people are comfortable "
"asking questions --- it's also small enough that one instructor will have "
"time to answer the questions. Make sure the room has _desks_ for yourself "
"and for the students: you will all need to be able to sit and work with your "
"laptops. In particular, you will be doing a lot of live-coding as an "
"instructor, so a lectern won't be very helpful for you."
msgstr ""
"์ถฉ๋ถํ ๊ณต๊ฐ์ ํ๋ณดํฉ๋๋ค. 15์์ 20๋ช
๊ท๋ชจ์ ๊ณต๊ฐ์ ์ถ์ฒํฉ๋๋ค. ์๊ฐ์๊ณผ ๊ฐ์ฌ"
"๊ฐ ์ง์๋ฅผ ํ๊ธฐ์ ์ถฉ๋ถํ ์๊ฐ๊ณผ ๊ณต๊ฐ์ด์ด์ผ ํฉ๋๋ค. ๊ฐ์ฌ๋ ์๊ฐ์ ๋ชจ๋ \\_์ฑ
์_"
"์ ์ฌ์ฉํ ์ ์๋ ๊ฐ์์ค์ด๋ฉด ์ข์ต๋๋ค. ๊ฐ์ ์ค์ ๊ฐ์ฌ๊ฐ ๋ผ์ด๋ธ ์ฝ๋ฉ์ ํ๊ฒ "
"๋ ๊ฒฝ์ฐ๊ฐ ๋ง์ผ๋ฉฐ, ์ด๋ ์๋ฆฌ์ ์์ ๋
ธํธ๋ถ์ ์ฌ์ฉํ๋ ๊ฒ์ด ๋์์ด ๋ฉ๋๋ค."
#: src/running-the-course.md:29
msgid ""
"On the day of your course, show up to the room a little early to set things "
"up. We recommend presenting directly using `mdbook serve` running on your "
"laptop (see the [installation instructions](https://github.com/google/"
"comprehensive-rust#building)). This ensures optimal performance with no lag "
"as you change pages. Using your laptop will also allow you to fix typos as "
"you or the course participants spot them."
msgstr ""
"๊ฐ์ ๋น์ผ ์กฐ๊ธ ์ผ์ฐ ์์ ์ค๋นํฉ๋๋ค. ๊ฐ์ฌ ๋
ธํธ๋ถ์์ `mdbook serve`๋ฅผ ์ด์ฉํด "
"์ง์ ํ๋ ์ ํ
์ด์
ํ๋ฉด ํ์ด์ง ์ด๋ ์์ ์ง์ฐ์ด ์์ต๋๋ค.([์ค์น ๋ฐฉ๋ฒ](https://"
"github.com/google/comprehensive-rust#building)์ ์ฐธ์กฐํ์ธ์.) ๋ํ, ๊ทธ๋ ๊ฒ ํ"
"๋ฉด ๊ฐ์ ๋์ค ์คํ๋ฅผ ๋ฐ๊ฒฌํ์ ๋ ๊ทธ ์๋ฆฌ์์ ๋ฐ๋ก ์์ ๊ฐ๋ฅํ๋ค๋ ์ฅ์ ๋ ์์ต"
"๋๋ค."
#: src/running-the-course.md:35
msgid ""
"Let people solve the exercises by themselves or in small groups. We "
"typically spend 30-45 minutes on exercises in the morning and in the "
"afternoon (including time to review the solutions). Make sure to ask people "
"if they're stuck or if there is anything you can help with. When you see "
"that several people have the same problem, call it out to the class and "
"offer a solution, e.g., by showing people where to find the relevant "
"information in the standard library."
msgstr ""
"์๊ฐ์๋ค์ด ์ง์ (๊ฐ๋ณ ํน์ ๊ทธ๋ฃน์ผ๋ก) ์ฐ์ต๋ฌธ์ ๋ฅผ ํ๋๋ก ํฉ๋๋ค. ๋์ฒด๋ก ์ค์ , "
"์คํ์ ๊ฐ๊ฐ 30-45๋ถ ์ ๋๋ฅผ ์ฐ์ต๋ฌธ์ ์ ํ ๋นํฉ๋๋ค (์ด๋ ํด๋ต์ ๋ณด๊ณ ์ค๋ช
ํ๋ "
"์๊ฐ๊น์ง ํฌํจํฉ๋๋ค). ๋งํ ๋์์ ํ์๋ก ํ๋ ์๊ฐ์์ด ์๋์ง ์์๋ก ํ์ธํฉ๋"
"๋ค. ๋ง์ฝ ๊ฐ์ ๋ฌธ์ ๋ฅผ ์ฌ๋ฌ ์ฌ๋์ด ๊ฒช๊ณ ์๋ค๋ฉด, ๊ทธ ๋ฌธ์ ๋ฅผ ๊ฐ์์ค ์ ์ฒด ์ธ์์๊ฒ "
"์๋ฆฌ๊ณ ํด๊ฒฐ์ฑ
์ ์ ์ํฉ๋๋ค. ์๋ฅผ ๋ค์ด ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ด๋์ ๊ฐ๋ฉด ๊ทธ ๋ฌธ์ ์ "
"๋ํ ํด๋ต์ ์ฐพ์ ์ ์๋์ง ์๋ ค ์ค๋๋ค."
#: src/running-the-course.md:43
msgid ""
"That is all, good luck running the course! We hope it will be as much fun "
"for you as it has been for us!"
msgstr ""
"์ด์ ์ค๋น๋ ๋๋ฌ์ต๋๋ค. ์ฐ๋ฆฌ๊ฐ ๊ทธ๋ฌ๋ฏ์ด ์ฌ๋ฌ๋ถ๋ค๋ ์ด ๊ฐ์๋ฅผ ์ฆ๊ธฐ์๊ธธ ๋ฐ๋๋"
"๋ค!"
#: src/running-the-course.md:46
msgid ""
"Please [provide feedback](https://github.com/google/comprehensive-rust/"
"discussions/86) afterwards so that we can keep improving the course. We "
"would love to hear what worked well for you and what can be made better. "
"Your students are also very welcome to [send us feedback](https://github.com/"
"google/comprehensive-rust/discussions/100)!"
msgstr ""
"๊ฐ์๋ฅผ ๊ณ์ ๊ฐ์ ํ ์ ์๋๋ก [ํผ๋๋ฐฑ](https://github.com/google/"
"comprehensive-rust/discussions/86)์ ์ ๊ณตํด ์ฃผ์ญ์์ค. ์ฐ๋ฆฌ๋ ๋ฌด์์ด ์ข์๊ณ , "
"๋ฌด์์ด ๋ชจ์๋๋์ง ๋ฃ๊ณ ์ถ์ต๋๋ค. ์๊ฐ์๋ค๋ก ๋ถํฐ์ [ํผ๋๋ฐฑ](https://github."
"com/google/comprehensive-rust/discussions/100)๋ ํ์ํฉ๋๋ค!"
#: 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."
msgstr "1์ผ์ฐจ: ๋ฌ์คํธ ๊ธฐ๋ณธ, ์์ ๊ถ(ownership)๊ณผ ๋น๋ฆผ(borrow) ์ฒดํฌ."
#: src/running-the-course/course-structure.md:8
msgid "Day 2: Compound data types, pattern matching, the standard library."
msgstr "2์ผ์ฐจ: ๋ณตํฉ ๋ฐ์ดํฐ ์ ํ, ํจํด ๋งค์นญ, ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ."
#: src/running-the-course/course-structure.md:9
msgid "Day 3: Traits and generics, error handling, testing, unsafe Rust."
msgstr ""
"3์ผ์ฐจ: ํธ๋ ์(trait)์ ์ ๋ค๋ฆญ(generic), ์ค๋ฅ ์ฒ๋ฆฌ, ํ
์คํธ, ์์ ํ์ง ์์ ๋ฌ์ค"
"ํธ."
#: src/running-the-course/course-structure.md:11
msgid "Deep Dives"
msgstr "์ฌํ ํ์ต"
#: src/running-the-course/course-structure.md:13
msgid ""
"In addition to the 3-day class on Rust Fundamentals, we cover some more "
"specialized topics:"
msgstr "Rust ๊ธฐ์ด์ ๊ดํ 3์ผ ๊ณผ์ ์ดํ์๋, ๋ค์๊ณผ ๊ฐ์ ์ ๋ฌธ ์ฃผ์ ๋ฅผ ๋ค๋ฃน๋๋ค:"
#: src/running-the-course/course-structure.md:18
msgid ""
"The [Android Deep Dive](../android.md) is a half-day course on using Rust "
"for Android platform development. This includes interoperability with C, C+"
"+, and Java."
msgstr ""
"[Android ์ฌํ ํ์ต](../android.md)๋ Android ํ๋ซํผ ๊ฐ๋ฐ ์ Rust ์ฌ์ฉ์ ๊ดํ "
"๋ฐ๋์ ๊ณผ์ ์
๋๋ค. ์ฌ๊ธฐ์๋ C, C++, Java์์ ์ํธ ์ด์ฉ์ฑ์ด ํฌํจ๋ฉ๋๋ค."
#: src/running-the-course/course-structure.md:22
msgid ""
"You will need an [AOSP checkout](https://source.android.com/docs/setup/"
"download/downloading). Make a checkout of the [course repository](https://"
"github.com/google/comprehensive-rust) on the same machine and move the `src/"
"android/` directory into the root of your AOSP checkout. This will ensure "
"that the Android build system sees the `Android.bp` files in `src/android/`."
msgstr ""
"[AOSP ์ฝ๋](https://source.android.com/docs/setup/download/downloading)๋ฅผ ์ฌ"
"๋ฌ๋ถ์ ์ปดํจํฐ์ ์ฒดํฌ์์ํด์ผ ํฉ๋๋ค. ๊ทธ๋ฐ ๋ค์, ๊ทธ ์ปดํจํฐ์์ [๊ณผ์ ์ ์ฅ์]"
"(https://github.com/google/comprehensive-rust)๋ฅผ ์ฒดํฌ์์ํ๊ณ `src/android/` "
"๋๋ ํฐ๋ฆฌ๋ฅผ AOSP ์ฝ๋์ ๋ฃจํธ๋ก ์ด๋ํฉ๋๋ค. ์ด๋ ๊ฒ ํ๋ฉด ์๋๋ก์ด๋ ๋น๋ ์์คํ
"
"์์ ๊ณผ์ ์ฉ์ผ๋ก ์ถ๊ฐ๋ `Android.bp`ํ์ผ์ ์ธ์ํ ์ ์์ต๋๋ค."
#: src/running-the-course/course-structure.md:27
msgid ""
"Ensure that `adb sync` works with your emulator or real device and pre-build "
"all Android examples using `src/android/build_all.sh`. Read the script to "
"see 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/course-structure.md:34
msgid "Bare-Metal"
msgstr "Bare-Metal"
#: src/running-the-course/course-structure.md:36
msgid ""
"The [Bare-Metal Deep Dive](../bare-metal.md): a full day class on using Rust "
"for bare-metal (embedded) development. Both microcontrollers and application "
"processors are covered."
msgstr ""
"[Bare-Metal ์ฌํ ํ์ต](../bare-metal.md): bare-metal(์๋ฒ ๋๋) ๊ฐ๋ฐ ์ Rust "
"์ฌ์ฉ์ ๊ดํ ์ข
์ผ ๊ณผ์ ์
๋๋ค. ๋ง์ดํฌ๋ก์ปจํธ๋กค๋ฌ์ ์ ํ๋ฆฌ์ผ์ด์
ํ๋ก์ธ์๋ฅผ ๋ชจ๋ "
"๋ค๋ฃน๋๋ค."
#: src/running-the-course/course-structure.md:40
msgid ""
"For the microcontroller part, you will need to buy the [BBC micro:bit]"
"(https://microbit.org/) v2 development board ahead of time. Everybody will "
"need to install a number of packages as described on the [welcome page](../"
"bare-metal.md)."
msgstr ""
"๋ง์ดํฌ๋ก์ปจํธ๋กค๋ฌ ํํธ๋ฅผ ์งํํ๊ธฐ ์ํด์๋ [BBC micro:bit](https://microbit."
"org/) v2 ๊ฐ๋ฐ ๋ณด๋๋ฅผ ๋ฏธ๋ฆฌ ๊ตฌ๋งคํด์ผ ํฉ๋๋ค. ๋ชจ๋ ์ฌ์ฉ์๋ [์์ ํ์ด์ง](../"
"bare-metal.md)์ ์ค๋ช
๋ ๋๋ก ๊ฐ์ข
ํจํค์ง๋ฅผ ์ค์นํด์ผ ํฉ๋๋ค."
#: src/running-the-course/course-structure.md:45
msgid "Concurrency"
msgstr "๋์์ฑ"
#: src/running-the-course/course-structure.md:47
msgid ""
"The [Concurrency Deep Dive](../concurrency.md) is a full day class on "
"classical as well as `async`/`await` concurrency."
msgstr ""
"[๋์์ฑ ์ฌํํ์ต](../concurrency.md)์ ๊ณ ์ ์ ์ธ ๋์์ฑ ๋ฐ `async`/`await` ๋"
"์์ฑ์ ๋ค๋ฃจ๋ ์ข
์ผ ๊ณผ์ ์
๋๋ค."
#: src/running-the-course/course-structure.md:50
msgid ""
"You will need a fresh crate set up and the dependencies downloaded and ready "
"to go. You can then copy/paste the examples into `src/main.rs` to experiment "
"with them:"
msgstr ""
"์ ํฌ๋ ์ดํธ๋ฅผ ์ค์ ํ๊ณ ๋ช ๊ฐ์ง ์์กด์ฑ์ ๋ค์ด๋ก๋ํด ๋์ด์ผ ํฉ๋๋ค. ๊ทธ๋ฐ ๋ค์ "
"์์ ๋ฅผ `src/main.rs`์ ๋ณต์ฌ/๋ถ์ฌ๋ฃ๊ธฐ ํ์ฌ ํ
์คํธ ํด ๋ณผ ์ ์์ต๋๋ค:"
#: src/running-the-course/course-structure.md:54
msgid ""
"```shell\n"
"cargo init concurrency\n"
"cd concurrency\n"
"cargo add tokio --features full\n"
"cargo run\n"
"```"
msgstr ""
"```shell\n"
"cargo init concurrency\n"
"cd concurrency\n"
"cargo add tokio --features full\n"
"cargo run\n"
"```"
#: src/running-the-course/course-structure.md:61
msgid "Format"
msgstr "๊ฐ์ ํ์"
#: src/running-the-course/course-structure.md:63
msgid ""
"The course is meant to be very interactive and we recommend letting the "
"questions drive the exploration of Rust!"
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"
msgstr "์ผ์ชฝ ํ์ดํ"
#: src/running-the-course/keyboard-shortcuts.md:5
msgid ": Navigate to the previous page."
msgstr ": ์ด์ ํ์ด์ง๋ก ์ด๋ํฉ๋๋ค."
#: src/running-the-course/keyboard-shortcuts.md:6
msgid "Arrow-Right"
msgstr "์ค๋ฅธ์ชฝ ํ์ดํ"
#: src/running-the-course/keyboard-shortcuts.md:6
msgid ": Navigate to the next page."
msgstr ": ๋ค์ ํ์ด์ง๋ก ์ด๋ํฉ๋๋ค."
#: src/running-the-course/keyboard-shortcuts.md:7 src/cargo/code-samples.md:19
msgid "Ctrl + Enter"
msgstr "Ctrl + Enter"
#: src/running-the-course/keyboard-shortcuts.md:7
msgid ": Execute the code sample that has focus."
msgstr ": ํ์ฌ ํฌ์ปค์ค๋ฅผ ๋ฐ์ ์ฝ๋ ์ํ ๋ธ๋ก์ ์คํํฉ๋๋ค."
#: src/running-the-course/keyboard-shortcuts.md:8
msgid "s"
msgstr "s"
#: src/running-the-course/keyboard-shortcuts.md:8
msgid ": Activate the search bar."
msgstr ""
": ๊ฒ์์ฐฝ์ ํ์ฑํํฉ๋๋ค.(mdBook ๋ฌธ์ ๋ก 23.01.19 ๊ธฐ์ค ์์ด๋ก๋ง ๊ฐ๋ฅํฉ๋๋ค.)"
#: src/running-the-course/translations.md:3
msgid ""
"The course has been translated into other languages by a set of wonderful "
"volunteers:"
msgstr ""
"์ด ๊ณผ์ ์ ๋ค๋ฅธ ์ธ์ด๋ก๋ ์ ๊ณต๋ฉ๋๋ค. ๊ดํธ ์์ ๋ฒ์ญ์ ๋์ ์ฃผ์ ๋ถ๋ค์
๋๋ค:"
#: src/running-the-course/translations.md:6
msgid ""
"[Brazilian Portuguese](https://google.github.io/comprehensive-rust/pt-BR/) "
"by [@rastringer](https://github.com/rastringer), [@hugojacob](https://github."
"com/hugojacob), [@joaovicmendes](https://github.com/joaovicmendes) and "
"[@henrif75](https://github.com/henrif75)."
msgstr ""
"[๋ธ๋ผ์ง ํฌ๋ฅดํฌ๊ฐ์ด](https://google.github.io/comprehensive-rust/pt-BR/): "
"[@rastringer](https://github.com/rastringer), [@hugojacob](https://github."
"com/hugojacob), [@joaovicmendes](https://github.com/joaovicmendes) ๊ทธ๋ฆฌ๊ณ "
"[@henrif75](https://github.com/henrif75)๊ฐ ์ ๊ณต."
#: src/running-the-course/translations.md:7
msgid ""
"[Korean](https://google.github.io/comprehensive-rust/ko/) by [@keispace]"
"(https://github.com/keispace), [@jiyongp](https://github.com/jiyongp) and "
"[@jooyunghan](https://github.com/jooyunghan)."
msgstr ""
"[ํ๊ตญ์ด](https://google.github.io/comprehensive-rust/ko/): [@keispace]"
"(https://github.com/keispace), [@jiyongp](https://github.com/jiyongp) ๊ทธ๋ฆฌ๊ณ "
"[@jooyunghan](https://github.com/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 "Incomplete Translations"
msgstr "๋ฒ์ญ ๋ฌธ์ "
#: src/running-the-course/translations.md:13
msgid ""
"There is a large number of in-progress translations. We link to the most "
"recently updated translations:"
msgstr ""
"์งํ ์ค์ธ ๋ฒ์ญ์ด ๋ง์ต๋๋ค. ์ต๊ทผ์ ์
๋ฐ์ดํธ๋ ๋ฒ์ญ๋ณธ์ผ๋ก ์ฐ๊ฒฐ๋๋ ๋งํฌ๋ ๋ค์"
"๊ณผ ๊ฐ์ต๋๋ค:"
#: src/running-the-course/translations.md:16
msgid ""
"[Bengali](https://google.github.io/comprehensive-rust/bn/) by [@raselmandol]"
"(https://github.com/raselmandol)."
msgstr ""
"[๋ฒต๊ฐ์ด](https://google.github.io/comprehensive-rust/bn/): [@raselmandol]"
"(https://github.com/raselmandol) ์ ๊ณต."
#: src/running-the-course/translations.md:17
msgid ""
"[French](https://google.github.io/comprehensive-rust/fr/) by [@KookaS]"
"(https://github.com/KookaS) and [@vcaen](https://github.com/vcaen)."
msgstr ""
"[ํ๋์ค์ด](https://google.github.io/comprehensive-rust/fr/): [@KookaS]"
"(https://github.com/KookaS) ๋ฐ [@vcaen](https://github.com/vcaen) ์ ๊ณต."
#: src/running-the-course/translations.md:18
msgid ""
"[German](https://google.github.io/comprehensive-rust/de/) by [@Throvn]"
"(https://github.com/Throvn) and [@ronaldfw](https://github.com/ronaldfw)."
msgstr ""
"[๋
์ผ์ด](https://google.github.io/comprehensive-rust/de/): [@Throvn](https://"
"github.com/Throvn) ๋ฐ [@ronaldfw](https://github.com/ronaldfw) ์ ๊ณต."
#: src/running-the-course/translations.md:19
msgid ""
"[Japanese](https://google.github.io/comprehensive-rust/ja/) by [@CoinEZ-JPN]"
"(https://github.com/CoinEZ) and [@momotaro1105](https://github.com/"
"momotaro1105)."
msgstr ""
"[์ผ๋ณธ์ด](https://google.github.io/comprehensive-rust/ja/): [@CoinEZ-JPN]"
"(https://github.com/CoinEZ) ๋ฐ [@momotaro1105](https://github.com/"
"momotaro1105) ์ ๊ณต."
#: src/running-the-course/translations.md:21
msgid ""
"If you want to help with this effort, please see [our instructions](https://"
"github.com/google/comprehensive-rust/blob/main/TRANSLATIONS.md) for how to "
"get going. Translations are coordinated on the [issue tracker](https://"
"github.com/google/comprehensive-rust/issues/282)."
msgstr ""
"์ด ๊ณผ์ ์ ๋ฒ์ญ ์์
์ ๋์์ ์ฃผ๊ณ ์ถ๋ค๋ฉด [์ฌ๊ธฐ](https://github.com/google/"
"comprehensive-rust/blob/main/TRANSLATIONS.md) ์ค๋ช
๋ ๋ด์ฉ์ ์ฐธ๊ณ ํ์ธ์. ์งํ "
"์ค์ธ ๋ฒ์ญ ์์
์ ๋ํ ๋ด์ฉ์ [์ด์ ํธ๋์ปค](https://github.com/google/"
"comprehensive-rust/issues/282)๋ฅผ ์ฐธ๊ณ ํ์ธ์."
#: 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 used in the Rust ecosystem to build "
"and run Rust applications. Here we want to give a brief overview of what "
"Cargo is and how it fits into the wider ecosystem 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 "**Please follow the instructions on .**"
msgstr "**์ ์ค์น ๋ฐฉ๋ฒ์ ๋ฐ๋ฅด์ธ์.**"
#: src/cargo.md:12
msgid ""
"This will give you the Cargo build tool (`cargo`) and the Rust compiler "
"(`rustc`). You will also get `rustup`, 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 ""
"On Debian/Ubuntu, you can also install Cargo, the Rust source and the [Rust "
"formatter](https://github.com/rust-lang/rustfmt) via `apt`. However, this "
"gets you an outdated rust version and may lead to unexpected behavior. The "
"command would be:"
msgstr ""
"๋ฐ๋น์/์ฐ๋ถํฌ ์์คํ
์์๋ `apt`๋ฅผ ์ด์ฉํด์ ์นด๊ณ , ๋ฌ์คํธ ์์ค, [๋ฌ์คํธ ํฌ๋งค"
"ํฐ](https://github.com/rust-lang/rustfmt)๋ฅผ ์ค์นํ ์ ์์ต๋๋ค. ๊ทธ๋ฌ๋ ์ด ๋ฐฉ"
"๋ฒ์ ๋ฐ๋ฅผ ๊ฒฝ์ฐ ์ต์ ๋ฒ์ ์ด ์๋ ๋ฌ์คํธ๋ฅผ ์ฌ์ฉ๊ฒ๋๋ฉฐ, ๊ทธ ๊ฒฐ๊ณผ ์์์น ๋ชปํ ๋ฌธ์ "
"๋ฅผ ๊ฒช์ ์๋ ์์ต๋๋ค. ์ค์น ๋ช
๋ น์ด๋ ์๋์ ๊ฐ์ต๋๋ค:"
#: src/cargo.md:18
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:22
msgid ""
"We suggest using [VS Code](https://code.visualstudio.com/) to edit the code "
"(but any LSP compatible editor works with rust-analyzer[3](https://rust-"
"analyzer.github.io/))."
msgstr ""
"์ฐ๋ฆฌ๋ ์ฝ๋ ์๋ํฐ๋ก [VS Code](https://code.visualstudio.com/)๋ฅผ ์ถ์ฒํฉ๋๋ค. "
"๊ทธ๋ฌ๋ LSP๋ฅผ ์ง์ํ๋ (๊ทธ๋์ rust-analyzer[3](https://rust-analyzer.github."
"io/)์ ์ฐ๋์ด ๊ฐ๋ฅํ) ์๋ํฐ๋ผ๋ฉด ์ด๋ค ๊ฒ์ด๋ผ๋ ๊ด์ฐฎ์ต๋๋ค."
#: src/cargo.md:24
msgid ""
"Some folks also like to use the [JetBrains](https://www.jetbrains.com/"
"clion/) family of IDEs, which do their own analysis but have their own "
"tradeoffs. If you prefer them, you can install the [Rust Plugin](https://www."
"jetbrains.com/rust/). Please take note that as of January 2023 debugging "
"only works on the CLion version of the JetBrains IDEA suite."
msgstr ""
"์ด๋ค ์ฌ๋๋ค์ [JetBrains](https://www.jetbrains.com/clion/) ์ ํ๊ตฐ์ ์ ํธํ๊ธฐ"
"๋ ํฉ๋๋ค. ์ด ์ ํ๋ค์ rust-analyzer ๋ฅผ ํ์ฉํ์ง ์๊ณ IDE ์์ฒด์ ์ผ๋ก ๊ตฌ๋ฌธ๋ถ์"
"์ ํฉ๋๋ค. ๋ง์ฝ ์ด IDE๋ฅผ ์ค์นํ์
จ๋ค๋ฉด [Rust Plugin](https://www.jetbrains."
"com/rust/)๋ฅผ ์ค์นํ์๊ธฐ ๋ฐ๋๋๋ค. ๋ค๋ง 2023๋
1์ ๊ธฐ์ค, ๋๋ฒ๊น
์ JetBrains "
"IDEA suite์ CLion ๋ฒ์ ์์๋ง ์๋ํ๋ค๋ ์ ์ ์ ์ํ์๊ธฐ ๋ฐ๋๋๋ค."
#: 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 "
"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 "
"download dependencies, usually hosted on , and it will "
"pass them to `rustc` when building your project. Cargo also comes with a "
"built-in test 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 "
"install and update `rustc` and `cargo` when new versions of Rust is "
"released. In addition, `rustup` can also download documentation for the "
"standard library. You can have multiple versions of Rust installed at once "
"and `rustup` 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/basic-syntax/references.md:23
#: src/pattern-matching/destructuring-enums.md:35
#: src/error-handling/try-operator.md:48
#: src/error-handling/converting-error-types-example.md:50
#: src/concurrency/threads.md:30 src/async/async-await.md:25
msgid "Key points:"
msgstr "ํค ํฌ์ธํธ:"
#: src/cargo/rust-ecosystem.md:23
msgid ""
"Rust has a rapid release schedule with a new release coming out every six "
"weeks. New releases maintain backwards compatibility with 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 "
"\"stable\" every six weeks."
msgstr ""
"์๋ก์ด ๊ธฐ๋ฅ์ \"nightly\" -> \"beta\" -(6์ฃผ ํ)-> \"stable\" ๋ก ๋ณ๊ฒฝ๋ฉ๋๋ค."
#: src/cargo/rust-ecosystem.md:32
msgid ""
"Dependencies can also be resolved from alternative [registries](https://doc."
"rust-lang.org/cargo/reference/registries.html), git, folders, and more."
msgstr ""
"์์กด์ฑ์ ๋ค์ํ [์ ์ฅ์](registries), git ํ๋ก์ ํธ, ๋๋ ํฐ๋ฆฌ ๋ฑ์์ ์ ๊ณต๋ "
"์ ์์ต๋๋ค."
#: src/cargo/rust-ecosystem.md:34
msgid ""
"Rust also has [editions](https://doc.rust-lang.org/edition-guide/): the "
"current edition is Rust 2021. Previous editions were Rust 2015 and Rust 2018."
msgstr ""
"๋ฌ์คํธ๋ [์๋์
](https://doc.rust-lang.org/edition-guide/)์ผ๋ก ๊ตฌ๋ถ๋ฉ๋๋ค. "
"ํ์ฌ๋ Rust 2021 ์๋์
์
๋๋ค. ์ด ์ ์๋์
์ผ๋ก Rust 2015์ Rust 2018์ด ์์ต"
"๋๋ค."
#: src/cargo/rust-ecosystem.md:37
msgid ""
"The editions are allowed to make backwards incompatible changes to the "
"language."
msgstr "์๋์
์ ์ด์ ์๋์
๊ณผ ํธํ์ด ๋์ง ์์ ์ ์์ต๋๋ค."
#: src/cargo/rust-ecosystem.md:40
msgid ""
"To prevent breaking code, editions are opt-in: you select the edition for "
"your crate via the `Cargo.toml` file."
msgstr ""
"์๋์
์ด ๋ฐ๋๋ฉด์ ํ๋ก๊ทธ๋จ์ด ์๋์น ์๊ฒ ๊นจ์ง๋ ๋ฌธ์ ๋ฅผ ๋ง๊ธฐ ์ํด, ๊ฐ ํ๋ก๊ทธ๋จ"
"์ ์์ ์ด ๋น๋๋ ์๋์
์ ๋ช
์์ ์ผ๋ก `Cargo.toml`์ ์ง์ ํด์ผ ํฉ๋๋ค."
#: src/cargo/rust-ecosystem.md:43
msgid ""
"To avoid splitting the ecosystem, Rust compilers can mix code written for "
"different editions."
msgstr ""
"๋ฌ์คํธ ์ํ๊ณ๊ฐ ์๋์
๋ณ๋ก ํํธํ ๋๋ ๊ฒ์ ๋ง๊ธฐ ์ํด, ๋ฌ์คํธ ์ปดํ์ผ๋ฌ๋ ์"
"๋ก ๋ค๋ฅธ ์๋์
์์ ์์ฑ๋ ์ฝ๋๋ค์ ํ๋์ ๋ฐ์ด๋๋ฆฌ๋ก ๋ฌถ์ ์ ์์ต๋๋ค."
#: src/cargo/rust-ecosystem.md:46
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:48
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: "
msgstr ""
"์นด๊ณ ์์ฒด๊ฐ ๋งค์ฐ ๊ฐ๋ ฅํ๊ณ ํฌ๊ด์ ์ธ ๋๊ตฌ์์ ์ ๊ทน์ ์ผ๋ก ์๋ฆฌ์ธ์. ์นด๊ณ ๋ ๋ค์"
"๊ณผ ๊ฐ์ ๋ค์ํ ๊ณ ๊ธ ๊ธฐ๋ฅ์ ์ ๊ณตํฉ๋๋ค: "
#: src/cargo/rust-ecosystem.md:49
msgid "Project/package structure"
msgstr "ํ๋ก์ ํธ/ํจํค์ง ๊ตฌ์กฐํ"
#: src/cargo/rust-ecosystem.md:50
msgid "[workspaces](https://doc.rust-lang.org/cargo/reference/workspaces.html)"
msgstr ""
"[์ํฌ์คํ์ด์ค](https://doc.rust-lang.org/cargo/reference/workspaces.html)"
#: src/cargo/rust-ecosystem.md:51
msgid "Dev Dependencies and Runtime Dependency management/caching"
msgstr "๊ฐ๋ฐ/๋ฐํ์ ์ข
์์ฑ ๊ด๋ฆฌ ๋ฐ ์บ์ฑ"
#: src/cargo/rust-ecosystem.md:52
msgid ""
"[build scripting](https://doc.rust-lang.org/cargo/reference/build-scripts."
"html)"
msgstr ""
"[๋น๋ ์คํฌ๋ฆฝํธ](https://doc.rust-lang.org/cargo/reference/build-scripts.html)"
#: src/cargo/rust-ecosystem.md:53
msgid ""
"[global installation](https://doc.rust-lang.org/cargo/commands/cargo-install."
"html)"
msgstr ""
"[์ ์ญ ์ค์น](https://doc.rust-lang.org/cargo/commands/cargo-install.html)"
#: src/cargo/rust-ecosystem.md:54
msgid ""
"It is also extensible with sub command plugins as well (such as [cargo "
"clippy](https://github.com/rust-lang/rust-clippy))."
msgstr ""
"[cargo clippy](https://github.com/rust-lang/rust-clippy)์ ๊ฐ์ ํ์ ํ๋ฌ๊ทธ์ธ"
"์ผ๋ก ํ์ฅ ๊ฐ๋ฅ."
#: src/cargo/rust-ecosystem.md:55
msgid ""
"Read more from the [official Cargo Book](https://doc.rust-lang.org/cargo/)"
msgstr ""
"[๊ณต์ 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 "
"which can be executed through your browser. This makes the setup much easier "
"and 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 exercises. On the last day, we will do a larger exercise which shows you "
"how to 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 "
msgstr "์ฝ๋ ๋ธ๋ก์ ํฌ์ปค์ค๋ฅผ ๋๊ณ "
#: src/cargo/code-samples.md:19
msgid " to execute the code when focus is in the text box."
msgstr " ๋ฅผ ๋๋ฌ ์คํํด ๋ณผ ์ ์์ต๋๋ค."
#: src/cargo/code-samples.md:24
msgid ""
"Most code samples are editable like shown above. A few code samples are not "
"editable for various reasons:"
msgstr ""
"๊ฐ์์์ ๋๋ถ๋ถ์ ์ฝ๋ ์ํ์ ์์ ๊ฐ์ด ์์ ํ ์ ์์ง๋ง ์ผ๋ถ ์ฝ๋๋ ๋ค์๊ณผ ๊ฐ"
"์ ์ด์ ๋ก ์์ ํ ์ ์์ต๋๋ค:"
#: src/cargo/code-samples.md:27
msgid ""
"The embedded playgrounds cannot execute unit tests. Copy-paste the 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 away from "
"the page! This is the reason that the students should solve the exercises "
"using a local Rust installation or via the 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 to first install Rust. Do this by following the [instructions in the "
"Rust Book](https://doc.rust-lang.org/book/ch01-01-installation.html). This "
"should give you a working `rustc` and `cargo`. At the time of writing, the "
"latest stable Rust release has these version numbers:"
msgstr ""
"๋ง์ฝ ๊ฐ์ธ์ฉ ์ปดํจํฐ์์ ์ฝ๋๋ฅผ ์คํํด๋ณด๋ ค๋ฉด ๋จผ์ ๋ฌ์คํธ๋ฅผ ์ค์นํด์ผ ํฉ๋๋ค. "
"[Rust Book](https://doc.rust-lang.org/book/ch01-01-installation.html)์ ์ง์นจ"
"์ ๋ฐ๋ผ `rustc`์ `cargo`๋ฅผ ํจ๊ป ์ค์น ํ์๊ธฐ ๋ฐ๋๋๋ค. ์ค์น ํ ์๋ ์ปค๋งจ๋๋ฅผ "
"ํตํด ๊ฐ ํด์ ๋ฒ์ ์ ํ์ธ ํ ์ ์์ต๋๋ค:"
#: src/cargo/running-locally.md:8
msgid ""
"```shell\n"
"% rustc --version\n"
"rustc 1.69.0 (84c898d65 2023-04-16)\n"
"% cargo --version\n"
"cargo 1.69.0 (6e9a83356 2023-04-12)\n"
"```"
msgstr ""
"```shell\n"
"% rustc --version\n"
"rustc 1.69.0 (84c898d65 2023-04-16)\n"
"% cargo --version\n"
"cargo 1.69.0 (6e9a83356 2023-04-12)\n"
"```"
#: src/cargo/running-locally.md:15
msgid ""
"You can use any later version too since Rust maintains backwards "
"compatibility."
msgstr ""
"์ด ๋ฒ์ ๋ณด๋ค ๋ ์ต์ ์ ๋ฒ์ ์ด์ด๋ ์๊ด ์์ต๋๋ค. ๋ฌ์คํธ๋ ํ์ ํธํ์ฑ์ ์ง์ํฉ"
"๋๋ค."
#: src/cargo/running-locally.md:17
msgid ""
"With this in place, follow these steps to build a Rust binary from one of "
"the examples in this training:"
msgstr ""
"์ ์์ ์ผ๋ก ์ค์น๊ฐ ๋์์ผ๋ฉด, ๊ฐ์ ์์ ์ค ํ๋๋ฅผ ๋ฌ์คํธ ๋ฐ์ด๋๋ฆฌ๋ก ๋น๋ํด ๋ด
์"
"๋ค:"
#: src/cargo/running-locally.md:20
msgid "Click the \"Copy to clipboard\" button on the example you want to copy."
msgstr "์์ ๋ธ๋ก์ ์๋ \"Copy to clipboard\" ๋ฒํผ์ ํด๋ฆญํด์ ๋ณต์ฌํฉ๋๋ค."
#: src/cargo/running-locally.md:22
msgid ""
"Use `cargo new exercise` to create a new `exercise/` directory for your code:"
msgstr ""
"ํฐ๋ฏธ๋์์ `cargo new exercise`๋ฅผ ์
๋ ฅํด์ ์๋ก์ด `exercise/` ํด๋๋ฅผ ๋ง๋ญ๋"
"๋ค:"
#: src/cargo/running-locally.md:24
msgid ""
"```shell\n"
"$ cargo new exercise\n"
" Created binary (application) `exercise` package\n"
"```"
msgstr ""
"```shell\n"
"$ cargo new exercise\n"
" Created binary (application) `exercise` package\n"
"```"
#: src/cargo/running-locally.md:29
msgid ""
"Navigate into `exercise/` and use `cargo run` to build and run your binary:"
msgstr "`exercise/` ํด๋๋ก ์ด๋ํ ํ, `cargo run` ์ปค๋งจ๋๋ก ์ฝ๋๋ฅผ ์คํํฉ๋๋ค:"
#: src/cargo/running-locally.md:31
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 ""
"```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"
"```"
#: src/cargo/running-locally.md:40
msgid ""
"Replace the boiler-plate code in `src/main.rs` with your own code. For "
"example, using the example on the previous page, make `src/main.rs` look like"
msgstr ""
"`src/main.rs`์ ์ฝ๋๋ฅผ ์์ฑํฉ๋๋ค. ์๋ฅผ ๋ค์ด ์ด์ ํ์ด์ง์ ์์ค๋ฅผ ์๋์ ๊ฐ"
"์ด `src/main.rs`์ ์์ฑํฉ๋๋ค"
#: src/cargo/running-locally.md:43
msgid ""
"```rust\n"
"fn main() {\n"
" println!(\"Edit me!\");\n"
"}\n"
"```"
msgstr ""
"```rust\n"
"fn main() {\n"
" println!(\"Edit me!\");\n"
"}\n"
"```"
#: src/cargo/running-locally.md:49
msgid "Use `cargo run` to build and run your updated binary:"
msgstr "`cargo run`์ปค๋งจ๋๋ก ์์ค๋ฅผ ๋น๋ํ๊ณ ์คํํฉ๋๋ค:"
#: src/cargo/running-locally.md:51
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 ""
"```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"
"```"
#: src/cargo/running-locally.md:59
msgid ""
"Use `cargo check` to quickly check your project for errors, use `cargo "
"build` to compile it without running it. You will find the output in `target/"
"debug/` for a normal debug build. Use `cargo build --release` to produce an "
"optimized release build in `target/release/`."
msgstr ""
"`cargo check`์ปค๋งจ๋๋ ๋น ๋ฅด๊ฒ ์๋ฌ๋ฅผ ํ์ธํ ์ ์์ต๋๋ค. `cargo build`๋ ์คํ"
"์์ด ์ปดํ์ผ๋ง ํฉ๋๋ค. ์ด ๊ฒฝ์ฐ์ `target/debug/`ํด๋์์ output์ ํ์ธ ํ ์ "
"์์ต๋๋ค. `cargo build --release`์ปค๋งจ๋๋ ๋ฆด๋ฆฌ์ฆ ๋ฒ์ ์ฉ ์ต์ ํ๋ฅผ ์ผ์ ์ปดํ์ผ"
"ํ๋ฉฐ `target/release/`ํด๋์์ ํ์ธ ํ ์ ์์ต๋๋ค."
#: src/cargo/running-locally.md:64
msgid ""
"You can add dependencies for your project by editing `Cargo.toml`. When you "
"run `cargo` commands, it will automatically download and compile missing "
"dependencies for you."
msgstr ""
"`Cargo.toml`ํ์ผ์๋ ์์กด์ฑ ํจํค์ง๋ฅผ ์ถ๊ฐํ ์ ์์ต๋๋ค. `cargo`์ปค๋งจ๋๋ฅผ ์คํ"
"ํ๋ฉด ์๋์ผ๋ก ์์กด์ฑ ํจํค์ง๋ฅผ ๋ค์ด๋ก๋ํ๊ณ ์ปดํ์ผ ๊น์ง ํด ์ค๋๋ค."
#: src/cargo/running-locally.md:72
msgid ""
"Try to encourage the class participants to install Cargo and use a local "
"editor. It will make their life easier since they will have a 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 Rust Fundamentals. We will cover a lot of ground "
"today:"
msgstr "๊ฐ์ ์ฒซ ๋ ์
๋๋ค. ์ค๋ ๋ฐฐ์ธ ๊ฒ์ด ์ฐธ ๋ง์ต๋๋ค:"
#: src/welcome-day-1.md:6
msgid ""
"Basic Rust syntax: variables, scalar and compound types, enums, structs, "
"references, functions, and methods."
msgstr ""
"๋ฌ์คํธ ๊ธฐ๋ณธ ๋ฌธ๋ฒ: ๋ณ์, ์ค์นผ๋ผ / ๋ณตํฉ ํ์
, ์ด๊ฑฐํ, ๊ตฌ์กฐ์ฒด, ์ฐธ์กฐํ, ํจ์์ ๋ฉ"
"์๋."
#: src/welcome-day-1.md:9
msgid ""
"Memory management: stack vs heap, manual memory management, scope-based "
"memory 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."
msgstr "๊ถ๊ธํ ์ ์ด ์์ผ๋ฉด ์ฃผ์ ํ์ง ๋ง๊ณ ์ง๋ฌธ ํด์ผ ํฉ๋๋ค."
#: src/welcome-day-1.md:19
msgid ""
"The class is meant to be interactive and discussions are very much "
"encouraged!"
msgstr "์ด ์์
์ ์ํธ์์ฉ์ด ์ํฉ๋๋ค. ํ ๋ก ์ ๋ง์ค์ด์ง ๋ง์ธ์!"
#: src/welcome-day-1.md:20
msgid ""
"As an instructor, you should try to keep the discussions relevant, i.e., "
"keep the discussions related to how Rust does things vs some other "
"language. It can be hard to find the right balance, but err on the side of "
"allowing discussions since they engage people much more than one-way "
"communication."
msgstr ""
"๊ฐ์ฌ๋ก์ ํ ๋ก ์ด ์๊ธธ๋ก ์์ง ์๊ฒ ์ฃผ์ํ์ธ์. ์๋ฅผ ๋ค์ด ๋ฌ์คํธ์ ๋ค๋ฅธ ์ธ์ด๋ค"
"์ ๋น๊ตํ๋ค๋ ์ง ํ๋ ๊ฒ์ ์ข์ต๋๋ค. ์ ์ ํ ๊ท ํ์ ์ฐพ๊ธฐ ์ ๋งคํ ๊ฒฝ์ฐ๋ผ๋ฉด ํ ๋ก "
"์ ํ์ฉํ๋ ์ชฝ์ด ์ผ๋ฐฉ์ ์ธ ๊ฐ์๋ณด๋ค๋ ๋ ๋ง์ ์ฌ๋๋ค์ ์ฐธ์ฌ๋ฅผ ์ด๋์ด ๋ผ ์ ์"
"์ต๋๋ค."
#: src/welcome-day-1.md:24
msgid ""
"The questions will likely mean that we talk about things ahead of the slides."
msgstr "์ง๋ฌธ์ด ์ฌ๋ผ์ด๋๋ณด๋ค ์์๊ฐ๋ ๊ด์ฐฎ์ต๋๋ค."
#: src/welcome-day-1.md:25
msgid ""
"This is perfectly okay! Repetition is an important part of learning. "
"Remember that the slides are just a support and you are free to skip them as "
"you like."
msgstr ""
"ํ์ต์ ์์ด์ ๋ฐ๋ณต์ ๋งค์ฐ ์ค์ํฉ๋๋ค. ์ฌ๋ผ์ด๋๋ ๊ทธ์ ๋์์ ์ค ๋ฟ, ์ํ๋ ๋"
"๋ก ๊ฑด๋๋์ด๋ ๋ฉ๋๋ค."
#: 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 about the famous borrow checker. The way Rust handles memory is a "
"major feature 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 "
"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,"
msgstr "์ค์ : 9:00 ~ 12:00,"
#: src/welcome-day-1.md:37
msgid "Afternoon: 13:00 to 16:00."
msgstr "์คํ: 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, we recommend a break every hour!"
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]"
"(https://blog.rust-lang.org/2015/05/15/Rust-1.0.html):"
msgstr ""
"๋ฌ์คํธ๋ 2015๋
์ [๋ฒ์ 1.0](https://blog.rust-lang.org/2015/05/15/Rust-1.0."
"html)์ ๋ฆด๋ฆฌ์ฆ ํ ์๋ก์ด ํ๋ก๊ทธ๋จ ์ธ์ด์
๋๋ค:"
#: src/welcome-day-1/what-is-rust.md:5
msgid "Rust is a statically compiled language in a similar role as C++"
msgstr "๋ฌ์คํธ๋ C++์ ์ ์ฌํ ์ ์ ์ปดํ์ผ ์ธ์ด์
๋๋ค"
#: src/welcome-day-1/what-is-rust.md:6
msgid "`rustc` uses LLVM as its backend."
msgstr "`rustc`๋ LLVM์ ๋ฐฑ์๋๋ก ์ฌ์ฉํฉ๋๋ค."
#: src/welcome-day-1/what-is-rust.md:7
msgid ""
"Rust supports many [platforms and architectures](https://doc.rust-lang.org/"
"nightly/rustc/platform-support.html):"
msgstr "๋ฌ์คํธ๋ ๋ค์ํ ํ๋ซํผ๊ณผ ์ํคํ
์ณ๋ฅผ ์ง์ํฉ๋๋ค:"
#: src/welcome-day-1/what-is-rust.md:9
msgid "x86, ARM, WebAssembly, ..."
msgstr "x86, ARM, WebAssembly, ..."
#: src/welcome-day-1/what-is-rust.md:10
msgid "Linux, Mac, Windows, ..."
msgstr "Linux, Mac, Windows, ..."
#: src/welcome-day-1/what-is-rust.md:11
msgid "Rust is used for a wide range of devices:"
msgstr "๋ฌ์คํธ๋ ๋ค์ํ ์ฅ์น์์ ์ฌ์ฉ๋ ์ ์์ต๋๋ค:"
#: src/welcome-day-1/what-is-rust.md:12
msgid "firmware and boot loaders,"
msgstr "ํ์จ์ด์ ๋ถํธ๋ก๋(์๋ฒ ๋๋)"
#: src/welcome-day-1/what-is-rust.md:13
msgid "smart displays,"
msgstr "์ค๋งํธ ๋์คํ๋ ์ด,"
#: src/welcome-day-1/what-is-rust.md:14
msgid "mobile phones,"
msgstr "์ค๋งํธํฐ,"
#: src/welcome-day-1/what-is-rust.md:15
msgid "desktops,"
msgstr "๋ฐ์คํฌํ,"
#: src/welcome-day-1/what-is-rust.md:16
msgid "servers."
msgstr "์๋ฒ."
#: 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."
msgstr "๋์ ์ ์ฐ์ฑ."
#: src/welcome-day-1/what-is-rust.md:24
msgid "High level of control."
msgstr "๋์ ์์ค์ ์ ์ด."
#: src/welcome-day-1/what-is-rust.md:25
msgid ""
"Can be scaled down to very constrained devices such as microcontrollers."
msgstr "๋ง์ดํฌ๋ก์ปจํธ๋กค๋ฌ ๊ฐ์ ๋งค์ฐ ์ ํ๋ ์ฅ์น๋ก ์ค์ผ์ผ ๋ค์ด ๊ฐ๋ฅ."
#: src/welcome-day-1/what-is-rust.md:26
msgid "Has no runtime or garbage collection."
msgstr "๋ณ๋์ ๋ฐํ์์ ํ์๋ก ํ์ง ์์ผ๋ฉฐ, ๊ฐ๋น์ง ์ปฌ๋ ์
๋ ์์."
#: src/welcome-day-1/what-is-rust.md:27
msgid "Focuses on reliability and safety without sacrificing performance."
msgstr "์ฑ๋ฅ์ ํํํ์ง ์์ผ๋ฉด์๋ ์์ ์ฑ๊ณผ ์์ ์ ์ค์ ์ ๋ ."
#: src/hello-world.md:3
msgid ""
"Let us jump into the simplest possible Rust program, a classic Hello World "
"program:"
msgstr ""
"๊ฐ์ฅ ๊ฐ๋จํ ๋ฌ์คํธ ํ๋ก๊ทธ๋จ์ผ๋ก์จ, ๊ณ ์ ์ ์ธ Hello World ๋ฅผ ์์ฑํด ๋ณด๊ฒ ์ต๋๋ค:"
#: src/hello-world.md:6
msgid ""
"```rust,editable\n"
"fn main() {\n"
" println!(\"Hello ๐!\");\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn main() {\n"
" println!(\"Hello ๐!\");\n"
"}\n"
"```"
#: src/hello-world.md:12
msgid "What you see:"
msgstr "ํ์ธํ ์ ์๋ ๊ฒ๋ค:"
#: src/hello-world.md:14
msgid "Functions are introduced with `fn`."
msgstr "ํจ์๋ `fn`์ผ๋ก ์ ์ธํฉ๋๋ค."
#: src/hello-world.md:15
msgid "Blocks are delimited by curly braces like in C and C++."
msgstr "C/C++ ์ ๋ง์ฐฌ๊ฐ์ง๋ก ์ค๊ดํธ`{}`๋ก ๋ธ๋ก์ ํ์ํฉ๋๋ค."
#: src/hello-world.md:16
msgid "The `main` function is the entry point of the program."
msgstr "`main` ํจ์๋ ํ๋ก๊ทธ๋จ ์ง์
์ ์
๋๋ค."
#: src/hello-world.md:17
msgid "Rust has hygienic macros, `println!` is an example of this."
msgstr ""
"๋ฌ์คํธ๋ ๋๋ํ ๋งคํฌ๋ก(hygienic macros) ์์คํ
์ ๊ฐ์ง๊ณ ์์ต๋๋ค. `println!`"
"๋ ๊ทธ ์์์
๋๋ค."
#: src/hello-world.md:18
msgid "Rust strings are UTF-8 encoded and can contain any Unicode character."
msgstr ""
"๋ฌ์คํธ์ ๋ฌธ์์ด์ UTF-8๋ก ์ธ์ฝ๋ฉ๋๋ฉฐ ์ด๋ชจ์ง์ ๊ฐ์ ์ ๋์ฝ๋ ๋ฌธ์๋ฅผ ํฌํจํ ์ "
"์์ต๋๋ค."
#: src/hello-world.md:22
msgid ""
"This slide tries to make the students comfortable with Rust code. They will "
"see a ton of it over the next three days so we start small with something "
"familiar."
msgstr ""
"์ด ์ฌ๋ผ์ด๋๋ ํ์๋ค์ด ๋ฌ์คํธ ์ฝ๋์ ์ต์ํด์ง๊ธฐ ์ํด ์์ฑ๋์์ต๋๋ค. ์์ผ๋ก 3"
"์ผ ๋์ ๋ง์ ์ฝ๋๋ฅผ ์ ํ ๊ฒ์ด๊ธฐ ๋๋ฌธ์ ์ฐ์ ์น์ํ ์ฝ๋๋ถํฐ ์์ํฉ๋๋ค."
#: src/hello-world.md:27
msgid ""
"Rust is very much like other languages in the C/C++/Java tradition. It is "
"imperative and it doesn't try to reinvent things unless 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 "
"arguments (no function [overloading](basic-syntax/functions-interlude.md))."
msgstr ""
"๋ฌ์คํธ๋ ์ธ์์ ๊ฐ์๋ฅผ ์ฌ์ ์ ์ง์ ํ ์ ์๋ ์ํฉ์์ ํจ์ [์ค๋ฒ๋ก๋ฉ](basic-"
"syntax/functions-interlude.md)๋์ ๋งคํฌ๋ก๋ฅผ ์ฌ์ฉํฉ๋๋ค."
#: src/hello-world.md:36
msgid ""
"Macros being 'hygienic' means they don't accidentally capture identifiers "
"from the scope they are used in. Rust macros are actually only [partially "
"hygienic](https://veykril.github.io/tlborm/decl-macros/minutiae/hygiene."
"html)."
msgstr ""
"๋๋ํ ๋งคํฌ๋ก(hygienic macro)๋ ๋งคํฌ๋ก๊ฐ ์ฌ์ฉ๋๋ ์ค์ฝํ์์ ์๋์น ์๊ฒ ๋ณ์"
"๋ฅผ ๊ฐ๋ก์ฑ์ง ์์ต๋๋ค. ์ฌ์ค ๋ฌ์คํธ ๋งคํฌ๋ก๋ ์์ ํ hygenicํ์ง๋ ์์ต๋๋ค. [๋ง"
"ํฌ](https://veykril.github.io/tlborm/decl-macros/minutiae/hygiene.html)๋ฅผ ์ฐธ"
"๊ณ ํ์ธ์."
#: src/hello-world.md:40
msgid ""
"Rust is multi-paradigm. For example, it has powerful [object-oriented "
"programming features](https://doc.rust-lang.org/book/ch17-00-oop.html), and, "
"while it is not a functional language, it includes a range of [functional "
"concepts](https://doc.rust-lang.org/book/ch13-00-functional-features.html)."
msgstr ""
"๋ฌ์คํธ๋ ๋ฉํฐ ํจ๋ฌ๋ค์ ์ธ์ด์
๋๋ค. ์๋ฅผ ๋ค์ด ๊ฐ๋ ฅํ [๊ฐ์ฒด ์งํฅ ํ๋ก๊ทธ๋๋ฐ ๊ธฐ"
"๋ฅ](https://doc.rust-lang.org/book/ch17-00-oop.html)์ ์ง์ํ๊ธฐ๋ ํ๋ฉฐ, ํจ์"
"ํ ์ธ์ด๋ก ๋ถ๋ฅ๋์ง๋ ์์ง๋ง ํญ๋์ ๋ฒ์์ [ํจ์ํ ์ปจ์
](https://doc.rust-"
"lang.org/book/ch13-00-functional-features.html)์ ์ง์ํฉ๋๋ค."
#: 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 always end, but this is not yet proved. Edit the code and play with "
"different inputs."
msgstr ""
"์ด ์ฝ๋๋ ์ฝ๋ผ์ธ ์ถ์ธก(Collatz conjecture)์ผ๋ก ๊ตฌํ๋ฉ๋๋ค: ๋ฐ๋ณต๋ฌธ์ด ์ธ์ ๋ ์ข
"
"๋ฃ๋ ๊ฒ์ด๋ผ๊ณ ๋ฏฟ์ง๋ง ์ฆ๋ช
๋ ๊ฒ์ ์๋๋๋ค. ์ฝ๋๋ฅผ ์์ ํ๊ณ ์คํํด ๋ณด์๊ธฐ ๋ฐ๋"
"๋๋ค."
#: src/hello-world/small-example.md:29
msgid ""
"Explain that all variables are statically typed. Try removing `i32` to "
"trigger 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 "
"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 "
"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` which has the rules of the formatting mini-language. It's important "
"that the students become familiar with searching in the standard library."
msgstr ""
"ํ์๋ค์๊ฒ ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ ์ด๋ ์๋์ง ์๋ ค ์ฃผ๊ณ ๋, `print!`๊ฐ ์ง์ํ๋ ํฌ"
"๋งทํ
์ธ์ด์ ๋ฌธ๋ฒ์ ์๊ธฐ ์ํด `std::fmt`๋ฅผ ๊ฒ์ํด์ผ ํ๋ค๋ ๊ฒ์ ๊ฐ๋ฅด์น์ธ์.ํ"
"์๋ค์ด ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๊ฒ์ ๊ธฐ๋ฅ์ ์ต์ํด ์ง๋๋ก ํ๋ ๊ฒ์ด ์ค์ํฉ๋๋ค."
#: src/hello-world/small-example.md:44
msgid ""
"In a shell `rustup doc std::fmt` will open a browser on the local std::fmt "
"documentation"
msgstr ""
"์์์ `rustup doc std::fmt`๋ฅผ ์ํํ๋ฉด ๋ก์ปฌ ๋ธ๋ผ์ฐ์ ๋ก `std:fmt`์ ๋ํ ๋ฌธ"
"์๋ฅผ ๋ณด์ฌ์ค๋๋ค"
#: src/why-rust.md:3
msgid "Some unique selling points of Rust:"
msgstr "๋ฌ์คํธ๋ง์ ๋
ํนํ ์ธ์ผ์ฆ ํฌ์ธํธ(์ฅ์ ):"
#: src/why-rust.md:5
msgid "Compile time memory safety."
msgstr "์ปดํ์ผ ์ ๋ฉ๋ชจ๋ฆฌ ์์ ์ด ๋ณด์ฅ๋จ."
#: src/why-rust.md:6
msgid "Lack of undefined runtime behavior."
msgstr "์ ์๋์ง ์์ ๋ฐํ์ ๋์์ด ์์."
#: src/why-rust.md:7
msgid "Modern language features."
msgstr "ํ๋์ ์ธ ์ธ์ด ๊ธฐ๋ฅ."
#: src/why-rust.md:11
msgid ""
"Make sure to ask the class which languages they have experience with. "
"Depending 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_ "
"via the borrow checker. You get performance like in C and C++, but you don't "
"have the memory unsafety issues. In addition, you get a modern language with "
"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 as in those languages, plus a similar high-level language feeling. In "
"addition you get fast and predictable performance like C and C++ (no garbage "
"collector) as well as access to low-level hardware (should you need it)"
msgstr ""
"Java, Go, Python, JavaScript: ์ด ์ธ์ด๋ค๊ณผ ๋์ผํ ๋ฉ๋ชจ๋ฆฌ ์์ ์ฑ๊ณผ ํจ๊ป, 'ํ์ด"
"๋ ๋ฒจ'์ธ์ด์ ๋๋์ ๋๋ ์ ์์ต๋๋ค. ๊ฑฐ๊ธฐ์ ๋ํด, ๊ฐ๋น์ง ์ปฌ๋ ํฐ๊ฐ ์๋ C/C+"
"+์ ์ ์ฌํ ์์ค์ ๋น ๋ฅด๊ณ ์์ธก ๊ฐ๋ฅํ ์ฑ๋ฅ์ ๊ธฐ๋ํ ์ ์์ต๋๋ค. ๊ทธ๋ฆฌ๊ณ ํ์"
"ํ ๊ฒฝ์ฐ ์ ์์ค ํ๋์จ์ด๋ฅผ ๋ค๋ฃจ๋ ์ฝ๋๋ก ์์ฑํ ์ ์์ต๋๋ค."
#: 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."
msgstr "์ด๊ธฐํ๋์ง ์๋ ๋ณ์๊ฐ ์์ต๋๋ค."
#: src/why-rust/compile-time.md:6
msgid "No memory leaks (_mostly_, see notes)."
msgstr "๋ฉ๋ชจ๋ฆฌ ๋์ถ ์์(_๊ฑฐ์_. ๊ฐ์์ฐธ์กฐ๋
ธํธ ์ฐธ๊ณ .)"
#: src/why-rust/compile-time.md:7
msgid "No double-frees."
msgstr "๋ฉ๋ชจ๋ฆฌ ์ด์ค ํด์ ๊ฐ ์์ฒ์ ์ผ๋ก ๋ถ๊ฐ๋ฅ ํฉ๋๋ค."
#: src/why-rust/compile-time.md:8
msgid "No use-after-free."
msgstr "๋ฉ๋ชจ๋ฆฌ ํด์ ํ ์ฌ์ฉ์ด ์์ฒ์ ์ผ๋ก ๋ถ๊ฐ๋ฅ ํฉ๋๋ค."
#: src/why-rust/compile-time.md:9
msgid "No `NULL` pointers."
msgstr "`NULL`ํฌ์ธํฐ๋ ์์ต๋๋ค."
#: src/why-rust/compile-time.md:10
msgid "No forgotten locked mutexes."
msgstr "๋ฎคํ
์ค๋ฅผ ์ ๊ถ ๋๊ณ ์ฌ๋ ๊ฒ์ ์๋ ์ค์๋ฅผ ํ ์ ์์ต๋๋ค."
#: src/why-rust/compile-time.md:11
msgid "No data races between threads."
msgstr "์ค๋ ๋๊ฐ ๋ฐ์ดํฐ ๋ ์ด์ค๋ฅผ ๋ง์์ค๋๋ค."
#: src/why-rust/compile-time.md:12
msgid "No iterator invalidation."
msgstr "๋ฐ๋ณต์๊ฐ ๊ฐ์๊ธฐ ๋ฌดํจํ ๋๋ ๊ฒฝ์ฐ๊ฐ ์์ต๋๋ค."
#: src/why-rust/compile-time.md:16
msgid ""
"It is possible to produce memory leaks in (safe) Rust. Some examples are:"
msgstr ""
"(์์ ํ) ๋ฌ์คํธ์์๋ ๋ฉ๋ชจ๋ฆฌ ๋์ถ์ด ๋ฐ์ํ ์ ์๋ ๋ช ๊ฐ์ง ๊ฒฝ์ฐ๊ฐ ์์ต๋๋ค:"
#: src/why-rust/compile-time.md:19
msgid ""
"You can use [`Box::leak`](https://doc.rust-lang.org/std/boxed/struct.Box."
"html#method.leak) to leak a pointer. A use of this could be to get runtime-"
"initialized and runtime-sized static variables"
msgstr ""
"[`Box::leak`](https://doc.rust-lang.org/std/boxed/struct.Box.html#method."
"leak)์ ์ด์ฉํ์ฌ ํฌ์ธํฐ๋ฅผ ์๋์ ์ผ๋ก ๋์ถ์ํฌ ์ ์์ต๋๋ค. ์ด๋ฅผ ์ด์ฉํด์ ๋ฐํ"
"์์ด ์์ฑํ๊ณ ๋ฐํ์์ด ํฌ๊ธฐ๋ฅผ ์ ํ ์ ์ ๋ณ์๋ฅผ ๊ฐ์ ธ์ฌ ์ ์์ต๋๋ค"
#: src/why-rust/compile-time.md:21
msgid ""
"You can use [`std::mem::forget`](https://doc.rust-lang.org/std/mem/fn.forget."
"html) to make the compiler \"forget\" about a value (meaning the destructor "
"is never run)."
msgstr ""
"[`std::mem::forget`](https://doc.rust-lang.org/std/mem/fn.forget.html)์ ์ฌ์ฉ"
"ํ์ฌ ์ปดํ์ผ๋ฌ๊ฐ ๊ฐ์ ๋ํด \"์๋๋ก\" ๋ง๋ค ์ ์์ต๋๋ค(์๋ฉธ์๊ฐ ์คํ๋์ง ์์"
"์ ์๋ฏธํฉ๋๋ค)."
#: src/why-rust/compile-time.md:23
msgid ""
"You can also accidentally create a [reference cycle](https://doc.rust-lang."
"org/book/ch15-06-reference-cycles.html) with `Rc` or `Arc`."
msgstr ""
"`Rc` ๋๋ `Arc`๋ฅผ ์ฌ์ฉํ์ฌ ์ค์๋ก [์ํ์ฐธ์กฐ](https://doc.rust-lang.org/book/"
"ch15-06-reference-cycles.html)๋ฅผ ์์ฑํ ์๋ ์์ต๋๋ค."
#: src/why-rust/compile-time.md:25
msgid ""
"In fact, some will consider infinitely populating a collection a memory leak "
"and Rust does not protect from those."
msgstr ""
"์ปฌ๋ ์
์ ๋ฌดํ์ ์ฑ์ฐ๋ ๊ฒ์ ๋ฉ๋ชจ๋ฆฌ ๋์ถ๋ก ๊ฐ์ฃผํ ์๋ ์์ง๋ง, ๋ฌ์คํธ๋ ์ด๋ฅผ "
"๋ณดํธํ์ง ๋ชปํฉ๋๋ค."
#: src/why-rust/compile-time.md:28
msgid ""
"For the purpose of this course, \"No memory leaks\" should be understood as "
"\"Pretty much no _accidental_ memory leaks\"."
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."
msgstr "๋ฐฐ์ด ์ ๊ทผ์ ๊ฒฝ๊ณ ์ฒดํฌ."
#: src/why-rust/runtime.md:6
msgid "Integer overflow is defined (panic or wrap-around)."
msgstr "์ ์ํ ํ์
์ ๋ณ์์์ ์ค๋ฒํ๋ก์ฐ ๋ฐ์์ ๋์์ด ์ ์ ์๋์ด์์ต๋๋ค."
#: src/why-rust/runtime.md:12
msgid ""
"Integer overflow is defined via the [`overflow-checks`](https://doc.rust-"
"lang.org/rustc/codegen-options/index.html#overflow-checks) compile-time "
"flag. If enabled, the program will panic (a controlled crash of the "
"program), otherwise you get wrap-around semantics. By default, you get "
"panics in debug mode (`cargo build`) and wrap-around in release mode (`cargo "
"build --release`)."
msgstr ""
"์ ์ํ ์ค๋ฒํ๋ก์ฐ๋ [`overflow-checks`](https://doc.rust-lang.org/rustc/"
"codegen-options/index.html#overflow-checks) ์ปดํ์ผ ํ์ ํ๋๊ทธ๋ฅผ ํตํด ์ ์๋ฉ"
"๋๋ค. ์ด ํ๋๊ทธ๊ฐ ์ผ์ง๋ฉด, ํ๋ก๊ทธ๋จ์ ์ ์ํ ์ค๋ฒํ๋ก์ฐ ๋ฐ์์ panic (ํ๋ก๊ทธ๋จ"
"์ ํฌ๋์ ์ํค๋ ์ ์ ์๋ ๋ฐฉ๋ฒ) ํฉ๋๋ค. ์ด ํ๋๊ทธ๊ฐ ๊บผ์ง๋ฉด, ์ค๋ฒํ๋ก์ฐ๋ "
"wrap-around ๊ฐ ๋ฉ๋๋ค. ๊ธฐ๋ณธ์ ์ผ๋ก ๋๋ฒ๊ทธ ๋ชจ๋(`cargo build`)์์๋ ํจ๋์ด, ๋ฆด"
"๋ฆฌ์ฆ ๋ชจ๋(`cargo build --release`)์์๋ wrap-around๊ฐ ๋ฐ์ํฉ๋๋ค."
#: src/why-rust/runtime.md:18
msgid ""
"Bounds checking cannot be disabled with a compiler flag. It can also not be "
"disabled directly with the `unsafe` keyword. However, `unsafe` allows you to "
"call functions such as `slice::get_unchecked` which does not do bounds "
"checking."
msgstr ""
"์ปดํ์ผ ํ๋๊ทธ๋ฅผ ์ฌ์ฉํ์ฌ ๊ฒฝ๊ณ์ฒดํฌ๋ฅผ ๋ฌด๋ ฅํ ํ ์ ์์ต๋๋ค. `unsafe`๋ฅผ ์ฌ์ฉํ"
"๋๋ผ๋ ๋ง์ฐฌ๊ฐ์ง์
๋๋ค. ํ์ง๋ง `unsafe`์์ ํธ์ถ ๊ฐ๋ฅํ `slice::get_unchecked`"
"๊ฐ์ ํจ์๋ ๊ฒฝ๊ณ ๊ฒ์ฌ๋ฅผ ์ํํ์ง ์์ต๋๋ค."
#: src/why-rust/modern.md:3
msgid "Rust is built with all the experience gained in the last decades."
msgstr ""
"๋ฌ์คํธ๋ ์ง๋ ์์ญ๋
๊ฐ์ ๋ชจ๋ (ํ๋ก๊ทธ๋๋ฐ ์ธ์ด๋ค์) ๊ฒฝํ์ผ๋ก ๋ง๋ค์ด์ก์ต๋๋ค."
#: src/why-rust/modern.md:5
msgid "Language Features"
msgstr "์ธ์ด์ ํน์ง"
#: src/why-rust/modern.md:7
msgid "Enums and pattern matching."
msgstr "์ด๊ฑฐํ๊ณผ ํจํด ๋งค์นญ."
#: src/why-rust/modern.md:8
msgid "Generics."
msgstr "์ ๋ค๋ฆญ."
#: src/why-rust/modern.md:9
msgid "No overhead FFI."
msgstr "FFI ๋ฐํ์ ์ค๋ฒํค๋ ์์."
#: src/why-rust/modern.md:10
msgid "Zero-cost abstractions."
msgstr "๋น์ฉ์ด ๋ค์ง ์๋ ์ถ์ํ."
#: src/why-rust/modern.md:12
msgid "Tooling"
msgstr "๋๊ตฌ๋ค"
#: src/why-rust/modern.md:14
msgid "Great compiler errors."
msgstr "์น์ ํ ์ปดํ์ผ๋ฌ ์ค๋ฅ๋ฉ์์ง."
#: src/why-rust/modern.md:15
msgid "Built-in dependency manager."
msgstr "๋ด์ฅ ์ข
์์ฑ ๊ด๋ฆฌ์."
#: src/why-rust/modern.md:16
msgid "Built-in support for testing."
msgstr "๋ด์ฅ ํ
์คํธ ์ง์."
#: src/why-rust/modern.md:17
msgid "Excellent Language Server Protocol support."
msgstr "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' "
"for higher-level programming constructs with memory or CPU. For example, "
"writing a loop using `for` should result in roughly the same low level "
"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 "
"known as 'sum types', which allow the type system to express things like "
"`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 "
"ignore lengthy compiler output. The Rust compiler is significantly more "
"talkative than other compilers. It will often provide you with _actionable_ "
"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, "
"and Go. Rust does not come with several things you might consider standard "
"and essential:"
msgstr ""
"๋ฌ์คํธ ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ Java, Python์ด๋ Go์ ๊ฐ์ ์ธ์ด์ ๋นํด์ ๊ท๋ชจ๊ฐ ์์ต"
"๋๋ค. ๋น์ฐํ ํฌํจ๋์ด์ผ ํ๋ค๊ณ ์๊ฐํ ์๋ ์๋ ์๋์ ๊ฐ์ ๊ฒ๋ค์ด ๋ฌ์คํธ์ "
"ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์์ต๋๋ค:"
#: src/why-rust/modern.md:41
msgid "a random number generator, but see [rand](https://docs.rs/rand/)."
msgstr ""
"๋์ ์์ฑ๊ธฐ, ํ์ง๋ง [rand](https://docs.rs/rand/)๋ฌธ์๋ฅผ ์ฐธ์กฐํ์๊ธฐ ๋ฐ๋๋๋ค."
#: src/why-rust/modern.md:42
msgid "support for SSL or TLS, but see [rusttls](https://docs.rs/rustls/)."
msgstr ""
"SSL ๋๋ TLS์ง์, ํ์ง๋ง [rusttls](https://docs.rs/rustls/)๋ฌธ์๋ฅผ ์ฐธ์กฐํ์๊ธฐ "
"๋ฐ๋๋๋ค."
#: src/why-rust/modern.md:43
msgid "support for JSON, but see [serde_json](https://docs.rs/serde_json/)."
msgstr ""
"JSON ์ง์, ํ์ง๋ง [serde_json](https://docs.rs/serde_json/) ๋ฌธ์๋ฅผ ์ฐธ์กฐํ์"
"๊ธฐ ๋ฐ๋๋๋ค."
#: src/why-rust/modern.md:45
msgid ""
"The reasoning behind this is that functionality in the standard library "
"cannot go away, so it has to be very stable. For the examples above, the "
"Rust community is still working on finding the best solution --- and perhaps "
"there 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 it trivial to download and compile third-party crates. A consequence "
"of this 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 help with this by letting you compare health metrics for crates to "
"find a good and trusted one."
msgstr ""
"์ข์ ์๋ํํฐ ํฌ๋ ์ดํธ๋ฅผ ์ฐพ๋ ๊ฒ์ ์ด๋ ต์ต๋๋ค. ์ ๊ฐ์ ์ฌ์ด"
"ํธ๊ฐ ์ ๋ขฐํ ์ ์๋ ์ข์ ํฌ๋ ์ดํธ๋ฅผ ๋น๊ตํ์ฌ ์ฐพ๋๋ฐ ์ข์ต๋๋ค."
#: src/why-rust/modern.md:58
msgid ""
"[rust-analyzer](https://rust-analyzer.github.io/) is a well supported LSP "
"implementation used in major IDEs and text editors."
msgstr ""
"[rust-analyzer](https://rust-analyzer.github.io/)๋ ์ฃผ์ IDE๋ ํ
์คํธ ์๋ํฐ"
"์์ ์ฌ์ฉ๋๋ ๋ฌ์คํธ์ฉ LSP์๋ฒ ์
๋๋ค."
#: 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."
msgstr "๋ธ๋ก๊ณผ ๋ฒ์๋ ์ค๊ดํธ`{}`๋ก ํํํฉ๋๋ค."
#: src/basic-syntax.md:6
msgid ""
"Line comments are started with `//`, block comments are delimited by `/* ... "
"*/`."
msgstr "์ธ๋ผ์ธ ์ฃผ์์ `//`, ๋ธ๋ก ์ฃผ์์ `/* ... */`๋ก ์ฌ์ฉํฉ๋๋ค."
#: src/basic-syntax.md:8
msgid "Keywords like `if` and `while` work the same."
msgstr "`if`๋ `while`๊ฐ์ ํค์๋๋ ๋์ผํฉ๋๋ค."
#: src/basic-syntax.md:9
msgid "Variable assignment is done with `=`, comparison is done with `==`."
msgstr "๋ณ์ ํ ๋น์ `=`, ๋น๊ต๋ `==`๋ฅผ ์ฌ์ฉํฉ๋๋ค."
#: src/basic-syntax/scalar-types.md:3 src/basic-syntax/compound-types.md:3
#: src/exercises/day-3/safe-ffi-wrapper.md:16
msgid "Types"
msgstr "ํ์
"
#: src/basic-syntax/scalar-types.md:3 src/basic-syntax/compound-types.md:3
msgid "Literals"
msgstr "๋ฆฌํฐ๋ด ๊ฐ"
#: src/basic-syntax/scalar-types.md:5
msgid "Signed integers"
msgstr "๋ถํธ์๋ ์ ์"
#: src/basic-syntax/scalar-types.md:5
msgid "`i8`, `i16`, `i32`, `i64`, `i128`, `isize`"
msgstr "`i8`, `i16`, `i32`, `i64`, `i128`, `isize`"
#: src/basic-syntax/scalar-types.md:5
msgid "`-10`, `0`, `1_000`, `123_i64`"
msgstr "`-10`, `0`, `1_000`, `123_i64`"
#: src/basic-syntax/scalar-types.md:6
msgid "Unsigned integers"
msgstr "๋ถํธ์๋ ์ ์"
#: src/basic-syntax/scalar-types.md:6
msgid "`u8`, `u16`, `u32`, `u64`, `u128`, `usize`"
msgstr "`u8`, `u16`, `u32`, `u64`, `u128`, `usize`"
#: src/basic-syntax/scalar-types.md:6
msgid "`0`, `123`, `10_u16`"
msgstr "`0`, `123`, `10_u16`"
#: src/basic-syntax/scalar-types.md:7
msgid "Floating point numbers"
msgstr "๋ถ๋์์"
#: src/basic-syntax/scalar-types.md:7
msgid "`f32`, `f64`"
msgstr "`f32`, `f64`"
#: src/basic-syntax/scalar-types.md:7
msgid "`3.14`, `-10.0e20`, `2_f32`"
msgstr "`3.14`, `-10.0e20`, `2_f32`"
#: src/basic-syntax/scalar-types.md:8
msgid "Strings"
msgstr "๋ฌธ์์ด"
#: src/basic-syntax/scalar-types.md:8
msgid "`&str`"
msgstr "`&str`"
#: src/basic-syntax/scalar-types.md:8
msgid "`\"foo\"`, `\"two\\nlines\"`"
msgstr "`\"foo\"`, `\"two\\nlines\"`"
#: src/basic-syntax/scalar-types.md:9
msgid "Unicode scalar values"
msgstr "์ ๋์ฝ๋ ๋ฌธ์"
#: src/basic-syntax/scalar-types.md:9
msgid "`char`"
msgstr "`char`"
#: src/basic-syntax/scalar-types.md:9
msgid "`'a'`, `'ฮฑ'`, `'โ'`"
msgstr "`'a'`, `'ฮฑ'`, `'โ'`"
#: src/basic-syntax/scalar-types.md:10
msgid "Booleans"
msgstr "๋ถ๋ฆฌ์ธ"
#: src/basic-syntax/scalar-types.md:10
msgid "`bool`"
msgstr "`bool`"
#: src/basic-syntax/scalar-types.md:10
msgid "`true`, `false`"
msgstr "`true`, `false`"
#: src/basic-syntax/scalar-types.md:12
msgid "The types have widths as follows:"
msgstr "๊ฐ ํ์
์ ํฌ๊ธฐ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:"
#: src/basic-syntax/scalar-types.md:14
msgid "`iN`, `uN`, and `fN` are _N_ bits wide,"
msgstr "`iN`, `uN`, `fN`์ ๋ชจ๋ _N_๋นํธ ์
๋๋ค."
#: src/basic-syntax/scalar-types.md:15
msgid "`isize` and `usize` are the width of a pointer,"
msgstr "`isize` ์ `usize` ๋ ํฌ์ธํฐ์ ๊ฐ์ ํฌ๊ธฐ์
๋๋ค,"
#: src/basic-syntax/scalar-types.md:16
msgid "`char` is 32 bits wide,"
msgstr "`char` 32 ๋นํธ ์
๋๋ค,"
#: src/basic-syntax/scalar-types.md:17
msgid "`bool` is 8 bits wide."
msgstr "`bool`์ 8 ๋นํธ ์
๋๋ค."
#: src/basic-syntax/scalar-types.md:21
msgid "There are a few syntaxes which are not shown above:"
msgstr "์์ ํ์๋์ง ์์ ๋ช ๊ฐ์ง ๋ฌธ๋ฒ์ด ์์ต๋๋ค:"
#: src/basic-syntax/scalar-types.md:23
msgid ""
"Raw strings allow you to create a `&str` value with escapes disabled: "
"`r\"\\n\" == \"\\\\n\"`. You can embed double-quotes by using an equal "
"amount of `#` on either side of the quotes:"
msgstr ""
"Raw strings allow you to create a `&str` value with escapes disabled: "
"`r\"\\n\" == \"\\\\n\"`. You can embed double-quotes by using an equal "
"amount of `#` on either side of the quotes:"
#: src/basic-syntax/scalar-types.md:27
msgid ""
"```rust,editable\n"
"fn main() {\n"
" println!(r#\"link\"#);\n"
" println!(\"link\");\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn main() {\n"
" println!(r#\"link\"#);\n"
" println!(\"link\");\n"
"}\n"
"```"
#: src/basic-syntax/scalar-types.md:34
msgid "Byte strings allow you to create a `&[u8]` value directly:"
msgstr "Byte strings allow you to create a `&[u8]` value directly:"
#: src/basic-syntax/scalar-types.md:36
msgid ""
"```rust,editable\n"
"fn main() {\n"
" println!(\"{:?}\", b\"abc\");\n"
" println!(\"{:?}\", &[97, 98, 99]);\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn main() {\n"
" println!(\"{:?}\", b\"abc\");\n"
" println!(\"{:?}\", &[97, 98, 99]);\n"
"}\n"
"```"
#: src/basic-syntax/scalar-types.md:43
msgid ""
"All underscores in numbers can be left out, they are for legibility only. So "
"`1_000` can be written as `1000` (or `10_00`), and `123_i64` can be written "
"as `123i64`."
msgstr ""
"All underscores in numbers can be left out, they are for legibility only. So "
"`1_000` can be written as `1000` (or `10_00`), and `123_i64` can be written "
"as `123i64`."
#: src/basic-syntax/compound-types.md:5
msgid "Arrays"
msgstr "๋ฐฐ์ด"
#: src/basic-syntax/compound-types.md:5
msgid "`[T; N]`"
msgstr "`[T; N]`"
#: src/basic-syntax/compound-types.md:5
msgid "`[20, 30, 40]`, `[0; 3]`"
msgstr "`[20, 30, 40]`, `[0; 3]`"
#: src/basic-syntax/compound-types.md:6
msgid "Tuples"
msgstr "ํํ"
#: src/basic-syntax/compound-types.md:6
msgid "`()`, `(T,)`, `(T1, T2)`, ..."
msgstr "`()`, `(T,)`, `(T1, T2)`, ..."
#: src/basic-syntax/compound-types.md:6
msgid "`()`, `('x',)`, `('x', 1.2)`, ..."
msgstr "`()`, `('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 ""
"```rust,editable\n"
"fn main() {\n"
" let mut a: [i8; 10] = [42; 10];\n"
" a[5] = 0;\n"
" println!(\"a: {:?}\", a);\n"
"}\n"
"```"
#: 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 ""
"```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"
"```"
#: src/basic-syntax/compound-types.md:32
msgid "Arrays:"
msgstr "๋ฐฐ์ด:"
#: src/basic-syntax/compound-types.md:34
msgid ""
"A value of the array type `[T; N]` holds `N` (a compile-time constant) "
"elements of the same type `T`. Note that the length of the array is _part of "
"its type_, which means that `[u8; 3]` and `[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 parameter: `{}` gives the default output, `{:?}` gives "
"the debug output. We could also have used `{a}` and `{a:?}` without "
"specifying the value after the 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 the only valid value of that type - that is to say both the type and its "
"value are expressed as `()`. It is used to indicate, for example, that a "
"function or expression has no return value, as we'll see in a future slide. "
msgstr ""
"๋น์ด์๋ ํํ`()`์ ๋จ์ ํ์
(unit type)์ด๋ผ๊ณ ๋ ํฉ๋๋ค. ์ด๋ ํ์
์ด๋ฉด์ ํด"
"๋น ํ์
์ ์ ์ผํ๋ฉฐ ์ ํจํ ๊ฐ์
๋๋ค. ์ฆ ํ์
๊ณผ ๊ฐ์ด ๋ชจ๋ `()`์
๋๋ค. ์๋ฅผ ๋ค"
"์ด ํจ์๋ ์์์ ๋ฐํ ๊ฐ์ด ์์์ ๋ํ๋ผ ๋ ์ฌ์ฉํฉ๋๋ค. "
#: src/basic-syntax/compound-types.md:59
msgid ""
"You can think of it as `void` that can be familiar to you from other "
"programming languages."
msgstr "๋ค๋ฅธ ์ธ์ด์์ ์ต์ํ `void` ๊ฐ๋
์ผ๋ก ์๊ฐํ ์ ์์ต๋๋ค."
#: 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 ""
"```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"
"```"
#: 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."
msgstr ""
"`ref_x`์ ๊ฐ์ ํ ๋นํ ๋, C/C++์ ํฌ์ธํฐ์ ์ ์ฌํ๊ฒ `*`๋ฅผ ์ด์ฉํด์ ์ฐธ์กฐ๋ฅผ ๋ฐ"
"๋ผ๊ฐ์ผ(์ญ์ฐธ์กฐ) ํฉ๋๋ค."
#: src/basic-syntax/references.md:17
msgid ""
"Rust will auto-dereference in some cases, in particular when invoking "
"methods (try `ref_x.count_ones()`)."
msgstr ""
"๋ฌ์คํธ๋ ํน์ ํ ๊ฒฝ์ฐ(๋ฉ์๋ ํธ์ถ)์ ์๋์ผ๋ก ์ญ์ฐธ์กฐ๋ฅผ ํฉ๋๋ค.(`ref_x."
"count_one()`์ ํ๋ฉด `*ref_x`๊ฐ `count_one`์ ์ธ์๋ก ์ ๋ฌ๋ฉ๋๋ค.)"
#: src/basic-syntax/references.md:19
msgid ""
"References that are declared as `mut` can be bound to different values over "
"their lifetime."
msgstr ""
"`mut`๋ก ์ ์ธ๋ ์ฐธ์กฐ๋ ๊ทธ ๋ณ์๊ฐ ์ด์์๋ ๋์ ๋ค๋ฅธ ๊ฐ์ ๊ฐ์ง ์ ์์ต๋๋ค."
#: src/basic-syntax/references.md:25
msgid ""
"Be sure to note the difference between `let mut ref_x: &i32` and `let ref_x: "
"&mut i32`. The first one represents a mutable reference which can be bound "
"to 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: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 ""
"```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"
"```"
#: src/basic-syntax/references-dangling.md:16
msgid "A reference is said to \"borrow\" the value it refers to."
msgstr "์ฐธ์กฐ๋ ์ด๋ค ๊ฐ์ \"๋น๋ฆฌ๋\" ๊ฒ์
๋๋ค."
#: src/basic-syntax/references-dangling.md:17
msgid ""
"Rust is tracking the lifetimes of all references to ensure they live long "
"enough."
msgstr ""
"๋ฌ์คํธ๋ ์ฐธ์กฐ ๋์์ ๊ฐ์ด, ๊ทธ ๊ฐ์ ๋ํ ๋ชจ๋ ์ฐธ์กฐ๋ค๋ณด๋ค ๋ ์ค๋ ์ด์์์์ ์ถ"
"์ ํฉ๋๋ค."
#: src/basic-syntax/references-dangling.md:19
msgid "We will talk more about borrowing when we get to ownership."
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 mut a: [i32; 6] = [10, 20, 30, 40, 50, 60];\n"
" println!(\"a: {a:?}\");\n"
"\n"
" let s: &[i32] = &a[2..4];\n"
"\n"
" println!(\"s: {s:?}\");\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn main() {\n"
" let a: [i32; 6] = [10, 20, 30, 40, 50, 60];\n"
" println!(\"a: {a:?}\");\n"
"\n"
" let s: &[i32] = &a[2..4];\n"
" println!(\"s: {s:?}\");\n"
"}\n"
"```"
#: src/basic-syntax/slices.md:16
msgid "Slices borrow data from the sliced type."
msgstr "์ฌ๋ผ์ด์ค๋ ๋ค๋ฅธ(์ฌ๋ผ์ด์ค ๋) ํ์
์ผ๋ก๋ถํฐ ๋ฐ์ดํฐ๋ฅผ '๋น๋ ค'์ต๋๋ค."
#: src/basic-syntax/slices.md:17
msgid "Question: What happens if you modify `a[3]` right before printing `s`?"
msgstr "์ง๋ฌธ: `s`๋ฅผ ์ถ๋ ฅํ๊ธฐ ์ ์ `a[3]`์ ์์ ํ๋ฉด ๋ฌด์จ ์ผ์ด ์์ด๋ ๊น์?"
#: src/basic-syntax/slices.md:21
msgid ""
"We create a slice by borrowing `a` and specifying the starting and ending "
"indexes in brackets."
msgstr ""
"์ฌ๋ผ์ด์ค๋ ์ฐ์ `a`๋ฅผ ๋น๋ฆฐ๋ค์, ์์๊ณผ ๋ ์ธ๋ฑ์ค๋ฅผ ๋ธ๋ํท(`[]`)์์ ์ง์ ํด์ "
"๋ง๋ญ๋๋ค."
#: src/basic-syntax/slices.md:23
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."
msgstr ""
"์ฌ๋ผ์ด์ค๊ฐ ์ธ๋ฑ์ค 0๋ถํฐ ์์ํ๋ค๋ฉด ์์ ์ธ๋ฑ์ค๋ ์๋ต ๊ฐ๋ฅํฉ๋๋ค. ์ฆ `&a[0.."
"a.len()]`์ `&a[..a.len()]` ๋ ๋์ผํฉ๋๋ค."
#: src/basic-syntax/slices.md:25
msgid ""
"The same is true for the last index, so `&a[2..a.len()]` and `&a[2..]` are "
"identical."
msgstr ""
"๋ง์ง๋ง ์ธ๋ฑ์ค๋ ์๋ต ๊ฐ๋ฅํฉ๋๋ค. ๊ทธ๋์ `&a[2..a.len()]` ์ `&a[2..]`๋ ๋์ผ"
"ํฉ๋๋ค."
#: src/basic-syntax/slices.md:27
msgid ""
"To easily create a slice of the full array, we can therefore use `&a[..]`."
msgstr "๋ฐ๋ผ์ ์ ์ฒด ๋ฐฐ์ด์ ๋ํ ์ฌ๋ผ์ด์ค๋ `&a[..]`๊ฐ ๋ฉ๋๋ค."
#: src/basic-syntax/slices.md:29
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."
msgstr ""
"`s`๋ `i32`๋ค๋ก ์ด๋ฃจ์ด์ง ์ฌ๋ผ์ด์ค์ ๋ํ ์ฐธ์กฐ์
๋๋ค. `s`์ ํ์
(`&[i32]`)์ "
"๋ฐฐ์ด์ ํฌ๊ธฐ๊ฐ ๋น ์ ธ์์์ ์ฃผ๋ชฉํ์๊ธฐ ๋ฐ๋๋๋ค. ์ฆ, ์ฌ๋ผ์ด์ค๋ฅผ ์ด์ฉํ๋ฉด ๋ค์ํ "
"๊ธธ์ด์ ๋ฐ์ดํฐ๋ฅผ ๋ค๋ฃฐ ์ ์์ต๋๋ค."
#: src/basic-syntax/slices.md:31
msgid ""
"Slices always borrow from another object. In this example, `a` has to remain "
"'alive' (in scope) for at least as long as our slice. "
msgstr ""
"์ฌ๋ผ์ด์ค๋ ํญ์ ๋ค๋ฅธ ๊ฐ์ฒด๋ก๋ถํฐ '๋น๋ ค' ์ต๋๋ค. ์ด ์์์์ ๊ฐ์ฒด `a`๋ ์ฌ๋ผ์ด"
"์ค `s`๋ณด๋ค ๋ ์ค๋ ์ด์ ์์ด์ผ๋ง ํฉ๋๋ค. "
#: src/basic-syntax/slices.md:33
msgid ""
"The question about modifying `a[3]` can spark an interesting discussion, but "
"the answer is that for memory safety reasons you cannot do it through `a` at "
"this point in the execution, but you can read the data from both `a` and `s` "
"safely. It works before you created the slice, and again after the "
"`println`, when the slice is no longer used. More details will be explained "
"in the borrow checker section."
msgstr ""
"`a[3]`์ ๊ฐ์ ๋ฐ๊ฟ ์ ์๋๋ ์ง๋ฌธ์ ์ข์ ์ง๋ฌธ์
๋๋ค. ์ฌ๊ธฐ์ ๋ํ ๋ต์ `a`์ "
"`s`๋ฅผ ํตํด ๋ฐ์ดํฐ๋ฅผ ์ฝ์ ์๋ ์์ง๋ง ์์ ํ ์๋ ์์ผ๋ฉฐ, ์ด๋ ๋ฉ๋ชจ๋ฆฌ ์์ ์ "
"์ํด์๋ผ๋ ๊ฒ์
๋๋ค. ๊ทธ๋ฐ๋ฐ, ์ฌ๋ผ์ด์ค๊ฐ ์ฌ์ฉ๋์ง ์์ ๋, ์ฆ ์ฌ๋ผ์ด์ค๋ฅผ ๋ง๋ค"
"๊ธฐ ์ ์ด๋, ํน์ `println`์ดํ์๋ `a[3]`์ ๋ฐ๊ฟ ์ ์์ต๋๋ค. ์ ๊ทธ๋ฐ์ง์ ๋"
"ํ ์ข๋ ๊ตฌ์ฒด์ ์ธ ๋ต์ ๋น๋ฆผ ๊ฒ์ฌ ๋ถ๋ถ์์ ์์ธํ ์ค๋ช
ํฉ๋๋ค."
#: 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}\");\n"
"\n"
" 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 ""
"```rust,editable\n"
"fn main() {\n"
" let s1: &str = \"World\";\n"
" println!(\"s1: {s1}\");\n"
"\n"
" 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"
"```"
#: 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."
msgstr "`&str`์ ๋ฌธ์์ด ์ฌ๋ผ์ด์ค์ ๋ํ (๋ถ๋ณ) ์ฐธ์กฐ์
๋๋ค."
#: src/basic-syntax/string-slices.md:23
msgid "`String` a mutable string buffer."
msgstr "`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 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."
msgstr ""
"๋ฌ์คํธ์ `String`ํ์
์ ์ค์ ๋ก๋ ๋ฌธ์์ด์ ์ด๋ฃจ๋ ๋ฐ์ดํธ์ ๋ํ ๋ฐฑํฐ"
"(`Vec`)์
๋๋ค. `Vec`๊ฐ `T`๋ฅผ ์์ ํ๊ณ ์๋ฏ์ด, `String`์ด ๊ฐ๋ฆฌํค๊ณ ์"
"๋ ๋ฌธ์์ด์ `String`์ ์์ ์
๋๋ค."
#: src/basic-syntax/string-slices.md:32
msgid ""
"As with many other types `String::from()` creates a string from a string "
"literal; `String::new()` creates a new empty string, to which string data "
"can be added using the `push()` and `push_str()` methods."
msgstr ""
"๋ค๋ฅธ ๋ง์ ํ์
๋ค์ฒ๋ผ `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 accepts the same format specification as `println!()`."
msgstr ""
"`format!()` ๋งคํฌ๋ก๋ ๋ณ์์ ๊ฐ์ ๋ฌธ์์ด๋ก ๋ณํํ๋ ํธ๋ฆฌํ ๋ฐฉ๋ฒ์
๋๋ค. ์ด ๋งคํฌ"
"๋ก๋ `println!()` ๋งคํฌ๋ก์ ๋์ผํ ํฌ๋งทํ
ํ์์ ์ง์ํฉ๋๋ค."
#: src/basic-syntax/string-slices.md:38
msgid ""
"You can borrow `&str` slices from `String` via `&` and optionally range "
"selection."
msgstr ""
"`&`์ ๋ฒ์ ์ฐ์ฐ์๋ฅผ ์ด์ฉํ์ฌ `String`์์ `&str`์ฌ๋ผ์ด์ค๋ฅผ ๋น๋ ค์ฌ ์ ์์ต๋"
"๋ค."
#: src/basic-syntax/string-slices.md:40
msgid ""
"For C++ programmers: think of `&str` as `const char*` from C++, but the one "
"that always points to a valid string in memory. Rust `String` is a rough "
"equivalent of `std::string` from C++ (main difference: it can only contain "
"UTF-8 encoded bytes and will never use a small-string optimization)."
msgstr ""
"๋น์ ์ด C++ ํ๋ก๊ทธ๋๋จธ ๋ผ๋ฉด: `&str`๋ C++์ `const char*`์ ์ ์ฌํ์ง๋ง ํญ์ ์ "
"ํจํ ๋ฌธ์์ด์ ๊ฐ๋ฆฌํจ๋ค๋ ์ ์ด ๋ค๋ฆ
๋๋ค. ๋ฌ์คํธ์ `String`์ C++์ `std::"
"string` ๊ณผ ๋๋ต ๊ฑฐ์ ๋์ผํฉ๋๋ค. (์ฃผ์ ์ฐจ์ด์ : ๋ฌ์คํธ์ `String`์ UTF-8 ์ธ์ฝ"
"๋ฉ ๋ฐ์ดํธ๋ง ํฌํจํ ์ ์์ผ๋ฉฐ ์์ ๋ฌธ์์ด ์ต์ ํ(small-string optimization)๋ "
"๊ตฌํํ์ง ์์ต๋๋ค."
#: 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"
" print_fizzbuzz_to(20);\n"
"}\n"
"\n"
"fn is_divisible(n: u32, divisor: u32) -> bool {\n"
" if divisor == 0 {\n"
" return false;\n"
" }\n"
" n % divisor == 0\n"
"}\n"
"\n"
"fn fizzbuzz(n: u32) -> String {\n"
" let fizz = if is_divisible(n, 3) { \"fizz\" } else { \"\" };\n"
" let buzz = if is_divisible(n, 5) { \"buzz\" } else { \"\" };\n"
" if fizz.is_empty() && buzz.is_empty() {\n"
" return format!(\"{n}\");\n"
" }\n"
" format!(\"{fizz}{buzz}\")\n"
"}\n"
"\n"
"fn print_fizzbuzz_to(n: u32) {\n"
" for i in 1..=n {\n"
" println!(\"{}\", fizzbuzz(i));\n"
" }\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn main() {\n"
" print_fizzbuzz_to(20);\n"
"}\n"
"\n"
"fn is_divisible(n: u32, divisor: u32) -> bool {\n"
" if divisor == 0 {\n"
" return false;\n"
" }\n"
" n % divisor == 0\n"
"}\n"
"\n"
"fn fizzbuzz(n: u32) -> String {\n"
" let fizz = if is_divisible(n, 3) { \"fizz\" } else { \"\" };\n"
" let buzz = if is_divisible(n, 5) { \"buzz\" } else { \"\" };\n"
" if fizz.is_empty() && buzz.is_empty() {\n"
" return format!(\"{n}\");\n"
" }\n"
" format!(\"{fizz}{buzz}\")\n"
"}\n"
"\n"
"fn print_fizzbuzz_to(n: u32) {\n"
" for i in 1..=n {\n"
" println!(\"{}\", 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. "
msgstr ""
"`main` ํจ์์์ ๊ทธ ๋ค์์ ์ค๋ ํจ์๋ค์ ์ฌ์ฉํ ์ ์์ต๋๋ค. ๋ฏธ๋ฆฌ ์ ์ธํ๊ธฐ"
"(forward declaration)๋ ํค๋ ๊ฐ์๊ฑด ํ์ ์์ต๋๋ค. "
#: src/basic-syntax/functions.md:36
msgid ""
"Declaration parameters are followed by a type (the reverse of some "
"programming languages), then a return type."
msgstr ""
"๋งค๊ฐ๋ณ์๋ฅผ ์ ์ธํ ๋์๋ ์ด๋ฆ์ ๋จผ์ ์ฐ๊ณ , ํ์
์ ๋์ค์ ์๋๋ค. ์ด๋ฆ๊ณผ ํ์
"
"์ `:` ๋ก ๊ตฌ๋ถํฉ๋๋ค. ์ด๋ ์ผ๋ถ ์ธ์ด(์๋ฅผ ๋ค์ด C)์ ๋ฐ๋์์ ์ ์ํ์๊ธฐ ๋ฐ๋"
"๋๋ค. ๋ง์ฐฌ๊ฐ์ง๋ก, ๋ฆฌํด ํ์
๋ ํจ์์ ์์์ด ์๋ ๊ฐ์ฅ ๋ท๋ถ๋ถ์ ์ ์ธํฉ๋๋ค."
#: src/basic-syntax/functions.md:37
msgid ""
"The last expression in a function body (or any block) becomes the return "
"value. Simply omit the `;` at the end of the expression."
msgstr ""
"ํจ์ ๋ณธ๋ฌธ์ ๋ง์ง๋ง ํํ์์ ๋ฐํ ๊ฐ์ด ๋ฉ๋๋ค. ๊ฐ๋จํ, ์ ๋์ ์๋ `;`๋ฅผ ์๋ต"
"ํ๋ฉด ๋ฉ๋๋ค."
#: src/basic-syntax/functions.md:38
msgid ""
"Some functions have no return value, and return the 'unit type', `()`. The "
"compiler will infer this if the `-> ()` return type is omitted."
msgstr ""
"๋ฐํ๊ฐ์ด ์๋ ํจ์์ ๊ฒฝ์ฐ, ์ ๋ ํ์
`()`์ ๋ฐํํฉ๋๋ค. `-> ()`๊ฐ ์๋ต๋ ๊ฒฝ"
"์ฐ ์ปดํ์ผ๋ฌ๋ ์ด๋ฅผ ์ถ๋ก ํฉ๋๋ค."
#: src/basic-syntax/functions.md:39
msgid ""
"The range expression in the `for` loop in `print_fizzbuzz_to()` contains "
"`=n`, which causes it to include the upper bound."
msgstr ""
"`fizzbuzz_to()`ํจ์ ๋ด `for` ๋ฐ๋ชฉ๋ฌธ์ ๋ฒ์ ํํ์ ์ค `=n`์ n๊น์ง ํฌํจํ๋ค๋ "
"์๋ฏธ์
๋๋ค."
#: src/basic-syntax/rustdoc.md:3
msgid ""
"All language items in Rust can be documented using special `///` syntax."
msgstr "Rust์ ์์ดํ
(item)์ `///` ๋ฌธ๋ฒ์ ์ฌ์ฉํ์ฌ ๋ฌธ์ํํ ์ ์์ต๋๋ค."
#: src/basic-syntax/rustdoc.md:5
msgid ""
"```rust,editable\n"
"/// Determine whether the first argument is divisible by the second "
"argument.\n"
"///\n"
"/// If the second argument is zero, the result is false.\n"
"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"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"/// ์ฒซ ๋ฒ์งธ ์ธ์๊ฐ ๋ ๋ฒ์งธ ์ธ์๋ก ๋๋ ์ง ์ ์๋์ง ๊ฒฐ์ ํฉ๋๋ค.\n"
"///\n"
"/// ๋ ๋ฒ์งธ ์ธ์๊ฐ 0์ด๋ฉด ๊ฒฐ๊ณผ๋ false์
๋๋ค.\n"
"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 // ๋ธ๋ก ์์ ๋ง์ง๋ง ํํ์์ ๋ฐํ๊ฐ์
๋๋ค\n"
"}\n"
"```"
#: src/basic-syntax/rustdoc.md:17
msgid ""
"The contents are treated as Markdown. All published Rust library crates are "
"automatically documented at [`docs.rs`](https://docs.rs) using the [rustdoc]"
"(https://doc.rust-lang.org/rustdoc/what-is-rustdoc.html) tool. It is "
"idiomatic to document all public items in an API using this pattern."
msgstr ""
"์ฝํ
์ธ ๋ ๋งํฌ๋ค์ด์ผ๋ก ์ฒ๋ฆฌ๋ฉ๋๋ค. ๊ฒ์๋ ๋ชจ๋ Rust ๋ผ์ด๋ธ๋ฌ๋ฆฌ ํฌ๋ ์ดํธ๋ "
"[rustdoc](https://doc.rust-lang.org/rustdoc/what-is-rustdoc.html) ๋๊ตฌ๋ฅผ ์ฌ์ฉ"
"ํ์ฌ [`docs.rs`](https://docs.rs)์ ์๋์ผ๋ก ๋ฌธ์ํ๋ฉ๋๋ค. ์ผ๋ฐ์ ์ผ๋ก API์ "
"๋ชจ๋ ๊ณต๊ฐ ํญ๋ชฉ์ ์ด ํจํด์ ์ฌ์ฉํ์ฌ ๋ฌธ์ํ๋ฉ๋๋ค."
#: src/basic-syntax/rustdoc.md:24
msgid ""
"Show students the generated docs for the `rand` crate at [`docs.rs/rand`]"
"(https://docs.rs/rand)."
msgstr ""
"[`docs.rs/rand`](https://docs.rs/rand)์์ `rand` ํฌ๋ ์ดํธ์ฉ์ผ๋ก ์์ฑ๋ ๋ฌธ์"
"๋ฅผ ๋ณด์ฌ์ค๋๋ค."
#: src/basic-syntax/rustdoc.md:27
msgid ""
"This course does not include rustdoc on slides, just to save space, but in "
"real code they should be present."
msgstr ""
"์ด ์ฌ๋ผ์ด๋์ ์์ ์ฝ๋๋ ๋ฌธ์ํ ์ฃผ์์ด ์๋ต๋์ด ์์ง๋ง, ์ค์ ์ฝ๋๋ผ๋ฉด ๋ฌธ์"
"ํ ์ฃผ์์ ๋ฐ๋์ ์จ์ผ ํฉ๋๋ค."
#: src/basic-syntax/rustdoc.md:30
msgid ""
"Inner doc comments are discussed later (in the page on modules) and need not "
"be addressed here."
msgstr ""
"๋ฌธ์ ๋ด๋ถ ์ฃผ์ ๋ชจ๋ ํ์ด์ง ๋ท๋ถ๋ถ์์ ๋ค๋ฃจ๋ฉฐ ์ฌ๊ธฐ์ ๋ค๋ฃจ์ง ์์๋ ๋ฉ๋๋ค."
#: src/basic-syntax/rustdoc.md:33
msgid ""
"Rustdoc comments can contain code snippets that we can run and test using "
"`cargo test`. We will discuss these tests in the [Testing section](../"
"testing/doc-tests.html)."
msgstr ""
"๋ฌธ์ํ ์ฃผ์์ ์ฝ๋๋ฅผ ํฌํจํ ์๋ ์์ผ๋ฉฐ, ์ด ์ฝ๋๋ `cargo test`๋ฅผ ํตํด ํ
์คํธ"
"๋ก ๋์ํ ์๋ ์์ต๋๋ค. [ํ
์คํธ](../testing/doc-tests.html)์์ ๋ ์์ธํ ๋ค"
"๋ฃจ๊ฒ ์ต๋๋ค."
#: src/basic-syntax/methods.md:3
msgid ""
"Methods are functions associated with a type. The `self` argument of a "
"method is an instance of the type it is associated with:"
msgstr ""
"๋ฉ์๋๋ ํน์ ํ์
๊ณผ ์ฐ๊ฒฐ๋ ํจ์์
๋๋ค. ๋ฉ์๋์ `self` ์ธ์๊ฐ ๊ทธ ๋ฉ์๋๊ฐ ์ฐ"
"๊ฒฐ๋ ์ธ์คํด์ค์ ํ์
์
๋๋ค:"
#: src/basic-syntax/methods.md:6
msgid ""
"```rust,editable\n"
"struct Rectangle {\n"
" width: u32,\n"
" height: u32,\n"
"}\n"
"\n"
"impl Rectangle {\n"
" fn area(&self) -> u32 {\n"
" self.width * self.height\n"
" }\n"
"\n"
" fn inc_width(&mut self, delta: u32) {\n"
" self.width += delta;\n"
" }\n"
"}\n"
"\n"
"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 ""
"```rust,editable\n"
"struct Rectangle {\n"
" width: u32,\n"
" height: u32,\n"
"}\n"
"\n"
"impl Rectangle {\n"
" fn area(&self) -> u32 {\n"
" self.width * self.height\n"
" }\n"
"\n"
" fn inc_width(&mut self, delta: u32) {\n"
" self.width += delta;\n"
" }\n"
"}\n"
"\n"
"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"
"```"
#: 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/methods.md:34
msgid "Add a static method called `Rectangle::new` and call this from `main`:"
msgstr "`Rectangle::new` ์์ฑ์๋ฅผ ์ถ๊ฐํ๊ณ ์ด๋ฅผ `main`์์ ํธ์ถํฉ๋๋ค:"
#: src/basic-syntax/methods.md:36
msgid ""
"```rust,editable,compile_fail\n"
"fn new(width: u32, height: u32) -> Rectangle {\n"
" Rectangle { width, height }\n"
"}\n"
"```"
msgstr ""
"```rust,editable,compile_fail\n"
"fn new(width: u32, height: u32) -> Rectangle {\n"
" Rectangle { width, height }\n"
"}\n"
"```"
#: src/basic-syntax/methods.md:42
msgid ""
"While _technically_, Rust does not have custom constructors, static methods "
"are commonly used to initialize structs (but don't have to). The actual "
"constructor, `Rectangle { width, height }`, could be called directly. See "
"the [Rustnomicon](https://doc.rust-lang.org/nomicon/constructors.html)."
msgstr ""
"\\_๊ธฐ์ ์ _์ผ๋ก ์ด์ผ๊ธฐ ํ์๋ฉด, ๋ฌ์คํธ๋ ์ปค์คํ
์์ฑ์๋ฅผ ์ง์ํ์ง ์์ต๋๋ค. ์ "
"์ ๋ฉ์๋๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ด ๊ตฌ์กฐ์ฒด๋ฅผ ์ด๊ธฐํ ํ๋ ์ผ๋ฐ์ ์ธ ๋ฐฉ๋ฒ์
๋๋ค (๋ฌผ๋ก ์ด๊ฒ"
"์ด ๊ฐ์ ๋์ง๋ ์์ต๋๋ค). ์ง์ง ์์ฑ์์ธ `Rectangle { width, height }`๋ฅผ ์ง์ "
"ํธ์ถํ ์๋ ์์ต๋๋ค. ์์ธํ ๋ด์ฉ์ [Rustnomicon](https://doc.rust-lang.org/"
"nomicon/constructors.html)์ ์ฐธ์กฐํ์ธ์."
#: src/basic-syntax/methods.md:45
msgid ""
"Add a `Rectangle::square(width: u32)` constructor to illustrate that such "
"static methods can take arbitrary parameters."
msgstr ""
"`Rectangle::square(width: u32)` ์์ฑ์๋ฅผ ์ถ๊ฐํ์ฌ ์์ฑ์๊ฐ ์์์ ๋งค๊ฐ๋ณ์๋ฅผ "
"์ฌ์ฉํ ์ ์์์ ๋ณด์
์๋ค."
#: 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:"
msgstr "๊ฐ๋ณํจ์๋ ๋จ์ผ ๊ตฌํ๋ง ๊ฐ์ต๋๋ค:"
#: src/basic-syntax/functions-interlude.md:6
msgid "Always takes a fixed number of parameters."
msgstr "ํญ์ ๊ณ ์ ๋ ์์ ํ๋ผ๋งคํฐ๋ง ๊ฐ์ต๋๋ค."
#: src/basic-syntax/functions-interlude.md:7
msgid "Always takes a single set of parameter types."
msgstr "ํ๋ผ๋งคํฐ๋ค์ ํ์
์ ํญ์ ๊ณ ์ ๋์ด ์์ต๋๋ค."
#: src/basic-syntax/functions-interlude.md:8
msgid "Default values are not supported:"
msgstr "ํ๋ผ๋งคํฐ์ ๊ธฐ๋ณธ ๊ฐ์ ์ง์๋์ง ์์ต๋๋ค:"
#: src/basic-syntax/functions-interlude.md:9
msgid "All call sites have the same number of arguments."
msgstr "๋ชจ๋ ํธ์ถ๋ถ์์๋ ๋์ผํ ์์ ์ธ์๋ฅผ ์ค์ ํด์ผํฉ๋๋ค."
#: src/basic-syntax/functions-interlude.md:10
msgid "Macros are sometimes used as an alternative."
msgstr "์ด๋ฐ ์ฌํญ๋ค์ด ์ ์ฝ์ด ๋ ๊ฒฝ์ฐ, ๋์์ผ๋ก ๋งคํฌ๋ก๋ฅผ ์ฌ์ฉํ๊ธฐ๋ ํฉ๋๋ค."
#: 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"
"}\n"
"\n"
"fn main() {\n"
" println!(\"coin toss: {}\", pick_one(\"heads\", \"tails\"));\n"
" println!(\"cash prize: {}\", pick_one(500, 1000));\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn pick_one(a: T, b: T) -> T {\n"
" if std::process::id() % 2 == 0 { a } else { b }\n"
"}\n"
"\n"
"fn main() {\n"
" println!(\"coin toss: {}\", pick_one(\"heads\", \"tails\"));\n"
" println!(\"cash prize: {}\", pick_one(500, 1000));\n"
"}\n"
"```"
#: src/basic-syntax/functions-interlude.md:27
msgid ""
"When using generics, the standard library's `Into` can provide a kind of "
"limited polymorphism on argument types. We will see more details in a later "
"section."
msgstr ""
"์ ๋ค๋ฆญ์ ์ฌ์ฉํ ๋ ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ `Into`์ ํ์
์ ๋ํ ๋คํ์ฑ์ ์ ๊ณตํ "
"์ ์์ต๋๋ค. ๋์ค์ ์์ธํ ์ค๋ช
ํ๊ฒ ์ต๋๋ค."
#: 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 auto-"
"completion in your editor. See the page about [Using Cargo](../../cargo.md) "
"for details on installing Rust."
msgstr ""
"๊ฐ๋ฅํ๋ค๋ฉด ๋ฌ์คํธ๊ฐ ์ค์น๋ ๋ก์ปฌ ํ๊ฒฝ์์ ์งํํ์ธ์. ๊ทธ๋ฌ๋ ํธ์ด ํ
์คํธ ์๋"
"ํฐ์ ์๋์์ฑ ๊ธฐ๋ฅ์ ๋์์ ๋ฐ์ ์ ์์ด์ ์ข์ต๋๋ค. [์นด๊ณ ์ฌ์ฉํ๊ธฐ](../../"
"cargo.md) ์ ์ฐธ์กฐํ์๊ธฐ ๋ฐ๋๋๋ค."
#: 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 "
"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/bare-metal/morning.md:7
#: src/exercises/bare-metal/afternoon.md:7
#: src/exercises/concurrency/morning.md:12
#: src/exercises/concurrency/afternoon.md:13
msgid ""
"After looking at the exercises, you can look at the \\[solutions\\] provided."
msgstr ""
"์ฐ์ต๋ฌธ์ ๋ฅผ ์ดํด ๋ณธ ํ, ์ ๊ณต๋ \\[ํด๋ต\\]\\[solutions\\]์ ์ดํด๋ณผ ์ ์์ต๋๋ค."
#: src/exercises/day-1/implicit-conversions.md:3
msgid ""
"Rust will not automatically apply _implicit conversions_ between types "
"([unlike C++](https://en.cppreference.com/w/cpp/language/"
"implicit_conversion)). You can see this in a program like this:"
msgstr ""
"๋ฌ์คํธ๋ [C++ ์ ๋ค๋ฅด๊ฒ](https://en.cppreference.com/w/cpp/language/"
"implicit_conversion) ํ์
๊ฐ _๋ฌต์์ ๋ณํ_์ ์๋์ผ๋ก ์ ์ฉํ์ง ์์ต๋๋ค. ์"
"๋ ์์๋ฅผ ํ์ธํด ๋ณด์ธ์:"
#: 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"
"}\n"
"\n"
"fn main() {\n"
" let x: i8 = 15;\n"
" let y: i16 = 1000;\n"
"\n"
" println!(\"{x} * {y} = {}\", multiply(x, y));\n"
"}\n"
"```"
msgstr ""
"```rust,editable,compile_fail\n"
"fn multiply(x: i16, y: i16) -> i16 {\n"
" x * y\n"
"}\n"
"\n"
"fn main() {\n"
" let x: i8 = 15;\n"
" let y: i16 = 1000;\n"
"\n"
" println!(\"{x} * {y} = {}\", multiply(x, y));\n"
"}\n"
"```"
#: src/exercises/day-1/implicit-conversions.md:19
msgid ""
"The Rust integer types all implement the [`From`](https://doc.rust-lang."
"org/std/convert/trait.From.html) and [`Into`](https://doc.rust-lang.org/"
"std/convert/trait.Into.html) traits to let us convert between them. The "
"`From` trait has a single `from()` method and similarly, the `Into` "
"trait has a single `into()` method. Implementing these traits is how a type "
"expresses that it can be converted into another type."
msgstr ""
"๋ฌ์คํธ์ ์ ์ํ ํ์
์ ๋ชจ๋ [`From`](https://doc.rust-lang.org/std/"
"convert/trait.From.html) ์ [`Into`](https://doc.rust-lang.org/std/"
"convert/trait.Into.html) ํธ๋ ์์ ๊ตฌํํ๊ณ ์์ผ๋ฉฐ, ์ด๋ฅผ ํตํด ํ์
๋ณํ์ด ์ด๋ฃจ"
"์ด ์ง๋๋ค. `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 that we can convert a variable `x` of type `i8` to an `i16` by "
"calling `i16::from(x)`. Or, simpler, with `x.into()`, because `From for "
"i16` 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 sufficient to only implement `From` to get a respective `Into` "
"implementation automatically."
msgstr ""
"์ด๋ ์ฌ์ฉ์ ์ ์ ํ์
์๋ ๋์ผํ๊ฒ ์ ์ฉ๋๋ ๊ท์น์
๋๋ค. ๋ฐ๋ผ์ `From`๋ง์ ๊ตฌ"
"ํํด๋ `Into`๊น์ง ์๋์ผ๋ก ๊ตฌํ์ด ๋ฉ๋๋ค."
#: src/exercises/day-1/implicit-conversions.md:33
msgid "Execute the above program and look at the compiler error."
msgstr "์ ์์ ์ฝ๋๋ฅผ ์คํํ๊ณ ์ด๋ค ์ปดํ์ผ ์๋ฌ๊ฐ ๋ฐ์ํ๋์ง ํ์ธํด ๋ณด์ธ์."
#: src/exercises/day-1/implicit-conversions.md:35
msgid "Update the code above to use `into()` to do the conversion."
msgstr "`into()`๋ฅผ ์ฌ์ฉํ์ฌ ์ฝ๋๋ฅผ ์์ ํ์ธ์."
#: src/exercises/day-1/implicit-conversions.md:37
msgid ""
"Change the types of `x` and `y` to other things (such as `f32`, `bool`, "
"`i128`) to see which types you can convert to which other types. Try "
"converting small types to big types and the other way around. Check the "
"[standard library documentation](https://doc.rust-lang.org/std/convert/trait."
"From.html) to see if `From` is implemented for the pairs you check."
msgstr ""
"`x`์ `y`๋ฅผ `f32`์ด๋ `bool`, `i128` ๋ฑ์ผ๋ก ๋ฐ๊ฟ์ ํด๋น ํ์
๋ค๋ก ๋ณํ์ด ๋๋"
"์ง ํ์ธํด๋ณด์ธ์. ์์ ์ฌ์ด์ฆ ํ์
์์ ํฐ ์ฌ์ด์ฆ๋ก ๋ณ๊ฒฝํด๋ณด์๊ณ ๊ทธ ๋ฐ๋๋ก๋ ํด"
"๋ณด์ธ์. [ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ฌธ์](https://doc.rust-lang.org/std/convert/trait."
"From.html)์์ ์๋ํด ๋ณธ ์ผ์ด์ค๊ฐ ๊ตฌํ๋์ด ์๋์ง ํ์ธํด ๋ณด์ธ์."
#: src/exercises/day-1/for-loops.md:1
#: src/exercises/day-1/solutions-morning.md:3
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 ""
"```rust\n"
"let array = [10, 20, 30];\n"
"```"
#: 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 ""
"```rust,editable\n"
"fn main() {\n"
" let array = [10, 20, 30];\n"
" println!(\"array: {array:?}\");\n"
"}\n"
"```"
#: src/exercises/day-1/for-loops.md:18
msgid ""
"Rust lets you iterate over things like arrays and ranges using the `for` "
"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!();\n"
"\n"
" print!(\"Iterating over range:\");\n"
" for i in 0..3 {\n"
" print!(\" {}\", array[i]);\n"
" }\n"
" println!();\n"
"}\n"
"```"
msgstr ""
"```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!();\n"
"\n"
" print!(\"Iterating over range:\");\n"
" for i in 0..3 {\n"
" print!(\" {}\", array[i]);\n"
" }\n"
" println!();\n"
"}\n"
"```"
#: src/exercises/day-1/for-loops.md:38
msgid ""
"Use the above to write a function `pretty_print` which pretty-print a matrix "
"and 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 ""
"```bob\n"
" โโก1 2 3โคโ โก1 4 7โค\n"
"\"transpose\"โโข4 5 6โฅโ \"==\"โข2 5 8โฅ\n"
" โโฃ7 8 9โฆโ โฃ3 6 9โฆ\n"
"```"
#: 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 "
"functions:"
msgstr ""
"์๋ ์ฝ๋๋ฅผ ์ ๋ณต์ฌํด์ ๊ตฌํํ์๋ฉด ๋ฉ๋๋ค:"
#: src/exercises/day-1/for-loops.md:52
msgid ""
"```rust,should_panic\n"
"// TODO: remove this when you're done with your implementation.\n"
"#![allow(unused_variables, dead_code)]\n"
"\n"
"fn transpose(matrix: [[i32; 3]; 3]) -> [[i32; 3]; 3] {\n"
" unimplemented!()\n"
"}\n"
"\n"
"fn pretty_print(matrix: &[[i32; 3]; 3]) {\n"
" unimplemented!()\n"
"}\n"
"\n"
"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"
" ];\n"
"\n"
" println!(\"matrix:\");\n"
" pretty_print(&matrix);\n"
"\n"
" let transposed = transpose(matrix);\n"
" println!(\"transposed:\");\n"
" pretty_print(&transposed);\n"
"}\n"
"```"
msgstr ""
"```rust,should_panic\n"
"// TODO: ๊ตฌํ์ด ์๋ฃ๋๋ฉด ์๋ ์ค์ ์ญ์ ํฉ๋๋ค.\n"
"#![allow(unused_variables, dead_code)]\n"
"\n"
"fn transpose(matrix: [[i32; 3]; 3]) -> [[i32; 3]; 3] {\n"
" unimplemented!()\n"
"}\n"
"\n"
"fn pretty_print(matrix: &[[i32; 3]; 3]) {\n"
" unimplemented!()\n"
"}\n"
"\n"
"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"
" ];\n"
"\n"
" println!(\"matrix:\");\n"
" pretty_print(&matrix);\n"
"\n"
" let transposed = transpose(matrix);\n"
" println!(\"transposed:\");\n"
" pretty_print(&transposed);\n"
"}\n"
"```"
#: 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 "
"argument and return types? Something like `&[&[i32]]` for a two-dimensional "
"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 "
"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 "
"[Solution](solutions-morning.md#arrays-and-for-loops) section."
msgstr ""
"๋ณด๋์ค ๋ฌธ์ ์ ๋ํ ๋ต๋ณ ์ญ์ [ํด๋ต](solutions-morning.md#arrays-and-for-"
"loops)์์ ํ์ธํ ์ ์์ต๋๋ค."
#: src/basic-syntax/variables.md:3
msgid ""
"Rust provides type safety via static typing. Variable bindings are immutable "
"by 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."
msgstr ""
"ํ์
์ถ๋ก ์ ๋๋ถ์ `i32`๋ ์๋ต ๊ฐ๋ฅํฉ๋๋ค. ๊ฐ์๊ฐ ์งํ๋ ์๋ก ์๋ต ๊ฐ๋ฅํ ๋ถ"
"๋ถ์ ์ ์ ์๋ตํ ๊ฒ์
๋๋ค."
#: 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"
"}\n"
"\n"
"fn takes_i8(y: i8) {\n"
" println!(\"i8: {y}\");\n"
"}\n"
"\n"
"fn main() {\n"
" let x = 10;\n"
" let y = 20;\n"
"\n"
" takes_u32(x);\n"
" takes_i8(y);\n"
" // takes_u32(y);\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn takes_u32(x: u32) {\n"
" println!(\"u32: {x}\");\n"
"}\n"
"\n"
"fn takes_i8(y: i8) {\n"
" println!(\"i8: {y}\");\n"
"}\n"
"\n"
"fn main() {\n"
" let x = 10;\n"
" let y = 20;\n"
"\n"
" takes_u32(x);\n"
" takes_i8(y);\n"
" // takes_u32(y);\n"
"}\n"
"```"
#: 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."
msgstr ""
"์ด ์ฌ๋ผ์ด๋๋, ๋ฌ์คํธ ์ปดํ์ผ๋ฌ๊ฐ ๋ณ์๊ฐ ์ด๋ป๊ฒ ์ ์ธ๋์ด ์๊ณ , ์ด๋ป๊ฒ ์ฌ์ฉ๋๋"
"์ง๋ฅผ ์ ์ฝ ์กฐ๊ฑด์ผ๋ก ์ผ์์ ๋ณ์์ ํ์
์ ์ถ๋ก ํ๋ ๋ชจ์ต์ ๋ณด์ฌ์ค๋๋ค."
#: src/basic-syntax/type-inference.md:28
msgid ""
"It is very important to emphasize that variables declared like this are not "
"of some sort of dynamic \"any type\" that can hold any data. The machine "
"code generated by such declaration is identical to the explicit declaration "
"of a type. 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:?}\");\n"
"\n"
" let vv = v.iter().collect::>();\n"
" println!(\"vv: {vv:?}\");\n"
"}\n"
"```"
msgstr ""
"```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:?}\");\n"
"\n"
" let vv = v.iter().collect::>();\n"
" println!(\"vv: {vv:?}\");\n"
"}\n"
"```"
#: 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`](https://doc.rust-lang.org/"
"std/iter/trait.FromIterator.html), which [`HashSet`](https://doc.rust-lang."
"org/std/collections/struct.HashSet.html#impl-FromIterator%3CT%3E-for-"
"HashSet%3CT,+S%3E) implements."
msgstr ""
"[`collect`](https://doc.rust-lang.org/stable/std/iter/trait.Iterator."
"html#method.collect)๋ [`HashSet`](https://doc.rust-lang.org/std/collections/"
"struct.HashSet.html#impl-FromIterator%3CT%3E-for-HashSet%3CT,+S%3E)์ ๊ตฌํํ "
"[`FromIterator`](https://doc.rust-lang.org/std/iter/trait.FromIterator.html)"
"์ ์์กดํฉ๋๋ค."
#: 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 ""
"Static and constant variables are two different ways to create globally-"
"scoped values that cannot be moved or reallocated during the execution of "
"the program. "
msgstr ""
"์ ์ ๋ณ์์ ์์๋ ์ ์ญ ์ค์ฝํ์์ ๊ฐ์ ์์ฑํ๋ ๋ ๊ฐ์ง ๋ฐฉ๋ฒ์
๋๋ค. ์ ์ญ ์ค"
"์ฝํ์ ์์ฑ๋ ๊ฐ์ ํ๋ก๊ทธ๋จ ์ํ ๋์ค์ ๋ค๋ฅธ ๊ฐ์ผ๋ก ์ด๋๋์ง ์์ผ๋ฉฐ, ๋ฉ๋ชจ๋ฆฌ "
"์์์ ๊ทธ ์์น๊ฐ ๋ณํ์ง ์์ต๋๋ค. "
#: src/basic-syntax/static-and-const.md:6
msgid "`const`"
msgstr "์์(`const`)"
#: src/basic-syntax/static-and-const.md:8
msgid ""
"Constant variables are evaluated at compile time and their values are "
"inlined wherever they are used:"
msgstr ""
"์์๋ ์ปดํ์ผ ํ ๋ ๊ทธ ๊ฐ์ด ์ ํด์ง๋๋ค. ๊ทธ๋ฆฌ๊ณ ๊ทธ ๊ฐ์ ๊ทธ ์์๊ฐ ์ฌ์ฉ๋๋ ๋ชจ"
"๋ ๋ถ๋ถ์์ ์ธ๋ผ์ธ ๋ฉ๋๋ค:"
#: src/basic-syntax/static-and-const.md:11
msgid ""
"```rust,editable\n"
"const DIGEST_SIZE: usize = 3;\n"
"const ZERO: Option = Some(42);\n"
"\n"
"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"
"}\n"
"\n"
"fn main() {\n"
" let digest = compute_digest(\"Hello\");\n"
" println!(\"Digest: {digest:?}\");\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"const DIGEST_SIZE: usize = 3;\n"
"const ZERO: Option = Some(42);\n"
"\n"
"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"
"}\n"
"\n"
"fn main() {\n"
" let digest = compute_digest(\"Hello\");\n"
" println!(\"Digest: {digest:?}\");\n"
"}\n"
"```"
#: src/basic-syntax/static-and-const.md:29
msgid ""
"According to the [Rust RFC Book](https://rust-lang.github.io/rfcs/0246-const-"
"vs-static.html) these are inlined upon use."
msgstr ""
"[Rust RFC Book](https://rust-lang.github.io/rfcs/0246-const-vs-static.html)"
"์ ๋ฐ๋ฅด๋ฉด ์์๋, ๊ทธ ์์๊ฐ ์ฌ์ฉ๋๋ ๊ณณ์ ์ธ๋ผ์ธ ๋ฉ๋๋ค."
#: src/basic-syntax/static-and-const.md:31
msgid ""
"Only functions marked `const` can be called at compile time to generate "
"`const` values. `const` functions can however be called at runtime."
msgstr ""
"`const` ๊ฐ์ ์์ฑํ ๋์๋ `const`๋ก ๋งํน๋ ํจ์๋ง์ด ํธ์ถ ๊ฐ๋ฅํ๋ฉฐ, ์ด ํจ์๋ค"
"์ ์ปดํ์ผ ์์ ํธ์ถ์ด ๋ฉ๋๋ค. ๋ฌผ๋ก `const`ํจ์๋ค์ ๋ฐํ์์ ํธ์ถํ๋ ๊ฒ๋ ๊ฐ"
"๋ฅํฉ๋๋ค."
#: src/basic-syntax/static-and-const.md:33
msgid "`static`"
msgstr "์ ์ ๋ณ์(`static`)"
#: src/basic-syntax/static-and-const.md:35
msgid ""
"Static variables will live during the whole execution of the program, and "
"therefore will not move:"
msgstr ""
"์ ์ ๋ณ์๋ ํ๋ก๊ทธ๋จ์ด ์ํ๋๋ ๋์ ์ ์ง๊ฐ ๋ฉ๋๋ค. ๊ทธ๋ฌ๋ฏ๋ก ๋ค๋ฅธ ๋ณ์๋ก ์ด๋"
"(move)๋์ง ์์ต๋๋ค:"
#: src/basic-syntax/static-and-const.md:37
msgid ""
"```rust,editable\n"
"static BANNER: &str = \"Welcome to RustOS 3.14\";\n"
"\n"
"fn main() {\n"
" println!(\"{BANNER}\");\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"static BANNER: &str = \"Welcome to RustOS 3.14\";\n"
"\n"
"fn main() {\n"
" println!(\"{BANNER}\");\n"
"}\n"
"```"
#: src/basic-syntax/static-and-const.md:45
msgid ""
"As noted in the [Rust RFC Book](https://rust-lang.github.io/rfcs/0246-const-"
"vs-static.html), 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. When a "
"globally-scoped value does not have a reason to need object identity, "
"`const` is generally preferred."
msgstr ""
"[Rust RFC Book](https://rust-lang.github.io/rfcs/0246-const-vs-static.html)์"
"์ ์ธ๊ธํ ๋ฐ์ ๊ฐ์ด, ์ ์ ๋ณ์๋ ๋ณ๋์ ๋ฉ๋ชจ๋ฆฌ ๊ณต๊ฐ์ ๊ฐ์ง๋ฉฐ, ์ธ๋ผ์ธ ๋์ง ์"
"์ต๋๋ค. ์ ์ ๋ณ์๋ ์์ ํ์ง ์์(unsafe) ๋ฌ์คํธ์ ์๋ฒ ๋๋ ์์คํ
์ฉ ์ฝ๋์"
"์ ์ ์ฉํฉ๋๋ค. ์ด๋ค์ ์๋ช
์ ํ๋ก๊ทธ๋จ์ด ์ํ๋๋ ์ ์ฒด ์๊ฐ๊ณผ ๋์ผํฉ๋๋ค. ์ "
"์ญ ์ค์ฝํ๋ฅผ ๊ฐ์ง ์ด๋ค ๊ฐ์ด, ๋ฉ๋ชจ๋ฆฌ ์์ ๋จ ํ๋๋ง ์กด์ฌํด์ผ ํ๋ค๋ ์๊ตฌ์กฐ๊ฑด์ด "
"์๋ค๋ฉด, ์ ์ ๋ณ์ ๋์ `const`๋ฅผ ์ฐ๋ ๊ฒ์ด ์ณ์ต๋๋ค."
#: src/basic-syntax/static-and-const.md:49
msgid ""
"Because `static` variables are accessible from any thread, they must be "
"`Sync`. Interior mutability is possible through a [`Mutex`](https://doc.rust-"
"lang.org/std/sync/struct.Mutex.html), atomic or similar. It is also possible "
"to have mutable statics, but they require manual synchronisation so any "
"access to them requires `unsafe` code. We will look at [mutable statics](../"
"unsafe/mutable-static-variables.md) in the chapter on Unsafe Rust."
msgstr ""
"`static`๋ณ์๋ค์ ์ด๋ค ์ค๋ ๋์์๋ ์ ๊ทผ ๊ฐ๋ฅํ๊ธฐ ๋๋ฌธ์, `Sync`ํธ๋ ์์ ๊ตฌํ"
"ํด์ผ ํฉ๋๋ค. ์ด ๋ณ์๋ฅผ ์ฝ๊ณ ์ฐ๋ ค๋ฉด [`Mutex`](https://doc.rust-lang.org/std/"
"sync/struct.Mutex.html)๋ก ๊ฐ์ธ๊ฑฐ๋, atomic ์ฐ์ฐ์ ์จ์ผ ํฉ๋๋ค. `static` ๋ณ์"
"๋ฅผ mutableํ๊ฒ ์ ์ธํ ์๋ ์์ง๋ง, ์ด ๊ฒฝ์ฐ ๋๊ธฐํ ์์
์ ์๋์ผ๋ก ํด ์ฃผ์ด์ผ "
"ํฉ๋๋ค. ๊ทธ๋์ ๊ทธ๋ฌํ ๋ณ์๋ฅผ ์ ๊ทผํ๋ ์ฝ๋๋`unsafe`๋ก ๋ช
์์ ์ผ๋ก ํ์๊ฐ ๋์ด"
"์ผ ํฉ๋๋ค. \"์์ ํ์ง ์์ ๋ฌ์คํธ\"๋ฅผ ๋ฐฐ์ธ ๋ [mutable statics](../unsafe/"
"mutable-static-variables.md) ๋ถ๋ถ์์ ์ข ๋ ์์ธํ ๋ค๋ฃจ๊ฒ ์ต๋๋ค."
#: src/basic-syntax/static-and-const.md:57
msgid "Mention that `const` behaves semantically similar to C++'s `constexpr`."
msgstr "๋ฌ์คํธ์ `const`๋ C++์ `constexpr`๊ณผ ๋งค์ฐ ๋น์ทํฉ๋๋ค."
#: src/basic-syntax/static-and-const.md:58
msgid ""
"`static`, on the other hand, is much more similar to a `const` or mutable "
"global variable in C++."
msgstr ""
"๋ฐ๋ฉด์ ๋ฌ์คํธ์ `static`์ C++์ `const`๋ ๊ฐ๋ณ ์ ์ ๋ณ์(mutable global "
"variable)์ ํจ์ฌ ๋ ์ ์ฌํฉ๋๋ค."
#: src/basic-syntax/static-and-const.md:59
msgid ""
"`static` provides object identity: an address in memory and state as "
"required by types with interior mutability such as `Mutex`."
msgstr ""
"`static`์ ๊ฐ์ฒด์ ์ ์ฒด์ฑ์ ๋ถ์ฌํฉ๋๋ค. ์ ์ฒด์ ์ด๋ ๋ฉ๋ชจ๋ฆฌ ์์์์ ์ฃผ์, ๊ทธ๋ฆฌ"
"๊ณ ๋ด๋ถ ์ํ๋ฅผ ์๋ฏธํฉ๋๋ค."
#: src/basic-syntax/static-and-const.md:60
msgid ""
"It isn't super common that one would need a runtime evaluated constant, but "
"it is helpful and safer than using a static."
msgstr ""
"ํ๋ก๊ทธ๋จ ์ํ์ ๊ทธ ๊ฐ์ด ์ ํด์ง๋ ์์๊ฐ ํ์ํ ๊ฒฝ์ฐ๋ ๋๋ญ
๋๋ค. ๊ทธ๋ฌ๋ ๊ทธ๋ ๋ค"
"๊ณ ํด๋, ์ ์ ๋ณ์๋ฅผ ์ฌ์ฉํ๋ ๊ฒ ๋ณด๋ค๋ ๋ ์ ์ฉํ๊ณ ์์ ํฉ๋๋ค."
#: src/basic-syntax/static-and-const.md:61
msgid "`thread_local` data can be created with the macro `std::thread_local`."
msgstr ""
"`thread_local` ๋ฐ์ดํฐ๋ `std::thread_local` ๋งคํฌ๋ก๋ฅผ ์ด์ฉํ์ฌ ์์ฑํ ์ ์์ต"
"๋๋ค."
#: src/basic-syntax/static-and-const.md:63
msgid "Properties table:"
msgstr "์์ฑ ๋น๊ต ํ
์ด๋ธ:"
#: src/basic-syntax/static-and-const.md:65
msgid "Property"
msgstr "์์ฑ"
#: src/basic-syntax/static-and-const.md:65
msgid "Static"
msgstr "์ ์ (static) ๋ณ์"
#: src/basic-syntax/static-and-const.md:65
msgid "Constant"
msgstr "์์(constant)"
#: src/basic-syntax/static-and-const.md:67
msgid "Has an address in memory"
msgstr "๋ฉ๋ชจ๋ฆฌ ์์ ์ฃผ์๊ฐ ์๋๊ฐ"
#: src/basic-syntax/static-and-const.md:67
#: src/basic-syntax/static-and-const.md:68
#: src/basic-syntax/static-and-const.md:70
#: src/basic-syntax/static-and-const.md:71
msgid "Yes"
msgstr "์"
#: src/basic-syntax/static-and-const.md:67
msgid "No (inlined)"
msgstr "์๋์ค(์ธ๋ผ์ธ ๋จ)"
#: src/basic-syntax/static-and-const.md:68
msgid "Lives for the entire duration of the program"
msgstr "ํ๋ก๊ทธ๋จ์ด ์ํ๋๋ ๋์ ๊ณ์ ์ด์ ์๋๊ฐ"
#: src/basic-syntax/static-and-const.md:68
#: src/basic-syntax/static-and-const.md:69
#: src/basic-syntax/static-and-const.md:71
msgid "No"
msgstr "์๋์ค"
#: src/basic-syntax/static-and-const.md:69
msgid "Can be mutable"
msgstr "๋ณ๊ฒฝ ๊ฐ๋ฅํ๊ฐ"
#: src/basic-syntax/static-and-const.md:69
msgid "Yes (unsafe)"
msgstr "์ (๊ทธ๋ฌ๋ ์์ ํ์ง ์์)"
#: src/basic-syntax/static-and-const.md:70
msgid "Evaluated at compile time"
msgstr "์ปดํ์ผ์ ๊ทธ ๊ฐ์ด ๊ฒฐ์ ๋๋๊ฐ"
#: src/basic-syntax/static-and-const.md:70
msgid "Yes (initialised at compile time)"
msgstr "์ (์ปดํ์ผ์ ์ด๊ธฐํ ๋จ)"
#: src/basic-syntax/static-and-const.md:71
msgid "Inlined wherever it is used"
msgstr "์ฌ์ฉ๋๋ ๊ณณ์ ์ธ๋ผ์ธ ๋๋๊ฐ"
#: src/basic-syntax/scopes-shadowing.md:3
msgid ""
"You can shadow variables, both those from outer scopes and variables from "
"the same scope:"
msgstr ""
"ํ์ฌ ๋ฒ์์ ์๋ ๋ณ์์, ๋ฐ๊นฅ ๋ฒ์์ ์๋ ๋ณ์ ๋ชจ๋ ๊ฐ๋ฆด(์๋์)์ ์์ต๋๋ค:"
#: src/basic-syntax/scopes-shadowing.md:6
msgid ""
"```rust,editable\n"
"fn main() {\n"
" let a = 10;\n"
" println!(\"before: {a}\");\n"
"\n"
" {\n"
" let a = \"hello\";\n"
" println!(\"inner scope: {a}\");\n"
"\n"
" let a = true;\n"
" println!(\"shadowed in inner scope: {a}\");\n"
" }\n"
"\n"
" println!(\"after: {a}\");\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn main() {\n"
" let a = 10;\n"
" println!(\"before: {a}\");\n"
"\n"
" {\n"
" let a = \"hello\";\n"
" println!(\"inner scope: {a}\");\n"
"\n"
" let a = true;\n"
" println!(\"shadowed in inner scope: {a}\");\n"
" }\n"
"\n"
" println!(\"after: {a}\");\n"
"}\n"
"```"
#: 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. "
msgstr ""
"์๋์์ ๊ธฐ์กด ๋ณ์์ ์๋ก์ด ๊ฐ์ ํ ๋นํ๋ ๊ฒ์ด ์๋๋๋ค. ์๋์์ ํ๋ฉด ์๋ก"
"์ด ๋ณ์๊ฐ ์๊ธฐ๋ฉฐ, ์ด์ ๋ณ์์ ์ ๋ณ์๋ ๋ฉ๋ชจ๋ฆฌ์ ์๋ก ๋ค๋ฅธ ์์น์ ์กด์ฌํฉ๋"
"๋ค. ๊ทธ ๋ ๋ณ์๋ ๋จ์ง ์ด๋ฆ์ด ๊ฐ์ ๋ฟ์ด๋ฉฐ, ์ฝ๋ ์ค ์ด๋์์ ๊ทธ ์ด๋ฆ์ด ์ฌ์ฉ๋์"
"๋๋์ ๋ฐ๋ผ ์ด๋ค ๋ณ์๋ฅผ ์ง์นญํ๋ ์ง๊ฐ ๊ฒฐ์ ๋ฉ๋๋ค. "
#: src/basic-syntax/scopes-shadowing.md:26
msgid "A shadowing variable can have a different type. "
msgstr "์๋์ ์ ํ์
์ ๋ฐ๊ฟ ์ ์์ต๋๋ค. "
#: src/basic-syntax/scopes-shadowing.md:27
msgid ""
"Shadowing looks obscure at first, but is convenient for holding on to values "
"after `.unwrap()`."
msgstr ""
"์ฒ์์ ์๋์์ ๋ณด๋ฉด ์ฝ๋๋ฅผ ๋ ๋ชจํธํ๊ฒ ๋ง๋ ๋ค๊ณ ์๊ฐํ ์ ๋ ์์ต๋๋ค. ๊ทธ๋ฌ"
"๋ ์ค์ ๋ก ์๋์์ ์ด์ฉํ๋ฉด, ์ด๋ค ๋ณ์์์ `.unwrap()` ๋ ๊ฐ์ ์๋ก์ด ๋ณ์์ "
"๋ด์ ๊ฒฝ์ฐ ์๋ก์ด ์ด๋ฆ์ ์ง์ ํ์ ์์ด ๊ธฐ์กด ์ด๋ฆ์ ์ ์งํ ์ ์์ด์ ํธ๋ฆฌํฉ๋"
"๋ค."
#: src/basic-syntax/scopes-shadowing.md:28
msgid ""
"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 ""
"์๋ ์ฝ๋๋ ๋ถ๋ณ ๋ณ์๋ฅผ ์๋์ํ ๋ ํ์
์ด ๋์ผํ๋๋ผ๋ ์ ๋ณ์๊ฐ ์๋ ๋ณ์"
"์ ๋ฉ๋ชจ๋ฆฌ ์์น๋ฅผ ์ฌ์ฌ์ฉ ํ ์ ์๋์ง ๊ทธ ์ด์ ๋ฅผ ๋ณด์ฌ์ค๋๋ค."
#: 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 ""
"```rust,editable\n"
"fn main() {\n"
" let a = 1;\n"
" let b = &a;\n"
" let a = a + 1;\n"
" println!(\"{a} {b}\");\n"
"}\n"
"```"
#: 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, ..."
msgstr ""
"๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ๊ฐ ํ๋ก๊ทธ๋๋จธ์ ์์ ํ ํต์ ํ์ ์์ง๋ง ์๋(๊ทธ๋์ ์์ ํ์ง ์์ "
"์ ์๋)์ธ ์ธ์ด: C, C++, Pascal, ..."
#: src/memory-management.md:6
msgid ""
"Full safety via automatic memory management at runtime: Java, Python, Go, "
"Haskell, ..."
msgstr ""
"๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ๊ฐ ๋ฐํ์์ ์ํด ๋๋ฏ๋ก ์์ ํ์ง๋ง ์๋(๊ทธ๋์ ํ๋ก๊ทธ๋๋จธ๊ฐ ๊ฐ์
"
"ํ ์ฌ์ง๊ฐ ์ ๊ฑฐ๋ ์๋)์ธ ์ธ์ด: 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 "
"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."
msgstr "์คํ: ๋ก์ปฌ ๋ณ์๋ฅผ ์ํ ์ฐ์์ ์ธ ๋ฉ๋ชจ๋ฆฌ ์์ญ."
#: src/memory-management/stack-vs-heap.md:4
msgid "Values have fixed sizes known at compile time."
msgstr "์ฌ๊ธฐ ์ ์ฅ๋๋ ๊ฐ์ ์ปดํ์ผ ์ ๊ฒฐ์ ๋๋ ๊ณ ์ ํฌ๊ธฐ๋ฅผ ๊ฐ์ต๋๋ค."
#: src/memory-management/stack-vs-heap.md:5
msgid "Extremely fast: just move a stack pointer."
msgstr ""
"๋งค์ฐ ๋น ๋ฆ: ๋ฉ๋ชจ๋ฆฌ ํ ๋น/๋ฐํ์ด ๋จ์ง ์คํ ํฌ์ธํฐ์ ์ด๋๋ง์ผ๋ก ๊ตฌํ๋ฉ๋๋ค."
#: src/memory-management/stack-vs-heap.md:6
msgid "Easy to manage: follows function calls."
msgstr "๊ด๋ฆฌ๊ฐ ์ฌ์: ํจ์๊ฐ ํธ์ถ๋๋ฉด ํ ๋น๋๊ณ , ๋ฆฌํดํ๋ฉด ๋ฐํ๋ฉ๋๋ค."
#: src/memory-management/stack-vs-heap.md:7
msgid "Great memory locality."
msgstr "์คํ์ ์๋ ๊ฐ๋ค์ ๋งค์ฐ ๋์ ๋ฉ๋ชจ๋ฆฌ ์ธ์ ์ฑ์ ๊ฐ์ง๋๋ค."
#: src/memory-management/stack-vs-heap.md:9
msgid "Heap: Storage of values outside of function calls."
msgstr "ํ: ํจ์ ํธ์ถ/๋ฆฌํด๊ณผ ์๊ด ์์ด ์ ์ง๋๋ ๊ฐ์ด ์ ์ฅ๋๋ ๊ณณ."
#: src/memory-management/stack-vs-heap.md:10
msgid "Values have dynamic sizes determined at runtime."
msgstr "์ฌ๊ธฐ ์ ์ฅ๋๋ ๊ฐ์ ํ๋ก๊ทธ๋จ ์ํ์ ๊ทธ ํฌ๊ธฐ๊ฐ ๊ฒฐ์ ๋ฉ๋๋ค."
#: src/memory-management/stack-vs-heap.md:11
msgid "Slightly slower than the stack: some book-keeping needed."
msgstr "์คํ ๋ณด๋ค๋ ๋๋ฆผ: ๋ฉ๋ชจ๋ฆฌ ํ ๋น/๋ฐํ์ ํด์ผ ํ ์ผ์ด ์ข ๋ ์์ต๋๋ค."
#: src/memory-management/stack-vs-heap.md:12
msgid "No guarantee of memory locality."
msgstr "๋ฉ๋ชจ๋ฆฌ ์ธ์ ์ฑ์ ๋ณด์ฅํ์ง ์์ต๋๋ค."
#: src/memory-management/stack.md:1
msgid "Stack and Heap Example"
msgstr "์คํ๊ณผ ํ์ ๊ดํ ์์ "
#: src/memory-management/stack.md:3
msgid ""
"Creating a `String` puts fixed-sized metadata on the stack and dynamically "
"sized data, the actual string, 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 ""
"```rust,editable\n"
"fn main() {\n"
" let s1 = String::from(\"Hello\");\n"
"}\n"
"```"
#: 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 ""
"```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"
"```"
#: 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](https://doc.rust-lang.org/std/alloc/"
"struct.System.html) and custom allocators can be implemented using the "
"[Allocator API](https://doc.rust-lang.org/std/alloc/index.html)"
msgstr ""
"ํ์ ๊ธฐ๋ณธ์ ์ผ๋ก [System Allocator](https://doc.rust-lang.org/std/alloc/"
"struct.System.html)๋ฅผ ํตํด ํ ๋น๋ฉ๋๋ค. ๊ทธ๋ฆฌ๊ณ [Allocator API](https://doc."
"rust-lang.org/std/alloc/index.html)๋ฅผ ์ด์ฉํด์ ์ปค์คํ
๋ฉ๋ชจ๋ฆฌ ํ ๋น์๋ฅผ ๋ง๋ค ์"
"๋ ์์ต๋๋ค."
#: 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 (ptr, capacity, 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 (ptr, capacity, len): (usize, usize, usize) = std::mem::"
"transmute(s1);\n"
" println!(\"ptr = {ptr:#x}, len = {len}, capacity = {capacity}\");\n"
" }\n"
"}\n"
"\n"
"```"
#: 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 = malloc(n * sizeof(int));\n"
" //\n"
" // ... lots of code\n"
" //\n"
" free(int_array);\n"
"}\n"
"```"
msgstr ""
"```c\n"
"void foo(size_t n) {\n"
" int* int_array = malloc(n * sizeof(int));\n"
" //\n"
" // ... lots of code\n"
" //\n"
" free(int_array);\n"
"}\n"
"```"
#: src/memory-management/manual.md:21
msgid ""
"Memory is leaked if the function returns early between `malloc` and `free`: "
"the pointer is lost and we cannot deallocate the memory. Worse, freeing the "
"pointer twice, or accessing a freed pointer can lead to exploitable security "
"vulnerabilities."
msgstr ""
"๋ง์ฝ `malloc` ๊ณผ `free` ์ฌ์ด์์ ํจ์๊ฐ ์ผ์ฐ ๋ฐํ๋๋ฉด ๋ฉ๋ชจ๋ฆฌ ๋์ถ์ด ์ผ์ด๋ฉ๋"
"๋ค: ํฌ์ธํฐ๋ฅผ ์์ด๋ฒ๋ฆฌ๊ฒ ๋์ด ๋ฉ๋ชจ๋ฆฌ๋ฅผ ๋ฐํํ ์ ์๊ฒ ๋ฉ๋๋ค. ๊ฐ์ ํฌ์ธํฐ๋ฅผ "
"๋ ๋ฒ ๋ฐํํ๊ฑฐ๋, ์ด๋ฏธ ๋ฐํ๋ ํฌ์ธํฐ๋ฅผ ์ ๊ทผํ๋ ๊ฒ์ ์ฌ๊ฐํ ๋ณด์ ๋ฌธ์ ๋ฅผ ์ผ์ผ"
"ํฌ ์ ์์ต๋๋ค."
#: 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 "
"destroyed. The compiler guarantees that this happens, even if an exception "
"is raised."
msgstr ""
"ํฌ์ธํฐ๋ฅผ ๊ฐ์ฒด๋ก ๊ฐ์ธ๋๋ก ํ๋ฉด, ๊ทธ ๊ฐ์ฒด๊ฐ ์๋ฉธ๋ ๋ ๊ทธ ํฌ์ธํฐ๊ฐ ๊ฐ๋ฆฌํค๋ ๋ฉ๋ชจ"
"๋ฆฌ๊ฐ ํด์ ๋๋๋ก ํ ์ ์์ต๋๋ค. ์ปดํ์ผ๋ฌ๋ ๊ฐ์ฒด๊ฐ ์๋ฉธ๋ ๋ ๋ฐ๋์ ์๋ฉธ์๊ฐ "
"ํธ์ถ๋๋ ๊ฒ์ ๋ณด์ฅํฉ๋๋ค. ์ฌ์ง์ด๋ ์์ธ(exception)๊ฐ ๋ฐ์(_์ญ์ฃผ_: ํจ์์ ๋ฆฌํด"
"์ด๋ ์ค์ฝํ์ ์ข
๋ฃ ๋ฟ๋ง์ด ์๋๋ผ) ํ๋๋ผ๋์."
#: src/memory-management/scope-based.md:9
msgid ""
"This is often called _resource acquisition is initialization_ (RAII) and "
"gives 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 ""
"```c++\n"
"void say_hello(std::unique_ptr person) {\n"
" std::cout << \"Hello \" << person->name << std::endl;\n"
"}\n"
"```"
#: src/memory-management/scope-based.md:20
msgid ""
"The `std::unique_ptr` object is allocated on the stack, and points to memory "
"allocated on the heap."
msgstr ""
"`std::unique_ptr`๊ฐ์ฒด๋ ์คํ์ ํ ๋น๋๋ฉฐ, ํ์ ํ ๋น๋ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ๊ฐ๋ฆฌํต๋๋ค."
#: src/memory-management/scope-based.md:22
msgid "At the end of `say_hello`, the `std::unique_ptr` destructor will run."
msgstr "`say_hello`ํจ์๊ฐ ๋๋๋ฉด `std::unique_ptr`์ ์๋ฉธ์๊ฐ ์คํ๋ฉ๋๋ค."
#: src/memory-management/scope-based.md:23
msgid "The destructor frees the `Person` object it points to."
msgstr "์๋ฉธ์๋ `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 ""
"```c++\n"
"std::unique_ptr person = find_person(\"Carla\");\n"
"say_hello(std::move(person));\n"
"```"
#: 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 management:"
msgstr ""
"์๋, ์ค์ฝํ๊ธฐ๋ฐ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ์ ๋์์ผ๋ก ์๋ ๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ ๋ฐฉ์์ด ์์ต๋๋ค:"
#: src/memory-management/garbage-collection.md:6
msgid "The programmer never allocates or deallocates memory explicitly."
msgstr "๊ฐ๋ฐ์๋ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ๋ช
์์ ์ผ๋ก ํ ๋น/ํด์ ํ์ง ์์ต๋๋ค."
#: src/memory-management/garbage-collection.md:7
msgid ""
"A garbage collector finds unused memory and deallocates it for the "
"programmer."
msgstr "๊ฐ๋น์ง ์ปฌ๋ ํฐ(GC)๋ ์ฌ์ฉ๋์ง ์๋ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ์ฐพ์ ํด์ ํฉ๋๋ค."
#: src/memory-management/garbage-collection.md:9
msgid "Java Example"
msgstr "Java ์์ "
#: 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 ""
"```java\n"
"void sayHello(Person person) {\n"
" System.out.println(\"Hello \" + person.getName());\n"
"}\n"
"```"
#: 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."
msgstr "์๋ฐ์ฒ๋ผ ์์ ํ๊ณ ์ ํํฉ๋๋ค. ํ์ง๋ง GC๋ ์์ต๋๋ค."
#: src/memory-management/rust.md:6
msgid ""
"Depending on which abstraction (or combination of abstractions) you choose, "
"can be a single unique pointer, reference counted, or atomically reference "
"counted."
msgstr ""
"๋ค์ํ ์ถ์ํ๋ฅผ ์ ๊ณตํฉ๋๋ค: ๋จ์ผ ํฌ์ธํฐ, ์ฐธ์กฐ ์นด์ดํธ, ์ํ ๋ฏน(atomic) ์ฐธ์กฐ ์นด"
"์ดํธ."
#: src/memory-management/rust.md:7
msgid "Scope-based like C++, but the compiler enforces full adherence."
msgstr ""
"C++ ์ฒ๋ผ ๋ฒ์(์ค์ฝํ) ๊ธฐ๋ฐ์
๋๋ค. ํ์ง๋ง ์ปดํ์ผ๋ฌ๊ฐ ํจ์ฌ ๋ ์๊ฒฉํฉ๋๋ค."
#: src/memory-management/rust.md:8
msgid ""
"A Rust user can choose the right abstraction for the situation, some even "
"have no cost at runtime like C."
msgstr ""
"์ฌ์ฉ์๋ ์ํฉ์ ๋ฐ๋ผ ์ ํฉํ ์ถ์ํ๋ฅผ ์ ํํ ์ ์์ต๋๋ค. ๊ทธ ์ค์๋ C ์ธ์ด ์ฒ"
"๋ผ ๋ฐํ์ ์ค๋ฒํค๋๊ฐ ์๋ ๊ฒ๋ ์์ต๋๋ค."
#: src/memory-management/rust.md:10
msgid "Rust 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](https://doc.rust-lang.org/std/"
"boxed/struct.Box.html), [Vec](https://doc.rust-lang.org/std/vec/struct.Vec."
"html), [Rc](https://doc.rust-lang.org/std/rc/struct.Rc.html), or [Arc]"
"(https://doc.rust-lang.org/std/sync/struct.Arc.html). These encapsulate "
"ownership and memory allocation via various means, and prevent the potential "
"errors in C."
msgstr ""
"์ด ์์ ์์ ๊ทธ๊ฒ ์ด๋ป๊ฒ ๊ฐ๋ฅํ๋๋ ์ง๋ฌธ์ด ์์ผ๋ฉด, ๋ฌ์คํธ์์ ์ด ์์
์ ์ผ๋ฐ์ "
"์ผ๋ก [Box](https://doc.rust-lang.org/std/boxed/struct.Box.html), [Vec]"
"(https://doc.rust-lang.org/std/vec/struct.Vec.html), [Rc](https://doc.rust-"
"lang.org/std/rc/struct.Rc.html) ๋๋ [Arc](https://doc.rust-lang.org/std/"
"sync/struct.Arc.html)์ ๊ฐ์ RAII ํ์
์ ์ํด ์ฒ๋ฆฌ๋๋ค๊ณ ๋ต๋ณํ ์ ์์ต๋๋ค. "
"์ด๋ค์ ๋ค์ํ ๋ฐฉ๋ฒ์ ํตํด ์์ ๊ถ๊ณผ ๋ฉ๋ชจ๋ฆฌ ํ ๋น์ ๋ํ ๊ตฌ์ฒด์ ์ธ ๋ด์ฉ์์ ์บก์"
"ํํ์ฌ, C ์ธ์ด์๋ค๋ฉด ๋ฐ์ํ ์ ์์์ ๋ค์ํ ์๋ฌ๋ฅผ ๋ง์ต๋๋ค."
#: src/memory-management/rust.md:16
msgid ""
"You may be asked about destructors here, the [Drop](https://doc.rust-lang."
"org/std/ops/trait.Drop.html) trait is the Rust equivalent."
msgstr ""
"์๋ฉธ์์ ๋ํ ์ง๋ฌธ๋ ์์ ์ ์์ต๋๋ค. [Drop](https://doc.rust-lang.org/std/"
"ops/trait.Drop.html) ํธ๋ ์์ด ๋ต์
๋๋ค."
#: 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 src/memory-management/comparison.md:22
msgid "Manual like C:"
msgstr "C์ ๊ฐ์ ์๋ ๊ด๋ฆฌ:"
#: src/memory-management/comparison.md:8 src/memory-management/comparison.md:14
#: src/memory-management/comparison.md:17
msgid "No runtime overhead."
msgstr "๋ฐํ์ ์ค๋ฒํค๋๊ฐ ์์."
#: src/memory-management/comparison.md:9 src/memory-management/comparison.md:26
msgid "Automatic like Java:"
msgstr "JAVA์ ๊ฐ์ ์๋ํ ๊ด๋ฆฌ:"
#: src/memory-management/comparison.md:10
msgid "Fully automatic."
msgstr "์์ ํ ์๋ํ."
#: src/memory-management/comparison.md:11
#: src/memory-management/comparison.md:18
msgid "Safe and correct."
msgstr "์์ ํ๊ณ ์ ํํจ."
#: src/memory-management/comparison.md:12
#: src/memory-management/comparison.md:29
msgid "Scope-based like C++:"
msgstr "C++ ์ ๊ฐ์ ๋ฒ์ ๊ธฐ๋ฐ ๊ด๋ฆฌ:"
#: src/memory-management/comparison.md:13
msgid "Partially automatic."
msgstr "๋ถ๋ถ ์๋ํ."
#: src/memory-management/comparison.md:15
msgid "Compiler-enforced scope-based like Rust:"
msgstr "๋ฌ์คํธ์ ๊ฐ์ ์ปดํ์ผ๋ฌ ์ํ ๋ฒ์ ๊ธฐ๋ฐ ๊ด๋ฆฌ:"
#: src/memory-management/comparison.md:16
msgid "Enforced by compiler."
msgstr "์ปดํ์ผ๋ฌ์ ์ํด ์ํ๋ฉ๋๋ค."
#: src/memory-management/comparison.md:20
msgid "Cons of Different Memory Management Techniques"
msgstr "๋ฉ๋ชจ๋ฆฌ ๊ด๋ฆฌ ๋ฐฉ๋ฒ ๋ณ ๋จ์ "
#: src/memory-management/comparison.md:23
msgid "Use-after-free."
msgstr "์ฌ์ฉ ํ ํด์ ๋ฌธ์ ."
#: src/memory-management/comparison.md:24
msgid "Double-frees."
msgstr "์ด์ค ํด์ ๋ฌธ์ ."
#: src/memory-management/comparison.md:25
msgid "Memory leaks."
msgstr "๋ฉ๋ชจ๋ฆฌ ๋์ถ ๋ฌธ์ ."
#: src/memory-management/comparison.md:27
msgid "Garbage collection pauses."
msgstr "GC๋์์ผ๋ก ์ธํ ๋ฉ์ถค."
#: src/memory-management/comparison.md:28
msgid "Destructor delays."
msgstr ""
"์๋ฉธ์ ์ง์ฐ (_์ญ์ฃผ_: ํน์ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ๋์ด์ ์ฌ์ฉํ์ง ์๋๋ผ๋ ๊ณง๋ฐ๋ก ํด์ ๋์ง "
"์๊ณ GC๊ฐ ๋์ํ ๋ ๊น์ง ๊ธฐ๋ค๋ ค์ผ ํ๋ค๋ ์ )"
#: src/memory-management/comparison.md:30
msgid "Complex, opt-in by programmer (on C++)."
msgstr "๋ณต์กํ๋ฉฐ, ๊ฐ๋ฐ์์ ์ ํ์ฌํญ์."
#: src/memory-management/comparison.md:31
msgid "Circular references can lead to memory leaks"
msgstr "์ํ ์ฐธ์กฐ๊ฐ ๋ฐ์ํ๋ฉด ๋ฉ๋ชจ๋ฆฌ ๋์๊ฐ ๋ฐ์ํจ"
#: src/memory-management/comparison.md:32
msgid "Potential runtime overhead"
msgstr "๋ฐํ์ ์ค๋ฒํค๋ ์์ ์ ์์"
#: src/memory-management/comparison.md:33
msgid "Compiler-enforced and scope-based like Rust:"
msgstr "๋ฌ์คํธ์ ๊ฐ์ ์ปดํ์ผ๋ฌ๊ฐ ๊ฐ์ ํ๋ ์ํ ๋ฒ์ ๊ธฐ๋ฐ ๊ด๋ฆฌ:"
#: src/memory-management/comparison.md:34
msgid "Some upfront complexity."
msgstr "์ฒ์์ ๋ฐฐ์ธ ๋ ์ด๋ ค์."
#: src/memory-management/comparison.md:35
msgid "Can reject valid programs."
msgstr "์ฌ๋ฐ๋ฅธ ํ๋ก๊ทธ๋จ์ด๋๋ผ๋ ์ปดํ์ผ๋ฌ๊ฐ ๊ฑฐ๋ถํ ์ ์์."
#: src/ownership.md:3
msgid ""
"All variable bindings have a _scope_ where they are valid and it is an error "
"to use a variable outside its scope:"
msgstr ""
"๋ชจ๋ ๋ณ์ ๋ฐ์ธ๋ฉ์ ์ ํจํ \"๋ฒ์(์ค์ฝํ)\"๋ฅผ ๊ฐ์ง๋ฉฐ, ๋ฒ์ ๋ฐ์์ ๋ณ์ ์ฌ์ฉํ"
"๋ฉด ์๋ฌ๊ฐ ๋ฐ์ํฉ๋๋ค:"
#: src/ownership.md:6
msgid ""
"```rust,editable,compile_fail\n"
"struct Point(i32, i32);\n"
"\n"
"fn main() {\n"
" {\n"
" let p = Point(3, 4);\n"
" println!(\"x: {}\", p.0);\n"
" }\n"
" println!(\"y: {}\", p.1);\n"
"}\n"
"```"
msgstr ""
"```rust,editable,compile_fail\n"
"struct Point(i32, i32);\n"
"\n"
"fn main() {\n"
" {\n"
" let p = Point(3, 4);\n"
" println!(\"x: {}\", p.0);\n"
" }\n"
" println!(\"y: {}\", p.1);\n"
"}\n"
"```"
#: src/ownership.md:18
msgid ""
"At the end of the scope, the variable is _dropped_ and the data is freed."
msgstr ""
"์ค์ฝํ๊ฐ ์ข
๋ฃ๋๋ฉด ๋ณ์๋ \"์ญ์ (drop)\"๋์๋ค๊ณ ํ๋ฉฐ ๊ทธ ๋ณ์์ ๋ฐ์ดํฐ๋ ๋ฉ๋ชจ"
"๋ฆฌ์์ ํด์ ๋ฉ๋๋ค."
#: src/ownership.md:19
msgid "A destructor can run here to free up resources."
msgstr ""
"์ค์ฝํ๊ฐ ์ข
๋ฃ๋ ๋ ๋ค๋ฅธ ๋ฆฌ์์ค๋ฅผ ํด์ ํ๊ธฐ ์ํด ์๋ฉธ์๊ฐ ํธ์ถ๋๋๋ก ํ ์ ์์ต"
"๋๋ค."
#: src/ownership.md:20
msgid "We say that the variable _owns_ the value."
msgstr "์ด๊ฒ์ ๋๊ณ ๋ณ์๊ฐ ๊ฐ์ \"์์ \"ํ๋ค๊ณ ํํํฉ๋๋ค."
#: 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 ""
"```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"
"```"
#: src/ownership/move-semantics.md:14
msgid "The assignment of `s1` to `s2` transfers ownership."
msgstr "`s1`์ `s2`์ ํ ๋นํ์ฌ ์์ ๊ถ์ ์ด์ ์ํต๋๋ค."
#: src/ownership/move-semantics.md:15
msgid "When `s1` goes out of scope, nothing happens: it does not own anything."
msgstr ""
"`s1`์ ์ค์ฝํ๊ฐ ์ข
๋ฃ๋๋ฉด ์๋ฌด ์ผ๋ ์์ต๋๋ค: ์๋ํ๋ฉด `s1`์ ์๋ฌด๋ฐ ์์ ๊ถ์ด "
"์๊ธฐ ๋๋ฌธ์
๋๋ค."
#: src/ownership/move-semantics.md:16
msgid "When `s2` goes out of scope, the string data is freed."
msgstr "`s2`์ ์ค์ฝํ๊ฐ ์ข
๋ฃ๋๋ฉด ๋ฌธ์์ด ๋ฐ์ดํฐ๋ ํด์ ๋ฉ๋๋ค."
#: src/ownership/move-semantics.md:17
msgid "There is always _exactly_ one variable binding which owns a value."
msgstr "๊ฐ(๋ฐ์ดํฐ)์ ์์ ๊ถ์ ๊ฐ๋ ๋ณ์๋ ํญ์ _๋จ_ ํ๋ ์
๋๋ค."
#: src/ownership/move-semantics.md:21
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:23
msgid ""
"It is only the ownership that moves. Whether any machine code is generated "
"to manipulate the data itself is a matter of optimization, and such copies "
"are aggressively optimized away."
msgstr ""
"์ค์ ๋ก ์ด๋๋๋ ๊ฒ์ ์์ ๊ถ์ผ ๋ฟ์
๋๋ค. ๋จธ์ ์ฝ๋ ๋ ๋ฒจ์์ ๋ฐ์ดํฐ ๋ณต์ฌ๊ฐ ์ผ์ด"
"๋ ์ง ๋ง ์ง์ ๋ํ ๊ฒ์ ์ปดํ์ผ๋ฌ ๋ด๋ถ์์ ์ผ์ด๋๋ ์ต์ ํ ๋ฌธ์ ์
๋๋ค. ์ด๋ฐ ๋ณต"
"์ฌ๋ ์ต์ ํ ๊ณผ์ ์์ ์ ๊ฑฐ๊ฐ ๋ฉ๋๋ค."
#: src/ownership/move-semantics.md:25
msgid ""
"Simple values (such as integers) can be marked `Copy` (see later slides)."
msgstr ""
"์ ์์ ๊ฐ์ ๊ฐ๋จํ ๊ฐ๋ค์ `Copy` (๋ค์ ์ค๋ช
ํฉ๋๋ค)๋ก ๋งํน๋ ์ ์์ต๋๋ค."
#: src/ownership/move-semantics.md:27
msgid "In Rust, clones are explicit (by using `clone`)."
msgstr "๋ฌ์คํธ์์๋ ๋ณต์ฌํ ๋์๋ ๋ช
์์ ์ผ๋ก `clone`์ ์ฌ์ฉํฉ๋๋ค."
#: 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 ""
"```rust,editable\n"
"fn main() {\n"
" let s1: String = String::from(\"Rust\");\n"
" let s2: String = s1;\n"
"}\n"
"```"
#: src/ownership/moved-strings-rust.md:10
msgid "The heap data from `s1` is reused for `s2`."
msgstr "`s1`์ ํ ๋ฐ์ดํฐ๋ `s2`์์ ์ฌ์ฌ์ฉ ๋ฉ๋๋ค."
#: src/ownership/moved-strings-rust.md:11
msgid "When `s1` goes out of scope, nothing happens (it has been moved from)."
msgstr ""
"`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 ""
"```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"
"```"
#: 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 ""
"```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"
"```"
#: src/ownership/double-free-modern-cpp.md:1
msgid "Extra Work 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 ""
"```c++\n"
"std::string s1 = \"Cpp\";\n"
"std::string s2 = s1; // s1์ ๋ฐ์ดํฐ๋ฅผ ๋ณต์ ํฉ๋๋ค.\n"
"```"
#: src/ownership/double-free-modern-cpp.md:10
msgid ""
"The heap data from `s1` is duplicated and `s2` gets its own independent copy."
msgstr "`s1`์ ํ ๋ฐ์ดํฐ๋ ๋ณต์ ๋๊ณ , `s2`๋ ๋
๋ฆฝ์ ์ธ ๋ณต์ฌ๋ณธ์ ์ป์ต๋๋ค."
#: src/ownership/double-free-modern-cpp.md:11
msgid "When `s1` and `s2` go out of scope, they each free their own memory."
msgstr "`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 ""
"```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"
"```"
#: 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 ""
"```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"
"```"
#: src/ownership/moves-function-calls.md:3
msgid ""
"When you pass a value to a function, the value is assigned to the function "
"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"
"}\n"
"\n"
"fn main() {\n"
" let name = String::from(\"Alice\");\n"
" say_hello(name);\n"
" // say_hello(name);\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn say_hello(name: String) {\n"
" println!(\"Hello {name}\")\n"
"}\n"
"\n"
"fn main() {\n"
" let name = String::from(\"Alice\");\n"
" say_hello(name);\n"
" // say_hello(name);\n"
"}\n"
"```"
#: 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`."
msgstr ""
"`say_hello`ํจ์์ ์ฒซ๋ฒ์งธ ํธ์ถ์ `main`ํจ์๋ ์์ ์ด ๊ฐ์ง `name`์ ๋ํ ์์ ๊ถ"
"์ ํฌ๊ธฐํ๋ฏ๋ก, ์ดํ `main`ํจ์์์๋ `name`์ ์ฌ์ฉํ ์ ์์ต๋๋ค."
#: src/ownership/moves-function-calls.md:21
msgid ""
"The heap memory allocated for `name` will be freed at the end of the "
"`say_hello` function."
msgstr "`name`์ ํ ๋น๋์๋ ํ ๋ฉ๋ชจ๋ฆฌ๋ `say_hello`ํจ์์ ๋์์ ํด์ ๋ฉ๋๋ค."
#: src/ownership/moves-function-calls.md:22
msgid ""
"`main` can retain ownership if it passes `name` as a reference (`&name`) and "
"if `say_hello` accepts a reference as a parameter."
msgstr ""
"`main`ํจ์์์ `name`์ ์ฐธ์กฐ๋ก ์ ๋ฌ(๋น๋ฆผ)ํ๊ณ (`&name`), `say_hello`์์ ๋งค๊ฐ"
"๋ณ์๋ฅผ ์ฐธ์กฐํ์ผ๋ก ์์ ํ๋ค๋ฉด `main`ํจ์๋ `name`์ ์์ ๊ถ์ ์ ์งํ ์ ์์ต๋"
"๋ค."
#: src/ownership/moves-function-calls.md:23
msgid ""
"Alternatively, `main` can pass a clone of `name` in the first call (`name."
"clone()`)."
msgstr ""
"๋๋ ์ฒซ๋ฒ์งธ ํธ์ถ ์ `main`ํจ์์์ `name`์ ๋ณต์ ํ์ฌ ์ ๋ฌํ ์๋ ์์ต๋๋ค."
"(`name.clone()`)"
#: src/ownership/moves-function-calls.md:24
msgid ""
"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 ""
"๋ฌ์คํธ๋ ์ด๋์ ๊ธฐ๋ณธ์ผ๋ก ํ๊ณ ๋ณต์ ๋ฅผ ๋ช
์์ ์ผ๋ก ์ ์ธํ๋๋ก ๋ง๋ฌ์ผ๋ก, ์๋์น "
"์๊ฒ ๋ณต์ฌ๋ณธ์ ๋ง๋๋ ๊ฒ์ด C++์์๋ณด๋ค ์ด๋ ต์ต๋๋ค."
#: 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 ""
"```rust,editable\n"
"fn main() {\n"
" let x = 42;\n"
" let y = x;\n"
" println!(\"x: {x}\");\n"
" println!(\"y: {y}\");\n"
"}\n"
"```"
#: 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);\n"
"\n"
"fn main() {\n"
" let p1 = Point(3, 4);\n"
" let p2 = p1;\n"
" println!(\"p1: {p1:?}\");\n"
" println!(\"p2: {p2:?}\");\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"#[derive(Copy, Clone, Debug)]\n"
"struct Point(i32, i32);\n"
"\n"
"fn main() {\n"
" let p1 = Point(3, 4);\n"
" let p2 = p1;\n"
" println!(\"p1: {p1:?}\");\n"
" println!(\"p2: {p2:?}\");\n"
"}\n"
"```"
#: src/ownership/copy-clone.md:30
msgid "After the assignment, both `p1` and `p2` own their own data."
msgstr "ํ ๋น ํ, `p1`์ `p2`๋ ์์ ์ ๋ฐ์ดํฐ๋ฅผ ์์ ํฉ๋๋ค."
#: src/ownership/copy-clone.md:31
msgid "We can also use `p1.clone()` to explicitly copy the data."
msgstr "๋ช
์์ ์ผ๋ก `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."
msgstr ""
"๋ณต์ฌ๋ ๋ฉ๋ชจ๋ฆฌ์ ๋ด์ฉ์ ๊ทธ๋๋ก ํ ๋ฒ ๋ ๋ง๋๋ ๊ฒ์ ์๋ฏธํ๋ฉฐ, ์๋ฌด ๊ฐ์ฒด์์๋ "
"๋ค ์ง์ํ์ง๋ ์์ต๋๋ค."
#: src/ownership/copy-clone.md:38
msgid ""
"Copying does not allow for custom logic (unlike copy constructors in C++)."
msgstr ""
"๋ณต์ฌ๋ ์ปค์คํฐ๋ง์ด์ฆ ํ ์ ์์ต๋๋ค. (C++์์ ๋ณต์ฌ ์์ฑ์๋ฅผ ํตํด ๋ณต์ฌ ๋์์ "
"์์๋ก ๊ตฌํํ ์ ์๋ ๊ฒ๊ณผ ๋น๊ต๊ฐ ๋ฉ๋๋ค.)"
#: src/ownership/copy-clone.md:39
msgid ""
"Cloning is a more general operation and also allows for custom behavior by "
"implementing the `Clone` trait."
msgstr ""
"๋ณต์ ๋ ๋ณด๋ค ์ผ๋ฐ์ ์ธ ์์
์ด๋ฉฐ, `Clone`ํธ๋ ์์ ๊ตฌํํ์ฌ ๋ณต์ ์ ๋์์ ์ปค์คํฐ"
"๋ง์ด์ฆ ํ ์ ์์ต๋๋ค."
#: src/ownership/copy-clone.md:40
msgid "Copying does not work on types that implement the `Drop` trait."
msgstr "`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."
msgstr ""
"`Point`๊ตฌ์กฐ์ฒด์ `String`ํ๋๋ฅผ ์ถ๊ฐํ์ธ์. ์ปดํ์ผ ๋์ง ์์ ๊ฒ์
๋๋ค. ์๋ํ"
"๋ฉด `String`์ `Copy`ํธ๋ ์์ ๊ตฌํํ๊ณ ์์ง ์๊ธฐ ๋๋ฌธ์
๋๋ค."
#: src/ownership/copy-clone.md:45
msgid ""
"Remove `Copy` from the `derive` attribute. The compiler error is now in the "
"`println!` for `p1`."
msgstr ""
"`derive` ์์ฑ์์ `Copy`๋ฅผ ์ ๊ฑฐํด ๋ณด์ธ์. `p1`์ `println!` ํ ๋ ์ปดํ์ผ ์๋ฌ"
"๊ฐ ๋ฐ์ํ ๊ฒ์
๋๋ค."
#: src/ownership/copy-clone.md:46
msgid "Show that it works if you clone `p1` instead."
msgstr "`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 at compile time. In this case the default "
"implementations of `Copy` and `Clone` traits are generated."
msgstr ""
"๋ง์ฝ ํ์๋ค์ด `derive`์ ๋ํด ๋ฌป๋๋ค๋ฉด, ์ปดํ์ผ ์ ๋ฌ์คํธ์์ ์ฝ๋๋ฅผ ์์ฑํ๋"
"๋ฐฉ๋ฒ์ด๋ผ๊ณ ๋งํ๋ ๊ฒ์ผ๋ก ์ถฉ๋ถํฉ๋๋ค. ์ ๊ฒฝ์ฐ `Copy`์ `Clone` ํธ๋ ์์ ๋ํ "
"๊ธฐ๋ณธ ๊ตฌํ์ด ์์ฑ๋ฉ๋๋ค."
#: src/ownership/borrowing.md:3
msgid ""
"Instead of transferring ownership when calling a function, you can let a "
"function _borrow_ the value:"
msgstr ""
"ํจ์ ํธ์ถ์ ๊ฐ์ ์์ ๊ถ์ ์ด๋ํ๋ ๋์ ์ ํจ์๊ฐ ๊ฐ์ _๋น๋ ค์ฌ ์_ ์์ต๋๋ค:"
#: src/ownership/borrowing.md:6
msgid ""
"```rust,editable\n"
"#[derive(Debug)]\n"
"struct Point(i32, i32);\n"
"\n"
"fn add(p1: &Point, p2: &Point) -> Point {\n"
" Point(p1.0 + p2.0, p1.1 + p2.1)\n"
"}\n"
"\n"
"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 ""
"```rust,editable\n"
"#[derive(Debug)]\n"
"struct Point(i32, i32);\n"
"\n"
"fn add(p1: &Point, p2: &Point) -> Point {\n"
" Point(p1.0 + p2.0, p1.1 + p2.1)\n"
"}\n"
"\n"
"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"
"```"
#: src/ownership/borrowing.md:22
msgid "The `add` function _borrows_ two points and returns a new point."
msgstr ""
"`add` ํจ์๋ ๋ `Point` ๊ฐ์ฒด ๊ฐ์ \\_๋น๋ ค_์์ ์๋ก์ด `Point` ๊ฐ์ฒด๋ฅผ ๋ฐํํฉ๋"
"๋ค."
#: src/ownership/borrowing.md:23
msgid "The caller retains ownership of the inputs."
msgstr "`p1`๊ณผ `p2`์ ์์ ๊ถ์ ์ฌ์ ํ ํธ์ถ์(`main`ํจ์)์ ์์ต๋๋ค."
#: src/ownership/borrowing.md:27
msgid "Notes on stack returns:"
msgstr "์คํ์ ํ ๋น๋ ๊ฐ์ ๋ฆฌํดํ๋ ๊ฒ์ ๋ํ ์ฐธ๊ณ :"
#: src/ownership/borrowing.md:28
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](https://play.rust-lang.org/) or look at the "
"assembly in [Godbolt](https://rust.godbolt.org/). In the \"DEBUG\" "
"optimization level, the addresses should change, while they stay the same "
"when changing to the \"RELEASE\" setting:"
msgstr ""
"`add`์์ ๊ฐ์ ๋ฐํํ๋ ๊ฒ์ ๋งค์ฐ ๊ฐ์ด ์ธ๋ค๋ ๊ฒ์ ์ค๋ช
ํ์ธ์. ์๋ํ๋ฉด, ์ปดํ"
"์ผ๋ฌ๊ฐ ๋ณต์ฌ ๊ณผ์ ์ ์๋ตํ ์ ์๊ธฐ ๋๋ฌธ์
๋๋ค. ์ ์ฝ๋๋ฅผ ์คํ ์ฃผ์๋ฅผ ์ถ๋ ฅํ๋"
"๋ก ์์ ํ๊ณ [Playground](https://play.rust-lang.org/)์์ ์ํํด ๋ณด์ธ์. ๋"
"๋ [Godbolt](https://rust.godbolt.org/)์์ ์ด์
๋ธ๋ฆฌ๋ฅผ ํ์ธํด ๋ณด์ธ์. ์ต์ ํ "
"๋ ๋ฒจ์ด \"DEBUG\" ์ผ ๋์๋ ์ฃผ์๊ฐ ๋ฐ๋์ง๋ง, \"RELEASE\" ๋ ๋ฒจ์์๋ ๋ฐ๋์ง ์"
"์ต๋๋ค:"
#: src/ownership/borrowing.md:30
msgid ""
"```rust,editable\n"
"#[derive(Debug)]\n"
"struct Point(i32, i32);\n"
"\n"
"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"
"}\n"
"\n"
"pub 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"
"```"
msgstr ""
"```rust,editable\n"
"#[derive(Debug)]\n"
"struct Point(i32, i32);\n"
"\n"
"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"
"}\n"
"\n"
"pub 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"
"```"
#: src/ownership/borrowing.md:48
msgid "The Rust compiler can do return value optimization (RVO)."
msgstr "๋ฌ์คํธ ์ปดํ์ผ๋ฌ๋ ๋ฐํ๊ฐ ์ต์ ํ(RVO)๋ฅผ ์ํํ ์ ์์ต๋๋ค."
#: src/ownership/borrowing.md:49
msgid ""
"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 perform a simple and efficient `memcpy` "
"copy."
msgstr ""
"C++์์ copy elision์ ์์ฑ์์ ๋ถ์ํจ๊ณผ ๊ฐ๋ฅ์ฑ์ด ์์ด ์ธ์ด๋ ๋ฒจ์ ์ ์๊ฐ ํ์"
"ํ์ง๋ง ๋ฌ์คํธ์์๋ ๋ฌธ์ ๊ฐ ๋์ง ์์ต๋๋ค. ๋ง์ฝ RVO๊ฐ ๋ฐ์ํ์ง ์์ผ๋ฉด ๋ฌ์คํธ"
"๋ ํญ์ ๊ฐ๋จํ๊ณ ํจ์จ์ ์ธ `memcpy`๋ณต์ฌ๋ฅผ ์ํํ ๊ฒ์
๋๋ค."
#: 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_"
msgstr "ํ๋ฒ์ ํ๋ ์ด์์ `&T` ๊ฐ์ ๊ฐ์ง๊ฑฐ๋, _๋๋_"
#: src/ownership/shared-unique-borrows.md:6
msgid "You can have exactly one `&mut T` value."
msgstr "์ ํํ ํ๋์ `&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;\n"
"\n"
" {\n"
" let c: &mut i32 = &mut a;\n"
" *c = 20;\n"
" }\n"
"\n"
" println!(\"a: {a}\");\n"
" println!(\"b: {b}\");\n"
"}\n"
"```"
msgstr ""
"```rust,editable,compile_fail\n"
"fn main() {\n"
" let mut a: i32 = 10;\n"
" let b: &i32 = &a;\n"
"\n"
" {\n"
" let c: &mut i32 = &mut a;\n"
" *c = 20;\n"
" }\n"
"\n"
" println!(\"a: {a}\");\n"
" println!(\"b: {b}\");\n"
"}\n"
"```"
#: 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."
msgstr ""
"์ ์ฝ๋ ์ปดํ์ผ ๋์ง ์์ต๋๋ค. ์๋ํ๋ฉด `c`๋ `a`๋ฅผ ๊ฐ๋ณ ๋ณ์๋ก ๋น๋ ธ๊ณ , ์ด์ "
"๋์์ `b`๋ `a`๋ฅผ ๋ถ๋ณ ๋ณ์๋ก ๋น๋ ธ๊ธฐ ๋๋ฌธ์
๋๋ค."
#: src/ownership/shared-unique-borrows.md:26
msgid ""
"Move the `println!` statement for `b` before the scope that introduces `c` "
"to make the code compile."
msgstr ""
"`b`์ ๋ํ `println!` ๊ตฌ๋ถ์ `c`๊ฐ ์๋ ์ค์ฝํ ์์ผ๋ก ์ด๋ํ๋ฉด ์ปดํ์ผ์ด ๋ฉ๋"
"๋ค."
#: src/ownership/shared-unique-borrows.md:27
msgid ""
"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`๊ฐ ์ฌ์ฉ๋"
"๋ค๋ ๊ฒ์ ํ์ธํ ์ ์์ต๋๋ค. ๋น๋ฆผ ๊ฒ์ฌ๊ธฐ์ ์ด๋ฌํ ๊ธฐ๋ฅ์ \"non-lexical "
"lifetime\" ์ด๋ผ๊ณ ํฉ๋๋ค."
#: src/ownership/lifetimes.md:3
msgid "A borrowed value has a _lifetime_:"
msgstr "๋น๋ ค์จ ๊ฐ์ _์๋ช
_์ ๊ฐ์ต๋๋ค:"
#: src/ownership/lifetimes.md:5
msgid "The lifetime can be implicit: `add(p1: &Point, p2: &Point) -> Point`."
msgstr "์๋ช
์ ์๋ตํ ์ ์์ต๋๋ค: `add(p1: &Point, p2: &Point) -> Point`."
#: src/ownership/lifetimes.md:6
msgid "Lifetimes can also be explicit: `&'a Point`, `&'document str`."
msgstr "๋ฌผ๋ก ๋ช
์ํ ์๋ ์์ต๋๋ค: `&'a Point`, `&'document str`."
#: src/ownership/lifetimes.md:7 src/ownership/lifetimes-function-calls.md:23
msgid ""
"Read `&'a Point` as \"a borrowed `Point` which is valid for at least the "
"lifetime `a`\"."
msgstr ""
"`&'a Point` ๋ `Point`์ ์๋ช
์ด ์ต์ํ `'a`๋ผ๋ ์๋ช
๋ณด๋ค๋ ๊ฐ๊ฑฐ๋ ๋ ๊ธธ๋ค๋ "
"๊ฒ์ ์๋ฏธํฉ๋๋ค."
#: src/ownership/lifetimes.md:9
msgid ""
"Lifetimes are always inferred by the compiler: you cannot assign a lifetime "
"yourself."
msgstr ""
"์๋ช
์ ํญ์ ์ปดํ์ผ๋ฌ๊ฐ ์๋์ผ๋ก ์ถ๋ก ํฉ๋๋ค. ์ง์ ์๋ช
์ ์ง์ ํ ์๋ ์์ต๋๋ค."
#: src/ownership/lifetimes.md:11
msgid ""
"Lifetime annotations create constraints; the compiler verifies that there is "
"a valid solution."
msgstr ""
"์๋ช
ํ๊ธฐ(`'`)์ ์๋ช
์ถ๋ก ์ ์ ์ฝ์กฐ๊ฑด์ด ๋ฉ๋๋ค. ์ปดํ์ผ๋ฌ๋ ์ด ์ ์ฝ์กฐ๊ฑด์ ๋ง์กฑ"
"์ํค๋ ์ ์ํ ์๋ช
์ ์ถ๋ก ํ ์ ์๋์ง ๊ฒ์ฌ๋ฅผ ํฉ๋๋ค."
#: src/ownership/lifetimes.md:13
msgid ""
"Lifetimes for function arguments and return values must be fully specified, "
"but Rust allows lifetimes to be elided in most cases with [a few simple "
"rules](https://doc.rust-lang.org/nomicon/lifetime-elision.html)."
msgstr ""
"์๋, ํจ์์ ์ธ์์ ๋ฆฌํด๊ฐ์๋ ์๋ช
์ ์ค์ ํด์ผ ํฉ๋๋ค. ๊ทธ๋ฌ๋ [๋ช ๊ฐ์ง ์กฐ๊ฑด]"
"(https://doc.rust-lang.org/nomicon/lifetime-elision.html)์ ๋ง์กฑํ๋ ๋๋ถ๋ถ"
"์ ๊ฒฝ์ฐ์๋ ์๋ตํ ์ ์์ต๋๋ค."
#: 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:5
msgid ""
"```rust,editable\n"
"#[derive(Debug)]\n"
"struct Point(i32, i32);\n"
"\n"
"fn left_most<'a>(p1: &'a Point, p2: &'a Point) -> &'a Point {\n"
" if p1.0 < p2.0 { p1 } else { p2 }\n"
"}\n"
"\n"
"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 ""
"```rust,editable\n"
"#[derive(Debug)]\n"
"struct Point(i32, i32);\n"
"\n"
"fn left_most<'a>(p1: &'a Point, p2: &'a Point) -> &'a Point {\n"
" if p1.0 < p2.0 { p1 } else { p2 }\n"
"}\n"
"\n"
"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"
"```"
#: src/ownership/lifetimes-function-calls.md:21
msgid "`'a` is a generic parameter, it is inferred by the compiler."
msgstr "`'a`๋ ์ ๋ค๋ฆญ ๋งค๊ฐ๋ณ์๋ก ์ปดํ์ผ๋ฌ๋ก์ ์ํด ์ถ๋ก ๋ฉ๋๋ค."
#: src/ownership/lifetimes-function-calls.md:22
msgid "Lifetimes start with `'` and `'a` is a typical default name."
msgstr "์๋ช
์ ์ด๋ฆ์ `'` ๋ก ์์ํ๋ฉฐ ๋ณดํต `'a`๋ฅผ ๋ง์ด ์๋๋ค."
#: src/ownership/lifetimes-function-calls.md:25
msgid ""
"The _at least_ part is important when parameters are in different scopes."
msgstr ""
"๋งค๊ฐ๋ณ์๋ค์ด ์๋ก ๋ค๋ฅธ ์ค์ฝํ์ ์์ ๊ฒฝ์ฐ \"์ต์ํ\"์ด๋ผ๋ ์กฐ๊ฑด์ด ์ค์ํฉ๋๋ค."
#: src/ownership/lifetimes-function-calls.md:31
msgid ""
"Move the declaration of `p2` and `p3` into a new scope (`{ ... }`), "
"resulting in the following code:"
msgstr "`p2`์ `p3`๋ฅผ ์๋ก์ด ๋ฒ์(`{...}`)๋ก ์๋ ์ฝ๋์ ๊ฐ์ด ์ด๋ํด ๋ด
๋๋ค:"
#: src/ownership/lifetimes-function-calls.md:32
msgid ""
"```rust,ignore\n"
"#[derive(Debug)]\n"
"struct Point(i32, i32);\n"
"\n"
"fn left_most<'a>(p1: &'a Point, p2: &'a Point) -> &'a Point {\n"
" if p1.0 < p2.0 { p1 } else { p2 }\n"
"}\n"
"\n"
"fn main() {\n"
" let p1: Point = Point(10, 10);\n"
" let p3: &Point;\n"
" {\n"
" let p2: Point = Point(20, 20);\n"
" p3 = left_most(&p1, &p2);\n"
" }\n"
" println!(\"left-most point: {:?}\", p3);\n"
"}\n"
"```"
msgstr ""
"```rust,ignore\n"
"#[derive(Debug)]\n"
"struct Point(i32, i32);\n"
"\n"
"fn left_most<'a>(p1: &'a Point, p2: &'a Point) -> &'a Point {\n"
" if p1.0 < p2.0 { p1 } else { p2 }\n"
"}\n"
"\n"
"fn main() {\n"
" let p1: Point = Point(10, 10);\n"
" let p3: &Point;\n"
" {\n"
" let p2: Point = Point(20, 20);\n"
" p3 = left_most(&p1, &p2);\n"
" }\n"
" println!(\"left-most point: {:?}\", p3);\n"
"}\n"
"```"
#: src/ownership/lifetimes-function-calls.md:50
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."
msgstr ""
"์์
๊ณต๊ฐ์ ์ด๊ธฐํ ํ ํ ํจ์ ์๊ทธ๋์ฒ๋ฅผ `fn left_most<'a, 'b>(p1: &'a Point, "
"p2: &'a Point) -> &'b Point`๋ก ๋ณ๊ฒฝํด ๋ด
๋๋ค. ์ด ๊ฒฝ์ฐ `'a`์ `'b`์ฌ์ด์ ๊ด๊ณ"
"๊ฐ ๋ถ๋ถ๋ช
ํ๊ธฐ ๋๋ฌธ์ ์ปดํ์ผ ๋์ง ์์ต๋๋ค."
#: src/ownership/lifetimes-function-calls.md:53
msgid "Another way to explain it:"
msgstr "์ด ์๋ฌ๋ฅผ ์ค๋ช
ํ๋ ๋ ๋ค๋ฅธ ๋ฐฉ๋ฒ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:"
#: src/ownership/lifetimes-function-calls.md:54
msgid ""
"Two references to two values are borrowed by a function and the function "
"returns another reference."
msgstr "์ด ํจ์๋ ๋ ๊ฐ์ ๋น๋ ค์, ์๋ก์ด ์ฐธ์กฐ๋ฅผ ๋ฐํํฉ๋๋ค."
#: src/ownership/lifetimes-function-calls.md:56
msgid ""
"It must have come from one of those two inputs (or from a global variable)."
msgstr ""
"์ด ๋ฐํ๋ ์ฐธ์กฐ๋ ๋ ์
๋ ฅ ์ค ํ๋๋ก ๋ถํฐ ์์ผ ํฉ๋๋ค. (์๋๋ฉด ์ ์ญ ๋ณ์๋ก ๋ถ"
"ํฐ)"
#: src/ownership/lifetimes-function-calls.md:57
msgid ""
"Which one is it? The compiler needs to know, so at the call site the "
"returned reference is not used for longer than a variable from where the "
"reference came from."
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);\n"
"\n"
"fn erase(text: String) {\n"
" println!(\"Bye {text}!\");\n"
"}\n"
"\n"
"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 ""
"```rust,editable\n"
"#[derive(Debug)]\n"
"struct Highlight<'doc>(&'doc str);\n"
"\n"
"fn erase(text: String) {\n"
" println!(\"Bye {text}!\");\n"
"}\n"
"\n"
"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"
"```"
#: 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."
msgstr ""
"์์ ์์ ์์ `Highlight`์ ์ด๋
ธํ
์ด์
(`<'doc>`)์ ์ ์ด๋ `Highlight` ์ธ์คํด"
"์ค๊ฐ ์ด์์๋ ๋์์๋ ๊ทธ ๋ด๋ถ์ `&str`๊ฐ ๊ฐ๋ฆฌํค๋ ๋ฐ์ดํฐ ์ญ์ ์ด์์์ด์ผ ํ"
"๋ค๋ ๊ฒ์ ์๋ฏธํฉ๋๋ค."
#: src/ownership/lifetimes-data-structures.md:26
msgid ""
"If `text` is consumed before the end of the lifetime of `fox` (or `dog`), "
"the borrow checker throws an error."
msgstr ""
"๋ง์ฝ `text`๊ฐ `fox` (ํน์ `dog`)์ ์๋ช
์ด ๋คํ๊ธฐ ์ ์ `erase`ํจ์ ํธ์ถ ๋ฑ์ผ"
"๋ก ์ฌ๋ผ์ง๊ฒ ๋๋ค๋ฉด ๋น๋ฆผ ๊ฒ์ฌ๊ธฐ๊ฐ ์๋ฌ๋ฅผ ๋ฐ์ํฉ๋๋ค."
#: src/ownership/lifetimes-data-structures.md:27
msgid ""
"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."
msgstr ""
"๋น๋ฆฐ ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ง๊ณ ์๋ ํ์
์ ์ฌ์ฉ์๋ก ํ์ฌ๊ธ ์๋ณธ ๋ฐ์ดํฐ๋ฅผ ์ ์งํ๋๋ก ๊ฐ"
"์ ํฉ๋๋ค. ์ด๋ฐ ํ์
์ ๊ฒฝ๋ ๋ทฐ(lightweight view)๋ฅผ ๋ง๋๋๋ฐ ์ ์ฉํ์ง๋ง, ์ด ์ "
"์ฝ ์กฐ๊ฑด ๋๋ฌธ์ ์ด๋ฐ ํ์
์ ์ฌ์ฉํ๋ ๊ฒ์ด ์ฝ์ง๋ง์ ์์ต๋๋ค."
#: src/ownership/lifetimes-data-structures.md:28
msgid "When possible, make data structures own their data directly."
msgstr ""
"๋ฐ๋ผ์, ๊ฐ๋ฅํ๋ค๋ฉด, ๊ตฌ์กฐ์ฒด๊ฐ ์์ ์ ๋ฐ์ดํฐ๋ฅผ ์ง์ ์์ ํ๋๋ก ํ๋ ๊ฒ์ด ์ข์ต๋"
"๋ค."
#: src/ownership/lifetimes-data-structures.md:29
msgid ""
"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."
msgstr ""
"ํ ๊ตฌ์กฐ์ฒด์์ ์ฌ๋ฌ ์ฐธ์กฐ๊ฐ ์์ผ๋ฉด์, ์ด ์ฐธ์กฐ๋ค์ ์๋ช
์ด ์๋ก ๋ค๋ฅด๊ฒ ์ง์ ๋๋ "
"๊ฒฝ์ฐ๋ ์์ต๋๋ค. ์ด๋ ์ฐธ์กฐ์ ๊ทธ ๊ตฌ์กฐ์ฒด ๊ฐ์ ๊ด๊ณ ๋ฟ๋ง์ด ์๋๋ผ, ๊ทธ ์ฐธ์กฐ๋ค ์ฌ"
"์ด์ ์๋ช
๊ด๊ณ๋ฅผ ์ค๋ช
ํด์ผ ํ ๊ฒฝ์ฐ์ ํ์ํฉ๋๋ค. ๋งค์ฐ ๊ณ ๊ธ ๊ธฐ์ ์
๋๋ค."
#: 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/book-library.md:3
msgid ""
"We will learn much more about structs and the `Vec` type tomorrow. For "
"now, 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"
" let midpoint = vec.len() / 2;\n"
" println!(\"middle value: {}\", vec[midpoint]);\n"
" for item in &vec {\n"
" println!(\"item: {item}\");\n"
" }\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn main() {\n"
" let mut vec = vec![10, 20];\n"
" vec.push(30);\n"
" let midpoint = vec.len() / 2;\n"
" println!(\"middle value: {}\", vec[midpoint]);\n"
" for item in &vec {\n"
" println!(\"item: {item}\");\n"
" }\n"
"}\n"
"```"
#: src/exercises/day-1/book-library.md:18
msgid ""
"Use this to model a library's book collection. Copy the code below to "
" and update the types to make it compile:"
msgstr ""
"์๋ ์ฝ๋๋ ๋์๊ด์ ์๋ ๋์ ์ปฌ๋์
์ ๋ชจ๋ธ๋ง ํฉ๋๋ค. ์๋ ์ฝ๋๋ฅผ ์ ๋ณต์ฌํ ํ, ์ปดํ์ผ ๋๋๋ก ์์ ํด ๋ด
์๋ค:"
#: src/exercises/day-1/book-library.md:21
msgid ""
"```rust,should_panic\n"
"struct Library {\n"
" books: Vec,\n"
"}\n"
"\n"
"struct Book {\n"
" title: String,\n"
" year: u16,\n"
"}\n"
"\n"
"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"
"}\n"
"\n"
"// Implement the methods below. Update the `self` parameter to\n"
"// indicate the method's required level of ownership over the object:\n"
"//\n"
"// - `&self` for shared read-only access,\n"
"// - `&mut self` for unique and mutable access,\n"
"// - `self` for unique access by value.\n"
"impl Library {\n"
" fn new() -> Library {\n"
" todo!(\"Initialize and return a `Library` value\")\n"
" }\n"
"\n"
" //fn len(self) -> usize {\n"
" // todo!(\"Return the length of `self.books`\")\n"
" //}\n"
"\n"
" //fn is_empty(self) -> bool {\n"
" // todo!(\"Return `true` if `self.books` is empty\")\n"
" //}\n"
"\n"
" //fn add_book(self, book: Book) {\n"
" // todo!(\"Add a new book to `self.books`\")\n"
" //}\n"
"\n"
" //fn print_books(self) {\n"
" // todo!(\"Iterate over `self.books` and each book's title and "
"year\")\n"
" //}\n"
"\n"
" //fn oldest_book(self) -> Option<&Book> {\n"
" // todo!(\"Return a reference to the oldest book (if any)\")\n"
" //}\n"
"}\n"
"\n"
"// 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();\n"
"\n"
" //println!(\"The library is empty: library.is_empty() -> {}\", library."
"is_empty());\n"
" //\n"
" //library.add_book(Book::new(\"Lord of the Rings\", 1954));\n"
" //library.add_book(Book::new(\"Alice's Adventures in Wonderland\", "
"1865));\n"
" //\n"
" //println!(\"The library is no longer empty: library.is_empty() -> {}\", "
"library.is_empty());\n"
" //\n"
" //\n"
" //library.print_books();\n"
" //\n"
" //match library.oldest_book() {\n"
" // Some(book) => println!(\"The oldest book is {}\", book.title),\n"
" // None => println!(\"The library is empty!\"),\n"
" //}\n"
" //\n"
" //println!(\"The library has {} books\", library.len());\n"
" //library.print_books();\n"
"}\n"
"```"
msgstr ""
"```rust,should_panic\n"
"struct Library {\n"
" books: Vec,\n"
"}\n"
"\n"
"struct Book {\n"
" title: String,\n"
" year: u16,\n"
"}\n"
"\n"
"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"
"}\n"
"\n"
"// Implement the methods below. Update the `self` parameter to\n"
"// indicate the method's required level of ownership over the object:\n"
"//\n"
"// - `&self` for shared read-only access,\n"
"// - `&mut self` for unique and mutable access,\n"
"// - `self` for unique access by value.\n"
"impl Library {\n"
" fn new() -> Library {\n"
" todo!(\"Initialize and return a `Library` value\")\n"
" }\n"
"\n"
" //fn len(self) -> usize {\n"
" // todo!(\"Return the length of `self.books`\")\n"
" //}\n"
"\n"
" //fn is_empty(self) -> bool {\n"
" // todo!(\"Return `true` if `self.books` is empty\")\n"
" //}\n"
"\n"
" //fn add_book(self, book: Book) {\n"
" // todo!(\"Add a new book to `self.books`\")\n"
" //}\n"
"\n"
" //fn print_books(self) {\n"
" // todo!(\"Iterate over `self.books` and each book's title and "
"year\")\n"
" //}\n"
"\n"
" //fn oldest_book(self) -> Option<&Book> {\n"
" // todo!(\"Return a reference to the oldest book (if any)\")\n"
" //}\n"
"}\n"
"\n"
"// 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();\n"
"\n"
" //println!(\"The library is empty: library.is_empty() -> {}\", library."
"is_empty());\n"
" //\n"
" //library.add_book(Book::new(\"Lord of the Rings\", 1954));\n"
" //library.add_book(Book::new(\"Alice's Adventures in Wonderland\", "
"1865));\n"
" //\n"
" //println!(\"The library is no longer empty: library.is_empty() -> {}\", "
"library.is_empty());\n"
" //\n"
" //\n"
" //library.print_books();\n"
" //\n"
" //match library.oldest_book() {\n"
" // Some(book) => println!(\"The oldest book is {}\", book.title),\n"
" // None => println!(\"The library is empty!\"),\n"
" //}\n"
" //\n"
" //println!(\"The library has {} books\", library.len());\n"
" //library.print_books();\n"
"}\n"
"```"
#: 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:3
msgid ""
"The ownership model of Rust affects many APIs. An example of this is the "
"[`Iterator`](https://doc.rust-lang.org/std/iter/trait.Iterator.html) and "
"[`IntoIterator`](https://doc.rust-lang.org/std/iter/trait.IntoIterator.html) "
"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 src/bare-metal/no_std.md:28
msgid "`Iterator`"
msgstr "`Iterator`"
#: src/exercises/day-1/iterators-and-ownership.md:10
msgid ""
"Traits are like interfaces: they describe behavior (methods) for a type. The "
"`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 ""
"```rust\n"
"pub trait Iterator {\n"
" type Item;\n"
" fn next(&mut self) -> Option;\n"
"}\n"
"```"
#: 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();\n"
"\n"
" 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 ""
"```rust,editable\n"
"fn main() {\n"
" let v: Vec = vec![10, 20, 30];\n"
" let mut iter = v.iter();\n"
"\n"
" 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"
"```"
#: 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();\n"
"\n"
" let v0: Option<..> = iter.next();\n"
" println!(\"v0: {v0:?}\");\n"
"}\n"
"```"
msgstr ""
"```rust,editable,compile_fail\n"
"fn main() {\n"
" let v: Vec = vec![10, 20, 30];\n"
" let mut iter = v.iter();\n"
"\n"
" let v0: Option<..> = iter.next();\n"
" println!(\"v0: {v0:?}\");\n"
"}\n"
"```"
#: 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 "`IntoIterator`"
#: src/exercises/day-1/iterators-and-ownership.md:50
msgid ""
"The `Iterator` trait tells you how to _iterate_ once you have created an "
"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- ;\n"
"\n"
" fn into_iter(self) -> Self::IntoIter;\n"
"}\n"
"```"
msgstr ""
"```rust\n"
"pub trait IntoIterator {\n"
" type Item;\n"
" type IntoIter: Iterator
- ;\n"
"\n"
" fn into_iter(self) -> Self::IntoIter;\n"
"}\n"
"```"
#: src/exercises/day-1/iterators-and-ownership.md:62
msgid ""
"The syntax here means that every implementation of `IntoIterator` must "
"declare two types:"
msgstr "`IntoIterator`์ ๋ชจ๋ ๊ตฌํ์ ๋ฐ๋์ ๋ค์์ ๋ ํ์
์ ์ ์ธํด์ผํฉ๋๋ค:"
#: src/exercises/day-1/iterators-and-ownership.md:65
msgid "`Item`: the type we iterate over, such as `i8`,"
msgstr "`Item`: `i8`๊ณผ ๊ฐ์ด ๋ฐ๋ณต๋๋ ๊ฐ์ ํ์
,"
#: src/exercises/day-1/iterators-and-ownership.md:66
msgid "`IntoIter`: the `Iterator` type returned by the `into_iter` method."
msgstr "`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 "
"`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();\n"
"\n"
" let v0: Option<..> = iter.next();\n"
" println!(\"v0: {v0:?}\");\n"
"}\n"
"```"
msgstr ""
"```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();\n"
"\n"
" let v0: Option<..> = iter.next();\n"
" println!(\"v0: {v0:?}\");\n"
"}\n"
"```"
#: 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. They call `into_iter()` on an expression and iterates over the "
"resulting 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\")];\n"
"\n"
" for word in &v {\n"
" println!(\"word: {word}\");\n"
" }\n"
"\n"
" for word in v {\n"
" println!(\"word: {word}\");\n"
" }\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn main() {\n"
" let v: Vec = vec![String::from(\"foo\"), String::"
"from(\"bar\")];\n"
"\n"
" for word in &v {\n"
" println!(\"word: {word}\");\n"
" }\n"
"\n"
" for word in v {\n"
" println!(\"word: {word}\");\n"
" }\n"
"}\n"
"```"
#: 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 "
"IntoIterator for &Vec`](https://doc.rust-lang.org/std/vec/struct.Vec."
"html#impl-IntoIterator-for-%26'a+Vec%3CT,+A%3E) and [`impl IntoIterator for "
"Vec`](https://doc.rust-lang.org/std/vec/struct.Vec.html#impl-IntoIterator-"
"for-Vec%3CT,+A%3E) to check your answers."
msgstr ""
"์ ์ฝ๋์์ ์คํ ํด ๋ณธ ํ, ๋ค์ ๋ฌธ์๋ฅผ ์ฐธ์กฐํด์ ๋ต๋ณ์ ํ์ธํ์๊ธฐ ๋ฐ๋๋๋ค:"
"[`impl IntoIterator for &Vec`](https://doc.rust-lang.org/std/vec/struct."
"Vec.html#impl-IntoIterator-for-%26'a+Vec%3CT,+A%3E), [`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 "
"`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` 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: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"
"}\n"
"\n"
"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 ""
"```rust,editable\n"
"struct Person {\n"
" name: String,\n"
" age: u8,\n"
"}\n"
"\n"
"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"
"```"
#: src/structs.md:31 src/enums.md:34 src/enums/sizes.md:28 src/methods.md:30
#: src/methods/example.md:46 src/pattern-matching.md:25
#: src/pattern-matching/match-guards.md:22 src/control-flow/blocks.md:43
msgid "Key Points:"
msgstr "ํค ํฌ์ธํธ:"
#: src/structs.md:33
msgid "Structs work like in C or C++."
msgstr "๊ตฌ์กฐ์ฒด๋ C/C++ ์ ์ ์ฌํฉ๋๋ค."
#: src/structs.md:34
msgid "Like in C++, and unlike in C, no typedef is needed to define a type."
msgstr ""
"C++ ์ ๊ฐ์ง๋ง C์๋ ๋ฌ๋ฆฌ ํ์
์ ์ ์ํ๊ธฐ ์ํด 'typedef'๊ฐ ํ์ํ์ง ์์ต๋๋ค."
#: src/structs.md:35
msgid "Unlike in C++, there is no inheritance between structs."
msgstr "C++ ์ ๋ฌ๋ฆฌ ๊ตฌ์กฐ์ฒด ๊ฐ ์์์ ์์ต๋๋ค."
#: src/structs.md:36
msgid ""
"Methods are defined in an `impl` block, which we will see in following "
"slides."
msgstr ""
"๋ฉ์๋๋ `impl`๋ธ๋ก์ ์ ์ ํฉ๋๋ค. ๋ค์ ์ฌ๋ผ์ด๋์์ ํ์ธ ํ ์ ์์ต๋๋ค."
#: src/structs.md:37
msgid ""
"This may be a good time to let people know there are different types of "
"structs. "
msgstr ""
"์ฌ๋๋ค์๊ฒ ๋ค๋ฅธ ์ข
๋ฅ์ ๊ตฌ์กฐ์ฒด๊ฐ ์์์ ์๊ฒ ํ๊ธฐ์ ์ข์ ์๊ฐ์ผ ๊ฒ์
๋๋ค. "
#: src/structs.md:38
msgid ""
"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. "
msgstr ""
"0 ํฌ๊ธฐ ๊ตฌ์กฐ์ฒด(์: `struct Foo;`)๋ ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ง๊ณ ์์ง ์์ง๋ง ํน์ ํ์
์ ํธ"
"๋ ์์ ๊ตฌํํ ๋ ์ ์ฉํฉ๋๋ค. "
#: src/structs.md:39
msgid ""
"The next slide will introduce Tuple structs, used when the field names are "
"not important."
msgstr ""
"๋ค์ ์ฌ๋ผ์ด๋์์๋ ํ๋ ์ด๋ฆ์ด ๋ ์ค์ํ ๋ ์ฌ์ฉํ ์ ์๋ ํํ ๊ตฌ์กฐ์ฒด๋ฅผ ์"
"๊ฐํฉ๋๋ค."
#: src/structs.md:40
msgid ""
"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 ""
"`..peter` ๋ฌธ๋ฒ์ ํ ๊ตฌ์กฐ์ฒด์์ ๋ค๋ฅธ ๊ตฌ์กฐ์ฒด๋ก ๋๋ถ๋ถ์ ๊ฐ์ ๋ณต์ฌํ๋ ค๊ณ ํ๋ ๊ฒฝ"
"์ฐ์ ํ๋ํ๋ ํ์ดํํ๋ ์๊ณ ๋ฅผ ๋์ด์ค๋๋ค. ๋ฐ๋์ ๋งจ ๋ง์ง๋ง์ ์์ผ ํฉ๋๋ค."
#: 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);\n"
"\n"
"fn main() {\n"
" let p = Point(17, 23);\n"
" println!(\"({}, {})\", p.0, p.1);\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"struct Point(i32, i32);\n"
"\n"
"fn main() {\n"
" let p = Point(17, 23);\n"
" println!(\"({}, {})\", p.0, p.1);\n"
"}\n"
"```"
#: 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 PoundsOfForce(f64);\n"
"struct Newtons(f64);\n"
"\n"
"fn compute_thruster_force() -> PoundsOfForce {\n"
" todo!(\"Ask a rocket scientist at NASA\")\n"
"}\n"
"\n"
"fn set_thruster_force(force: Newtons) {\n"
" // ...\n"
"}\n"
"\n"
"fn main() {\n"
" let force = compute_thruster_force();\n"
" set_thruster_force(force);\n"
"}\n"
"\n"
"```"
msgstr ""
"```rust,editable,compile_fail\n"
"struct PoundsOfForce(f64);\n"
"struct Newtons(f64);\n"
"\n"
"fn compute_thruster_force() -> PoundsOfForce {\n"
" todo!(\"Ask a rocket scientist at NASA\")\n"
"}\n"
"\n"
"fn set_thruster_force(force: Newtons) {\n"
" // ...\n"
"}\n"
"\n"
"fn main() {\n"
" let force = compute_thruster_force();\n"
" set_thruster_force(force);\n"
"}\n"
"\n"
"```"
#: 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:"
msgstr ""
"๋ดํ์
์ ๊ธฐ๋ณธ ํ์
์ ๋ถ๊ฐ์ ์ธ ์๋ฏธ๋ฅผ ๋ํ๋ ์ข์ ๋ฐฉ๋ฒ์
๋๋ค. ์๋ฅผ ๋ค์ด:"
#: src/structs/tuple-structs.md:38
msgid "The number is measured in some units: `Newtons` in the example above."
msgstr "์ซ์๊ฐ์ ๋จ์๋ฅผ ํ์ํ ์ ์์: ์์์ `Newtons`์ด ๊ทธ ์์
๋๋ค."
#: src/structs/tuple-structs.md:39
msgid ""
"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)\\`."
msgstr ""
"๊ฐ์ด ์์ฑ๋ ๋ ์ด๋ฏธ ์ ํจ์ฑ ๊ฒ์ฌ๋ฅผ ํต๊ณผ ํ์ผ๋ฏ๋ก ์ถ๊ฐ์ ์ธ ๊ฒ์ฌ๊ฐ ํ์์์ต๋"
"๋ค: `PhoneNumber(String)`๋๋ `OddNumber(u32)`."
#: src/structs/tuple-structs.md:40
msgid ""
"Demonstrate how to add a `f64` value to a `Newtons` type by accessing the "
"single field in the newtype."
msgstr "`Newtons` ํ์
์ ๊ฐ์ `f64` ๊ฐ์ ๋ํ๋ ๋ฐฉ๋ฒ์ ๋ณด์ฌ์ฃผ์ธ์."
#: src/structs/tuple-structs.md:41
msgid ""
"Rust generally doesnโt like inexplicit things, like automatic unwrapping or "
"for instance using booleans as integers."
msgstr ""
"๋ฌ์คํธ๋ ๋ถ๋ช
ํ์ง ์์ ๊ฒ์ ์ซ์ดํฉ๋๋ค. ์๋ฅผ ๋ค๋ฉด ์๋์ผ๋ก unwrapํ๊ฑฐ๋ ๋ถ๋ฆฌ"
"์ธ ๊ฐ์ ์ ์ ๊ฐ์ผ๋ก ์ฌ์ฉํ๋ ๊ฒ๋ค์ด ๊ทธ๋ ์ต๋๋ค."
#: src/structs/tuple-structs.md:42
msgid "Operator overloading is discussed on Day 3 (generics)."
msgstr "์ฐ์ฐ์ ์ฌ์ ์๋ 3์ผ์ฐจ ์ ๋ค๋ฆญ ๋ถ๋ถ์์ ๋ค๋ฃน๋๋ค."
#: src/structs/tuple-structs.md:43
msgid ""
"The example is a subtle reference to the [Mars Climate Orbiter](https://en."
"wikipedia.org/wiki/Mars_Climate_Orbiter) failure."
msgstr ""
"์ด๋ [ํ์ฑ ๊ธฐํ ๊ถค๋์ (Mars Climate Orbiter)](https://en.wikipedia.org/wiki/"
"Mars_Climate_Orbiter)์ ์คํจ ์์ธ์ผ๋ก ์ง๋ชฉ๋ ๋๋ํ ์
๋ ฅ ์ค๋ฅ๋ฅผ ๋ณด์ฌ์ค๋๋ค."
#: src/structs/field-shorthand.md:3
msgid ""
"If you already have variables with the right names, then you can create the "
"struct using a shorthand:"
msgstr ""
"๊ตฌ์กฐ์ฒด ํ๋์ ๋์ผํ ์ด๋ฆ์ ๋ณ์๊ฐ ์๋ค๋ฉด ์๋์ ๊ฐ์ด \"์งง์ ๋ฌธ๋ฒ\"์ผ๋ก ๊ตฌ์กฐ"
"์ฒด๋ฅผ ์์ฑํ ์ ์์ต๋๋ค:"
#: src/structs/field-shorthand.md:6
msgid ""
"```rust,editable\n"
"#[derive(Debug)]\n"
"struct Person {\n"
" name: String,\n"
" age: u8,\n"
"}\n"
"\n"
"impl Person {\n"
" fn new(name: String, age: u8) -> Person {\n"
" Person { name, age }\n"
" }\n"
"}\n"
"\n"
"fn main() {\n"
" let peter = Person::new(String::from(\"Peter\"), 27);\n"
" println!(\"{peter:?}\");\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"#[derive(Debug)]\n"
"struct Person {\n"
" name: String,\n"
" age: u8,\n"
"}\n"
"\n"
"impl Person {\n"
" fn new(name: String, age: u8) -> Person {\n"
" Person { name, age }\n"
" }\n"
"}\n"
"\n"
"fn main() {\n"
" let peter = Person::new(String::from(\"Peter\"), 27);\n"
" println!(\"{peter:?}\");\n"
"}\n"
"```"
#: 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,editable\n"
"#[derive(Debug)]\n"
"struct Person {\n"
" name: String,\n"
" age: u8,\n"
"}\n"
"impl Person {\n"
" fn new(name: String, age: u8) -> Self {\n"
" Self { name, age }\n"
" }\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"#[derive(Debug)]\n"
"struct Person {\n"
" name: String,\n"
" age: u8,\n"
"}\n"
"impl Person {\n"
" fn new(name: String, age: u8) -> Self {\n"
" Self { name, age }\n"
" }\n"
"}\n"
"```"
#: src/structs/field-shorthand.md:41
msgid ""
"Implement the `Default` trait for the struct. Define some fields and use the "
"default values for the other fields."
msgstr ""
"`Default` ํธ๋ ์์ ๊ตฌํํด๋ณด์ธ์. ํ๋ ๋ช๊ฐ๋ ์ด๊ธฐํํ๊ณ ๋๋จธ์ง ํ๋๋ ๋ํดํธ "
"๊ฐ์ ์ฌ์ฉํ ์ ์์ต๋๋ค."
#: src/structs/field-shorthand.md:43
msgid ""
"```rust,editable\n"
"#[derive(Debug)]\n"
"struct Person {\n"
" name: String,\n"
" age: u8,\n"
"}\n"
"impl Default for Person {\n"
" fn default() -> Person {\n"
" Person {\n"
" name: \"Bot\".to_string(),\n"
" age: 0,\n"
" }\n"
" }\n"
"}\n"
"fn create_default() {\n"
" let tmp = Person {\n"
" ..Person::default()\n"
" };\n"
" let tmp = Person {\n"
" name: \"Sam\".to_string(),\n"
" ..Person::default()\n"
" };\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"#[derive(Debug)]\n"
"struct Person {\n"
" name: String,\n"
" age: u8,\n"
"}\n"
"impl Default for Person {\n"
" fn default() -> Person {\n"
" Person {\n"
" name: \"Bot\".to_string(),\n"
" age: 0,\n"
" }\n"
" }\n"
"}\n"
"fn create_default() {\n"
" let tmp = Person {\n"
" ..Person::default()\n"
" };\n"
" let tmp = Person {\n"
" name: \"Sam\".to_string(),\n"
" ..Person::default()\n"
" };\n"
"}\n"
"```"
#: src/structs/field-shorthand.md:68
msgid "Methods are defined in the `impl` block."
msgstr "๋ฉ์๋๋ `impl` ๋ธ๋ก์ ์ ์๋ฉ๋๋ค."
#: src/structs/field-shorthand.md:69
msgid ""
"Use struct update syntax to define a new structure using `peter`. Note that "
"the variable `peter` will no longer be accessible afterwards."
msgstr ""
"`peter`์ ๊ตฌ์กฐ์ฒด ์
๋ฐ์ดํธ ๋ฌธ๋ฒ์ ์ฌ์ฉํ์ฌ ์๋ก์ด ๊ตฌ์กฐ์ฒด ์ธ์คํด์ค๋ฅผ ๋ง๋ค์ด๋ณด์ธ"
"์. ์ด๋, `peter`๋ ๋์ด์ ์ฌ์ฉํ ์ ์๊ฒ ๋ฉ๋๋ค."
#: src/structs/field-shorthand.md:70
msgid ""
"Use `{:#?}` when printing structs to request the `Debug` representation."
msgstr "๊ตฌ์กฐ์ฒด๋ฅผ `Debug` ํํ๋ก ์ถ๋ ฅํ๋ ค๋ฉด `{:#?}`๋ฅผ ์ฌ์ฉํ์ธ์."
#: src/enums.md:3
msgid ""
"The `enum` keyword allows the creation of a type which has a few different "
"variants:"
msgstr "`enum` ํค์๋๋ ๋ช๊ฐ์ง ์ ํ(variant)์ผ๋ก ํํ๋๋ ํ์
์ ์์ฑํฉ๋๋ค:"
#: src/enums.md:6
msgid ""
"```rust,editable\n"
"fn generate_random_number() -> i32 {\n"
" // Implementation based on https://xkcd.com/221/\n"
" 4 // Chosen by fair dice roll. Guaranteed to be random.\n"
"}\n"
"\n"
"#[derive(Debug)]\n"
"enum CoinFlip {\n"
" Heads,\n"
" Tails,\n"
"}\n"
"\n"
"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"
"}\n"
"\n"
"fn main() {\n"
" println!(\"You got: {:?}\", flip_coin());\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"fn generate_random_number() -> i32 {\n"
" // Implementation based on https://xkcd.com/221/\n"
" 4 // Chosen by fair dice roll. Guaranteed to be random.\n"
"}\n"
"\n"
"#[derive(Debug)]\n"
"enum CoinFlip {\n"
" Heads,\n"
" Tails,\n"
"}\n"
"\n"
"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"
"}\n"
"\n"
"fn main() {\n"
" println!(\"You got: {:?}\", flip_coin());\n"
"}\n"
"```"
#: src/enums.md:36
msgid "Enumerations allow you to collect a set of values under one type"
msgstr "์ด๊ฑฐํ์ ๊ฐ๋ค์ ์งํฉ์ ํ๋์ ํ์
์ผ๋ก ํํํ ์ ์๊ฒ ํฉ๋๋ค"
#: src/enums.md:37
msgid ""
"This page offers an enum type `CoinFlip` with two variants `Heads` and "
"`Tails`. You might note the namespace when using variants."
msgstr ""
"์์ `CoinFlip` ์ด๊ฑฐํ ํ์
์ `Heads`์ `Tail` ๋ ๊ฐ์ง variant๋ฅผ ๊ฐ์ง๋๋ค. ์ด"
"๊ฑฐํ ํ์
์ variant๋ ๋ค์์คํ์ด์ค๋ฅผ ๋ถ์ฌ์ ์ฌ์ฉํฉ๋๋ค."
#: src/enums.md:38
msgid "This might be a good time to compare Structs and Enums:"
msgstr "๊ตฌ์กฐ์ฒด์ ์ด๊ฑฐํ์ ๋น๊ตํด ๋ณด๊ฒ ์ต๋๋ค:"
#: src/enums.md:39
msgid ""
"In both, you can have a simple version without fields (unit struct) or one "
"with different types of fields (variant payloads). "
msgstr ""
"๊ตฌ์กฐ์ฒด๋ ์ด๊ฑฐํ ๋ชจ๋, ํ๋๊ฐ ํ๋๋ ์๋ ๋จ์ํ ํํ๋ ๊ฐ๋ฅ ํ๊ณ , ์ฌ๋ฌ ํ์
"
"์ ํ๋๋ฅผ ๊ฐ์ง ์๋ ์์ต๋๋ค. "
#: src/enums.md:40
msgid "In both, associated functions are defined within an `impl` block."
msgstr "๋ ๋ค ์ฐ๊ดํจ์๋ฅผ `impl`๋ธ๋ก์ผ๋ก ์ ์ ํ ์ ์์ต๋๋ค."
#: src/enums.md:41
msgid ""
"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. "
msgstr ""
"์ด๊ฑฐํ ํ์
์ ๊ฐ variant๋ฅผ ๋ณ๋์ ๊ตฌ์กฐ์ฒด๋ก ์ ์ํ ์๋ ์์ง๋ง, ๊ทธ๋ฌ๋ฉด ์ด๊ฑฐํ"
"์ ์ฌ์ฉํ์ ๋์ฒ๋ผ ํ๋์ ํ์
์ผ๋ก ์ทจ๊ธํ ์ ์์ต๋๋ค. "
#: src/enums/variant-payloads.md:3
msgid ""
"You can define richer enums where the variants carry data. You can then use "
"the `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"
"}\n"
"\n"
"#[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"
"}\n"
"\n"
"fn main() {\n"
" let load = WebEvent::PageLoad;\n"
" let press = WebEvent::KeyPress('x');\n"
" let click = WebEvent::Click { x: 20, y: 80 };\n"
"\n"
" inspect(load);\n"
" inspect(press);\n"
" inspect(click);\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"enum WebEvent {\n"
" PageLoad, // ํ์ด๋ก๋๊ฐ ์๋ ์ ํ\n"
" KeyPress(char), // ํํ ๊ตฌ์กฐ์ฒด ์ ํ\n"
" Click { x: i64, y: i64 }, // ์์ ํ ๊ตฌ์กฐ์ฒด ์ ํ\n"
"}\n"
"\n"
"#[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"
"}\n"
"\n"
"fn main() {\n"
" let load = WebEvent::PageLoad;\n"
" let press = WebEvent::KeyPress('x');\n"
" let click = WebEvent::Click { x: 20, y: 80 };\n"
"\n"
" inspect(load);\n"
" inspect(press);\n"
" inspect(click);\n"
"}\n"
"```"
#: 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 `=>`."
msgstr ""
"์ด๊ฑฐํ ์์ ๊ฐ์ ํจํด ๋งค์นญ์ด ๋๊ณ ๋ ์ดํ์๋ง ์ ๊ทผ ๊ฐ๋ฅํฉ๋๋ค. ๊ทธ ๊ฐ์ ๋ํ "
"๋ ํผ๋ฐ์ค๋ `=>` ์ดํ์ ์ฌ์ฉ๊ฐ๋ฅํฉ๋๋ค."
#: src/enums/variant-payloads.md:36
msgid ""
"The expression is matched against the patterns from top to bottom. There is "
"no fall-through like in C or C++."
msgstr ""
"๋งค์น ํจํด๋ค์ ์์์ ์๋๋ก ์์์ ๋ฐ๋ผ ๊ฒ์ฌํฉ๋๋ค. C๋ C++์์์ ๊ฐ์ fall-"
"through๋ ์์ต๋๋ค."
#: src/enums/variant-payloads.md:37
msgid ""
"The match expression has a value. The value is the last expression in the "
"match arm which was executed."
msgstr ""
"๋งค์น ํํ์ ์์ฒด๋ ๊ฐ์ ๊ฐ์ง๋๋ค. ๊ทธ ๊ฐ์ ๋งค์นญ์ด ๋ ํจํด์์ ๊ฐ์ฅ ๋ง์ง๋ง์ ์"
"ํ๋ ํํ์์ด ๋ฉ๋๋ค."
#: src/enums/variant-payloads.md:38
msgid ""
"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. "
msgstr ""
"๊ฐ์ฅ ์์์ ๋ถํฐ ์ด๋ค ํจํด์ด ์ฃผ์ด์ง ๊ฐ๊ณผ ๋งค์นญํ๋์ง ๊ฒ์ฌํ ๋ค์, ๋งค์นญ๋ ๊ฒ์ด "
"๋ฐ๊ฒฌ๋๋ฉด ํ์ดํ๋ฅผ ๋ฐ๋ผ ์ฝ๋๋ฅผ ์ํํฉ๋๋ค. ํ ๋ฒ ๋งค์นญ์ด ๋๊ณ ์ฝ๋๊ฐ ์ํ์ด ๋"
"๋ฉด, ๋์ด์์ ๋งค์นญ์ ์์ต๋๋ค. "
#: src/enums/variant-payloads.md:39
msgid ""
"Demonstrate what happens when the search is inexhaustive. Note the advantage "
"the Rust compiler provides by confirming when all cases are handled. "
msgstr ""
"๋งค์นญ ํจํด๋ค์ด ๋ถ์ถฉ๋ถ ํ๋ค๋ฉด ์ด๋ค ์ผ์ด ์ผ์ด๋๋์ง ์ค๋ช
ํ์ธ์. ๋ฌ์คํธ ์ปดํ์ผ๋ฌ"
"๋ ๋ชจ๋ ๊ฐ๋ฅํ ์ผ์ด์ค๋ค์ด ํธ๋ค๋ง ๋๋์ง ์ฒดํฌํ๋ค๋ ์ ์ ์๊ธฐ์ํค์ธ์. "
#: src/enums/variant-payloads.md:40
msgid "`match` inspects a hidden discriminant field in the `enum`."
msgstr ""
"`match`๋ ์ฃผ์ด์ง ์ด๊ฑฐํ ๊ฐ์ด ์ค์ ๋ก ์ด๋ค variant์ธ์ง ํ๋จํ๊ธฐ ์ํด, ๊ทธ "
"variant์ ์ข
๋ฅ๊ฐ ๊ธฐ๋ก๋, ์จ๊ฒจ์ง ํ๋(์๋ณ์)์ ๊ฐ์ ๊ฒ์ฌํฉ๋๋ค."
#: src/enums/variant-payloads.md:41
msgid ""
"It is possible to retrieve the discriminant by calling `std::mem::"
"discriminant()`"
msgstr "`std::mem::discriminant()`๋ฅผ ์ด์ฉํ์ฌ ์๋ณ์๋ฅผ ์ป์ ์๋ ์์ต๋๋ค"
#: src/enums/variant-payloads.md:42
msgid ""
"This is useful, for example, if implementing `PartialEq` for structs where "
"comparing field values doesn't affect equality."
msgstr ""
"์ด๋ ๊ฐ ํ๋ ๊ฐ์ ๊ตณ์ด ๋น๊ตํ ํ์ ์๋ ๊ตฌ์กฐ์ฒด์ ๋ํด `PartialEq` ํธ๋ ์์ ๊ตฌ"
"ํํ ๋ ์ ์ฉํฉ๋๋ค."
#: src/enums/variant-payloads.md:43
msgid ""
"`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."
msgstr ""
"`WebEvent::Click { ... }`์ ์ต์์ ๋ ๋ฒจ ๊ตฌ์กฐ์ฒด `struct Click {...}`๋ฅผ ๋ฐ๋ก ์ "
"์ํ๊ณ `WebEvent::Click(Click)`์ฒ๋ผ ํํ ํํ๋ก ์ ์ํ ๊ฒ๊ณผ ์ ํํ ๊ฐ์ง ์์ต"
"๋๋ค. ์๋ฅผ ๋ค์ด `WebEvent::Click { ... }` ๋ก ์ ์ํ ๊ฒฝ์ฐ, ๊ตฌ์กฐ์ฒด ํํ์ ์ ์ฌ"
"ํ์ง๋ง ํธ๋ ์์ ๊ตฌํ ํ ์ ์์ต๋๋ค."
#: 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::any::type_name;\n"
"use std::mem::{align_of, size_of};\n"
"\n"
"fn dbg_size() {\n"
" println!(\"{}: size {} bytes, align: {} bytes\",\n"
" type_name::(), size_of::(), align_of::());\n"
"}\n"
"\n"
"enum Foo {\n"
" A,\n"
" B,\n"
"}\n"
"\n"
"fn main() {\n"
" dbg_size::();\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"use std::any::type_name;\n"
"use std::mem::{align_of, size_of};\n"
"\n"
"fn dbg_size() {\n"
" println!(\"{}: size {} bytes, align: {} bytes\",\n"
" type_name::(), size_of::(), align_of::());\n"
"}\n"
"\n"
"enum Foo {\n"
" A,\n"
" B,\n"
"}\n"
"\n"
"fn main() {\n"
" dbg_size::();\n"
"}\n"
"```"
#: src/enums/sizes.md:24
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:30
msgid ""
"Internally Rust is using a field (discriminant) to keep track of the enum "
"variant."
msgstr ""
"๋ฌ์คํธ๋ ์ด๊ฑฐํ variant๋ฅผ ๊ตฌ๋ถํ๊ธฐ ์ํด ๋ด๋ถ์ ์ผ๋ก ์๋ณ์(discriminant) ํ๋"
"๋ฅผ ์ฌ์ฉํฉ๋๋ค."
#: src/enums/sizes.md:32
msgid ""
"You can control the discriminant if needed (e.g., for compatibility with C):"
msgstr "C์์ ์ฐ๋์ ์ํด ์๋ณ์ ๊ฐ์ ์ง์ ์ง์ ํ ์๋ ์์ต๋๋ค:"
#: src/enums/sizes.md:34
msgid ""
"```rust,editable\n"
"#[repr(u32)]\n"
"enum Bar {\n"
" A, // 0\n"
" B = 10000,\n"
" C, // 10001\n"
"}\n"
"\n"
"fn main() {\n"
" println!(\"A: {}\", Bar::A as u32);\n"
" println!(\"B: {}\", Bar::B as u32);\n"
" println!(\"C: {}\", Bar::C as u32);\n"
"}\n"
"```"
msgstr ""
"```rust,editable\n"
"#[repr(u32)]\n"
"enum Bar {\n"
" A, // 0\n"
" B = 10000,\n"
" C, // 10001\n"
"}\n"
"\n"
"fn main() {\n"
" println!(\"A: {}\", Bar::A as u32);\n"
" println!(\"B: {}\", Bar::B as u32);\n"
" println!(\"C: {}\", Bar::C as u32);\n"
"}\n"
"```"
#: src/enums/sizes.md:49
msgid ""
"Without `repr`, the discriminant type takes 2 bytes, because 10001 fits 2 "
"bytes."
msgstr ""
"`repr` ์์ฑ์ด ์๋ค๋ฉด 10001์ด 2 ๋ฐ์ดํธ๋ก ํํ๊ฐ๋ฅํ๊ธฐ ๋๋ฌธ์ ์๋ณ์์ ํ์
ํฌ"
"๊ธฐ๋ 2 ๋ฐ์ดํธ๊ฐ ๋ฉ๋๋ค."
#: src/enums/sizes.md:53
msgid "Try out other types such as"
msgstr "๋ค๋ฅธ ํ์
๋ค๋ ํ์ธํด๋ณด์ธ์"
#: src/enums/sizes.md:55
msgid "`dbg_size!(bool)`: size 1 bytes, align: 1 bytes,"
msgstr "`dbg_size!(bool)`: ํฌ๊ธฐ 1 ๋ฐ์ดํธ, ์ ๋ ฌ: 1 ๋ฐ์ดํธ,"
#: src/enums/sizes.md:56
msgid ""
"`dbg_size!(Option)`: size 1 bytes, align: 1 bytes (niche optimization, "
"see below),"
msgstr ""
"`dbg_size!(Option)`: ํฌ๊ธฐ 1 ๋ฐ์ดํธ, ์ ๋ ฌ: 1 ๋ฐ์ดํธ (๋์น ์ต์ ํ, ์๋ "
"์ค๋ช
์ฐธ์กฐ)"
#: src/enums/sizes.md:57
msgid "`dbg_size!(&i32)`: size 8 bytes, align: 8 bytes (on a 64-bit machine),"
msgstr "`dbg_size!(&i32)`: ํฌ๊ธฐ 8 ๋ฐ์ดํธ, ์ ๋ ฌ: 8 ๋ฐ์ดํธ (64๋นํธ ๋จธ์ ์ธ ๊ฒฝ์ฐ)"
#: src/enums/sizes.md:58
msgid ""
"`dbg_size!(Option<&i32>)`: size 8 bytes, align: 8 bytes (null pointer "
"optimization, see below)."
msgstr ""
"`dbg_size!(Option<&i32>)`: ํฌ๊ธฐ 8 ๋ฐ์ดํธ, ์ ๋ ฌ: 8 ๋ฐ์ดํธ (๋ํฌ์ธํฐ ์ต์ ํ, ์"
"๋ ์ค๋ช
์ฐธ์กฐ)"
#: src/enums/sizes.md:60
msgid ""
"Niche optimization: Rust will merge unused bit patterns for the enum "
"discriminant."
msgstr ""
"๋์น ์ต์ ํ: ๋ฌ์คํธ๋ ์ด๊ฑฐํ ์๋ณ์๋ฅผ ์ฌ์ฉ๋์ง ์์ ๋นํธ ํจํด๊ณผ ๋ณํฉํฉ๋๋ค."
#: src/enums/sizes.md:63
msgid ""
"Null pointer optimization: For [some types](https://doc.rust-lang.org/std/"
"option/#representation), Rust guarantees that `size_of::()` equals "
"`size_of::