I'm new to Rust - if there is a better way, I'm totally open to it.
I have a statement like this:
struct ... {
...
sell_price: u32
}
But if my item isn't sold yet, there wouldn't be a sell price. I can do a seperate variable (is_sold) and check it... but is there some way to say sell_price = null, and check that it is not null when I want to use it (i.e., if it is null, the item isn't sold yet).
Or is there some better way to do this? This is a personal project, not an assignment, so I'm open to other ways of doing this