• [$] One Sized trait does not fit all

    From LWN.net@618:250/24 to All on Thu Apr 23 06:40:09 2026


    In Rust, types either possess a constant size known at compile time, or a dynamically calculated size known at
    run time. That is fine for most purposes, but recent proposals for the language have shown the need for a more fine-grained hierarchy.

    RFC 3729 from David Wood and Rémy Rakic would add a hierarchy of
    traits to describe types with sizes known under different circumstances. While the idea has been subject to discussion for many years, a growing number of
    use cases for the feature have come to light.

    https://lwn.net/Articles/1067220/
    --- SBBSecho 3.37-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (618:250/24)