Sha256: c271e68a6eaa4dffea16a2e4d86cb2065f124a8f6e7e3f50c89938406109cf96

Contents?: true

Size: 525 Bytes

Versions: 294

Compression:

Stored size: 525 Bytes

Contents

# Luhn: Using the From Trait

Before doing this exercise you should probably do the original Luhn exercise. If you have not completed Luhn, you can get it by running the command:

> `exercism fetch rust luhn`

In the original Luhn exercise you only validated strings, but the Luhn algorithm can be applied to integers as well.

In this exercise you'll implement the [From trait](https://doc.rust-lang.org/std/convert/trait.From.html) to convert strings, strs and unsigned integers into a Struct that performs the validation.

Version data entries

294 entries across 289 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.158 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.157 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.156 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.155 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.154 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.153 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.152 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.151 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.150 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.149 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.148 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.147 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.146 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.145 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.144 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.143 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.142 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.141 tracks/rust/exercises/luhn-from/.meta/description.md
trackler-2.2.1.140 tracks/rust/exercises/luhn-from/.meta/description.md