Ok the simple way to visualize it, is to think of it like a Schrödinger’s cat box. In the though experiment, the cat can either be alive or dead, but we can’t know until we open the box.
That’s what Rust’s two major monads (Option and Result) are. You can’t know if you have a value or an error unless you open the box.
In other languages (let’s say JavaScript), nulllables are returned as Value | null. This is the equivalent of returning a cat or a dead cat. And if you try calling .feed() on it, you either feed a cat, or try feeding a dead cat.
In rust, you have the box in return. And this box have a lot of neat functions. Call .map() to (if not dead) turn your cat into a lion. Call .unwrap_or() so that in case the cat is dead, you can have a fresh new cat instead of a dead one.
I would insert a funny meme I saw of the option as Schrödinger’s cat, but I can’t find it
I already understand Rust! (What I need is a “Monads for Kids” book)