2 ms·
This technique is mentioned in the article. It is called the Typestate pattern: http://cliffle.com/blog/rust-typestate/ http://cliffle.com/blog/rust-typestate/
by scns 4y ago
This technique is mentioned in the article. It is called the Typestate pattern:
http://cliffle.com/blog/rust-typestate/ http://cliffle.com/blog/rust-typestate/