Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ucarion
on Jan 11, 2017
|
parent
|
context
|
favorite
| on:
Announcing Tokio 0.1
The method `from_str` is from the FromStr trait. [1] The `parse` function only works on types that implement FromStr. It's "special" in that it's the conventional way to do things, but the compiler does not treat FromStr specially.
[1]:
https://doc.rust-lang.org/std/str/trait.FromStr.html
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[1]: https://doc.rust-lang.org/std/str/trait.FromStr.html