Use the Deref trait to treat collections like smart pointers, offering owning and borrowed views of data.