• [$] One Sized trait does not fit all

    From LWN.net@1337:1/100 to All on Wednesday, April 22, 2026 15:00:07
    [$] One Sized trait does not fit all

    Date:
    Wed, 22 Apr 2026 13:58:35 +0000

    Description:
    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 Rmy 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.

    ======================================================================
    Link to news story:
    https://lwn.net/Articles/1067220/


    --- Mystic BBS v1.12 A49 (Linux/64)
    * Origin: tqwNet UK HUB @ hub.uk.erb.pw (1337:1/100)