The Sized Trait

1 · Huon Wilson · Jan. 12, 2015, midnight
An important piece in my story about trait objects in Rust0 is the Sized trait, so I’m slotting in this short post between my discussion of low-level details and the post on “object safety”. A series on trait objects Peeking inside Trait Objects The Sized Trait Object Safety Where Self Meets Sized: Revisting Object Safety Sized is a (very) special compiler built-in trait that is automatically implemented or not based on the sizedness of a type. A type is considered sized if the precise size ...