Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
csomar
11 months ago
|
parent
|
context
|
favorite
| on:
Jiff: Datetime library for Rust
It's implied. Here is the full syntax.
> let time: Timestamp = "2024-07-11T01:14:00Z".parse::<Timestamp>()?;
dhosek
11 months ago
[–]
That ::<TYPE> thing at the end is called a turbofish. It is rarely necessary to give it explicitly (but sometimes you do when the compiler cannot infer the return type on its own—thusfar in my own rust coding I’ve needed it exactly once).
bluejekyll
11 months ago
|
parent
|
next
[–]
It’s useful to know the full syntax, I’ve definitely encountered needing it more than one time.
karunamurti
11 months ago
|
parent
|
prev
[–]
https://turbo.fish/
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
> let time: Timestamp = "2024-07-11T01:14:00Z".parse::<Timestamp>()?;