January 2023
-
:
Rust - Introduction
Previously published This article was previously published on len-learns-rust.com. A full index of these articles can be found here. I’m a long term C++ programmer who is coming to Rust with lots of baggage. I’d like to write … -
:
Rust - An Id Manager
Previously published This article was previously published on len-learns-rust.com. A full index of these articles can be found here. The first piece of code that I’m going to play with in Rust is a “reusable id manager”. … -
:
Rust - An interval
Previously published This article was previously published on len-learns-rust.com. A full index of these articles can be found here. We’ll start with an interval, this is a struct with an upper and lower limit and represents an … -
:
Rust - A collection of intervals
Previously published This article was previously published on len-learns-rust.com. A full index of these articles can be found here. Now that I have a simple interval I need a collection of them to represent the available ids that we can … -
:
Rust - Adding intervals correctly
Previously published This article was previously published on len-learns-rust.com. A full index of these articles can be found here. Our simple collection of intervals has a major failing, it doesn’t merge intervals and so we end up … -
:
Rust - Removing values
Previously published This article was previously published on len-learns-rust.com. A full index of these articles can be found here. Now that we can insert intervals into our collection we need to be able to remove them. There are three … -
:
Rust - Building an id manager from a collection of intervals
Previously published This article was previously published on len-learns-rust.com. A full index of these articles can be found here. Now that we have a collection of intervals we can begin to build our id manager. The id manager turns the … -
:
Rust - Smart Ids; object lifetime and mutability
Previously published This article was previously published on len-learns-rust.com. A full index of the articles from this len-learns-rust.com can be found here. The simple id manager that I built last time is just that, simple. However, … -
:
Rust - Renaming without restructuring
Previously published This article was previously published on len-learns-rust.com. A full index of these articles can be found here. We now have a ThreadSafeIdManager that can provide SmartId’s. It would probably be better to simply … -
:
Rust - Generic code in Rust
Previously published This article was previously published on len-learns-rust.com. A full index of these articles can be found here. Now that we have an IdManager that works reasonably well and does much of what we require of it we can look … -
:
Rust - Clean up and additional functionality
Previously published This article was previously published on len-learns-rust.com. A full index of these articles can be found here. We now have a generic IdManager so now we just need to finish off the required functionality. The missing … -
:
Rust - The journey so far
Previously published This article was previously published on len-learns-rust.com. A full index of these articles can be found here. I’ve now built a generic IdManager which does everything I want it to do, for now. I’ve bumbled …