Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vatsachak
18 days ago
|
parent
|
context
|
favorite
| on:
Functional State Machines in Rust: Typestate and N...
That's fair, but you would have to make sure that write_buffer is the only function that can create a WrittenBuffer<'a>. And then the second function could take a WrittenBuffer<'a> as an unused arg
I mean there's many ways to skin a cat!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
I mean there's many ways to skin a cat!