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

feat: Add type conversion and parsing exercises #249

Merged
merged 2 commits into from
Dec 16, 2019

Conversation

AbdouSeck
Copy link
Contributor

This pull request adds exercises for converting values into specific types. The exercises uses string to struct type conversions, but most of the traits in the exercises can handle more than just string parsing and conversions.

The following traits are covered:

  1. From and Into
  2. TryFrom and TryInto
  3. AsRef
  4. FromStr

The as operator is also covered.

@shadows-withal
Copy link
Member

Thanks!

@bors: r+

@bors
Copy link
Contributor

bors commented Dec 16, 2019

📌 Commit 0c85dc1 has been approved by fmoko

bors added a commit that referenced this pull request Dec 16, 2019
feat: Add type conversion and parsing exercises

This pull request adds exercises for converting values into specific types. The exercises uses string to struct type conversions, but most of the traits in the exercises can handle more than just string parsing and conversions.

The following traits are covered:
1. `From` and `Into`
2. `TryFrom` and `TryInto`
3. `AsRef`
4. `FromStr`

The `as` operator is also covered.
@bors
Copy link
Contributor

bors commented Dec 16, 2019

⌛ Testing commit 0c85dc1 with merge a8dae85...

@bors
Copy link
Contributor

bors commented Dec 16, 2019

💔 Test failed - checks-travis

@bors bors added S-waiting-on-review Status: Waiting for review and removed S-waiting-on-bors labels Dec 16, 2019
@shadows-withal
Copy link
Member

@AbdouSeck Looks like you're missing the "I AM NOT DONE" comment in your exercises!

@AbdouSeck
Copy link
Contributor Author

@fmoko I just added the lines to the exercise files. Please let me know if anything else looks amiss.

Thanks,

Abdou

@shadows-withal
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Dec 16, 2019

📌 Commit fc26b5e has been approved by fmoko

@bors bors added S-waiting-on-bors and removed S-waiting-on-review Status: Waiting for review labels Dec 16, 2019
@bors
Copy link
Contributor

bors commented Dec 16, 2019

⌛ Testing commit fc26b5e with merge 426a7bb...

bors added a commit that referenced this pull request Dec 16, 2019
feat: Add type conversion and parsing exercises

This pull request adds exercises for converting values into specific types. The exercises uses string to struct type conversions, but most of the traits in the exercises can handle more than just string parsing and conversions.

The following traits are covered:
1. `From` and `Into`
2. `TryFrom` and `TryInto`
3. `AsRef`
4. `FromStr`

The `as` operator is also covered.
@bors
Copy link
Contributor

bors commented Dec 16, 2019

☀️ Test successful - checks-travis
Approved by: fmoko
Pushing 426a7bb to master...

@bors bors merged commit fc26b5e into rust-lang:master Dec 16, 2019
@AbdouSeck AbdouSeck deleted the conversions branch December 16, 2019 16:53
pedantic79 pushed a commit to pedantic79/rustlings that referenced this pull request Apr 11, 2020
feat: Add type conversion and parsing exercises

This pull request adds exercises for converting values into specific types. The exercises uses string to struct type conversions, but most of the traits in the exercises can handle more than just string parsing and conversions.

The following traits are covered:
1. `From` and `Into`
2. `TryFrom` and `TryInto`
3. `AsRef`
4. `FromStr`

The `as` operator is also covered.
ppp3 pushed a commit to ppp3/rustlings that referenced this pull request May 23, 2022
feat: Add type conversion and parsing exercises

This pull request adds exercises for converting values into specific types. The exercises uses string to struct type conversions, but most of the traits in the exercises can handle more than just string parsing and conversions.

The following traits are covered:
1. `From` and `Into`
2. `TryFrom` and `TryInto`
3. `AsRef`
4. `FromStr`

The `as` operator is also covered.
dmoore04 pushed a commit to dmoore04/rustlings that referenced this pull request Sep 11, 2022
feat: Add type conversion and parsing exercises

This pull request adds exercises for converting values into specific types. The exercises uses string to struct type conversions, but most of the traits in the exercises can handle more than just string parsing and conversions.

The following traits are covered:
1. `From` and `Into`
2. `TryFrom` and `TryInto`
3. `AsRef`
4. `FromStr`

The `as` operator is also covered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants