What is a “fat pointer”?

The term “fat pointer” is used to refer to references and raw pointers to dynamically sized types (DSTs) – slices or trait objects. A fat pointer contains a pointer plus some information that makes the DST “complete” (e.g. the length). Most commonly used types in Rust are not DSTs but have a fixed size known … Read more