Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or even better:

    let span = Span::days(5).hours(8).minutes(1);


I believe this could actually not work. You would need a `fn days(n: i64) -> Span` and a `fn days(self, n: i64) -> Span` to exist at the same time, which Rust does not allow.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: