diff options
| author | Dídac Sementé Fernández <didac.semente@gmail.com> | 2020-04-27 20:17:26 +0200 |
|---|---|---|
| committer | Dídac Sementé Fernández <didac.semente@gmail.com> | 2020-04-27 20:26:34 +0200 |
| commit | b66e2e09622243e086a0f1258dd27e1a2d61c891 (patch) | |
| tree | 0fcd69caa026fff39b6bc8e35506aaaf5001b06a /info.toml | |
| parent | 32721bbc83953ad9cad7784cce645892d74aa778 (diff) | |
feat: Added exercise structs3.rs
Diffstat (limited to 'info.toml')
| -rw-r--r-- | info.toml | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -232,6 +232,19 @@ Creating instances of structs is easy, all you need to do is assign some values There is however some shortcuts that can be taken when instantiating structs. Have a look in The Book, to find out more: https://doc.rust-lang.org/stable/book/ch05-01-defining-structs.html#creating-instances-from-other-instances-with-struct-update-syntax""" +[[exercises]] +name = "structs3" +path = "exercises/structs/structs3.rs" +mode = "test" +hint = """ +The new method needs to panic if the weight is physically impossible :), how do we do that in Rust? + +For is_international: What makes a package international? Seems related to the places it goes through right? + +For calculate_transport_fees: Bigger is more expensive usually, we don't have size, but something may fit the bill here :) + +Have a look in The Book, to find out more about method implementations: https://doc.rust-lang.org/book/ch05-03-method-syntax.html""" + # STRINGS [[exercises]] |
