In the previous chapter we wrote up basically a minimum viable singly-linked stack. However there's a few design decisions that make it kind of sucky. Let's make it less sucky. In doing so, we will:
And in the process we'll learn about
Let's add a new file called second.rs
:
// in lib.rs pub mod first; pub mod second;
And copy everything from first.rs
into it.