Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ex3 #28

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

ex3 #28

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Rust-Bootcamp-2023.rar
Binary file not shown.
1 change: 1 addition & 0 deletions target/.rustc_info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"rustc_fingerprint":10311941557552198947,"outputs":{"4614504638168534921":{"success":true,"status":"","code":0,"stdout":"rustc 1.68.2 (9eb3afe9e 2023-03-27)\nbinary: rustc\ncommit-hash: 9eb3afe9ebe9c7d2b84b71002d44f4a0edac95e0\ncommit-date: 2023-03-27\nhost: x86_64-pc-windows-msvc\nrelease: 1.68.2\nLLVM version: 15.0.6\n","stderr":""},"15729799797837862367":{"success":true,"status":"","code":0,"stdout":"___.exe\nlib___.rlib\n___.dll\n___.dll\n___.lib\n___.dll\nC:\\Users\\alvinichi\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\npacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"msvc\"\ntarget_family=\"windows\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"windows\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"pc\"\nwindows\n","stderr":""},"12744816824612481171":{"success":true,"status":"","code":0,"stdout":"___.exe\nlib___.rlib\n___.dll\n___.dll\n___.lib\n___.dll\nC:\\Users\\alvinichi\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\npacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_arch=\"x86_64\"\ntarget_endian=\"little\"\ntarget_env=\"msvc\"\ntarget_family=\"windows\"\ntarget_feature=\"fxsr\"\ntarget_feature=\"sse\"\ntarget_feature=\"sse2\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"windows\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"pc\"\nwindows\n","stderr":""}},"successes":{}}
3 changes: 3 additions & 0 deletions target/CACHEDIR.TAG
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Signature: 8a477f597d28d172789f06886806bc55
# This file is a cache directory tag created by cargo.
# For information about cache directory tags see https://bford.info/cachedir/
Empty file added target/debug/.cargo-lock
Empty file.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file has an mtime of when this was started.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1ca4b0724e08c04a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"rustc":9407668007973439367,"features":"[]","target":9977579977572820120,"profile":1021633075455700787,"path":4579793551872518089,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug\\.fingerprint\\Rust-Bootcamp-2023-0ff465c063e9ff94\\dep-test-integration-test-strings"}}],"rustflags":[],"metadata":6145817384955050648,"config":2202906307356721367,"compile_kind":0}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file has an mtime of when this was started.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"rustc":9407668007973439367,"features":"[]","target":14775720455779731529,"profile":1021633075455700787,"path":14165135349443804651,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug\\.fingerprint\\Rust-Bootcamp-2023-3de4646e101ba634\\dep-test-integration-test-structs"}}],"rustflags":[],"metadata":6145817384955050648,"config":2202906307356721367,"compile_kind":0}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file has an mtime of when this was started.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"message":"crate `Rust_Bootcamp_2023` should have a snake case name","code":{"code":"non_snake_case","explanation":null},"level":"warning","spans":[{"file_name":"src\\main.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"convert the identifier to snake case: `rust_bootcamp_2023`","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`#[warn(non_snake_case)]` on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;11mwarning\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: crate `Rust_Bootcamp_2023` should have a snake case name\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m= \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15mhelp\u001b[0m\u001b[0m: convert the identifier to snake case: `rust_bootcamp_2023`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m= \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15mnote\u001b[0m\u001b[0m: `#[warn(non_snake_case)]` on by default\u001b[0m\n\n"}
{"message":"1 warning emitted","code":null,"level":"warning","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;11mwarning\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: 1 warning emitted\u001b[0m\n\n"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f6c56749f8e78a13
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"rustc":9407668007973439367,"features":"[]","target":14568381456063888924,"profile":1021633075455700787,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug\\.fingerprint\\Rust-Bootcamp-2023-4d13fb8b1001735e\\dep-test-bin-Rust-Bootcamp-2023"}}],"rustflags":[],"metadata":6145817384955050648,"config":2202906307356721367,"compile_kind":0}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
772dfde495c9d50f
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"rustc":9407668007973439367,"features":"[]","target":14568381456063888924,"profile":7309141686862299243,"path":1684066648322511884,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug\\.fingerprint\\Rust-Bootcamp-2023-92a865b777acd30a\\dep-bin-Rust-Bootcamp-2023"}}],"rustflags":[],"metadata":6145817384955050648,"config":2202906307356721367,"compile_kind":0}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file has an mtime of when this was started.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"message":"crate `Rust_Bootcamp_2023` should have a snake case name","code":{"code":"non_snake_case","explanation":null},"level":"warning","spans":[{"file_name":"src\\main.rs","byte_start":0,"byte_end":0,"line_start":1,"line_end":1,"column_start":1,"column_end":1,"is_primary":true,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"convert the identifier to snake case: `rust_bootcamp_2023`","code":null,"level":"help","spans":[],"children":[],"rendered":null},{"message":"`#[warn(non_snake_case)]` on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;11mwarning\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: crate `Rust_Bootcamp_2023` should have a snake case name\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m= \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15mhelp\u001b[0m\u001b[0m: convert the identifier to snake case: `rust_bootcamp_2023`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m= \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15mnote\u001b[0m\u001b[0m: `#[warn(non_snake_case)]` on by default\u001b[0m\n\n"}
{"message":"1 warning emitted","code":null,"level":"warning","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;11mwarning\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: 1 warning emitted\u001b[0m\n\n"}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file has an mtime of when this was started.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{"message":"expected value, found struct variant `Message::ChangeColor`","code":{"code":"E0533","explanation":"An item which isn't a unit struct, a variant, nor a constant has been used as a\nmatch pattern.\n\nErroneous code example:\n\n```compile_fail,E0533\nstruct Tortoise;\n\nimpl Tortoise {\n fn turtle(&self) -> u32 { 0 }\n}\n\nmatch 0u32 {\n Tortoise::turtle => {} // Error!\n _ => {}\n}\nif let Tortoise::turtle = 0u32 {} // Same error!\n```\n\nIf you want to match against a value returned by a method, you need to bind the\nvalue first:\n\n```\nstruct Tortoise;\n\nimpl Tortoise {\n fn turtle(&self) -> u32 { 0 }\n}\n\nmatch 0u32 {\n x if x == Tortoise.turtle() => {} // Bound into `x` then we compare it!\n _ => {}\n}\n```\n"},"level":"error","spans":[{"file_name":"exercises/complex-type/src/enums.rs","byte_start":3082,"byte_end":3102,"line_start":142,"line_end":142,"column_start":23,"column_end":43,"is_primary":true,"text":[{"text":" state.process(Message::ChangeColor(255, 0, 255));","highlight_start":23,"highlight_end":43}],"label":"not a value","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror[E0533]\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: expected value, found struct variant `Message::ChangeColor`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m--> \u001b[0m\u001b[0mexercises/complex-type/src/enums.rs:142:23\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m142\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m state.process(Message::ChangeColor(255, 0, 255));\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^^^^^^^^^^^^^^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9mnot a value\u001b[0m\n\n"}
{"message":"expected value, found struct variant `Message::Echo`","code":{"code":"E0533","explanation":"An item which isn't a unit struct, a variant, nor a constant has been used as a\nmatch pattern.\n\nErroneous code example:\n\n```compile_fail,E0533\nstruct Tortoise;\n\nimpl Tortoise {\n fn turtle(&self) -> u32 { 0 }\n}\n\nmatch 0u32 {\n Tortoise::turtle => {} // Error!\n _ => {}\n}\nif let Tortoise::turtle = 0u32 {} // Same error!\n```\n\nIf you want to match against a value returned by a method, you need to bind the\nvalue first:\n\n```\nstruct Tortoise;\n\nimpl Tortoise {\n fn turtle(&self) -> u32 { 0 }\n}\n\nmatch 0u32 {\n x if x == Tortoise.turtle() => {} // Bound into `x` then we compare it!\n _ => {}\n}\n```\n"},"level":"error","spans":[{"file_name":"exercises/complex-type/src/enums.rs","byte_start":3141,"byte_end":3154,"line_start":143,"line_end":143,"column_start":23,"column_end":36,"is_primary":true,"text":[{"text":" state.process(Message::Echo(String::from(\"hello world\")));","highlight_start":23,"highlight_end":36}],"label":"not a value","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror[E0533]\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: expected value, found struct variant `Message::Echo`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m--> \u001b[0m\u001b[0mexercises/complex-type/src/enums.rs:143:23\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m143\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m state.process(Message::Echo(String::from(\"hello world\")));\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^^^^^^^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9mnot a value\u001b[0m\n\n"}
{"message":"expected value, found struct variant `Message::Move`","code":{"code":"E0533","explanation":"An item which isn't a unit struct, a variant, nor a constant has been used as a\nmatch pattern.\n\nErroneous code example:\n\n```compile_fail,E0533\nstruct Tortoise;\n\nimpl Tortoise {\n fn turtle(&self) -> u32 { 0 }\n}\n\nmatch 0u32 {\n Tortoise::turtle => {} // Error!\n _ => {}\n}\nif let Tortoise::turtle = 0u32 {} // Same error!\n```\n\nIf you want to match against a value returned by a method, you need to bind the\nvalue first:\n\n```\nstruct Tortoise;\n\nimpl Tortoise {\n fn turtle(&self) -> u32 { 0 }\n}\n\nmatch 0u32 {\n x if x == Tortoise.turtle() => {} // Bound into `x` then we compare it!\n _ => {}\n}\n```\n"},"level":"error","spans":[{"file_name":"exercises/complex-type/src/enums.rs","byte_start":3209,"byte_end":3222,"line_start":144,"line_end":144,"column_start":23,"column_end":36,"is_primary":true,"text":[{"text":" state.process(Message::Move(Point { x: 10, y: 15 }));","highlight_start":23,"highlight_end":36}],"label":"not a value","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror[E0533]\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: expected value, found struct variant `Message::Move`\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m--> \u001b[0m\u001b[0mexercises/complex-type/src/enums.rs:144:23\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;14m144\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m state.process(Message::Move(Point { x: 10, y: 15 }));\u001b[0m\n\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;14m| \u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^^^^^^^^^^\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9mnot a value\u001b[0m\n\n"}
{"message":"aborting due to 3 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror\u001b[0m\u001b[0m\u001b[1m\u001b[38;5;15m: aborting due to 3 previous errors\u001b[0m\n\n"}
{"message":"For more information about this error, try `rustc --explain E0533`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;15mFor more information about this error, try `rustc --explain E0533`.\u001b[0m\n"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"rustc":9407668007973439367,"features":"[]","target":17095176552372332710,"profile":1021633075455700787,"path":14610098726143038374,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug\\.fingerprint\\Rust-Bootcamp-2023-b044af163d467239\\dep-test-integration-test-enums"}}],"rustflags":[],"metadata":6145817384955050648,"config":2202906307356721367,"compile_kind":0}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file has an mtime of when this was started.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b29aca814f9e8957
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"rustc":9407668007973439367,"features":"[]","target":17923933857679457544,"profile":1021633075455700787,"path":7303951157213722484,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug\\.fingerprint\\Rust-Bootcamp-2023-bdcd62cce45fc67f\\dep-test-integration-test-conditions"}}],"rustflags":[],"metadata":6145817384955050648,"config":2202906307356721367,"compile_kind":0}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file has an mtime of when this was started.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8be69f2f804f0221
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"rustc":9407668007973439367,"features":"[]","target":13595101020601411613,"profile":1021633075455700787,"path":715612545035395396,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug\\.fingerprint\\Rust-Bootcamp-2023-eac4ca119b0368a9\\dep-test-integration-test-functions"}}],"rustflags":[],"metadata":6145817384955050648,"config":2202906307356721367,"compile_kind":0}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This file has an mtime of when this was started.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7e7ccc1ecd1d5ea8
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"rustc":9407668007973439367,"features":"[]","target":10194465573822108472,"profile":7309141686862299243,"path":11109349514003257457,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug\\.fingerprint\\basic-of-rust-0bdb5266ca74a796\\dep-lib-basic-of-rust"}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}
Loading