blog frehberg

Technical Notes and Insides

Skip to content
  • Home
  • About
    • Datenschutzerklärung
    • Impressum

Rust derive(Default) for enum-types

Rust derive(Default) can be used for structs, implemting the default-instanciation. Sadly it can’t be used for enum-types, as there is no strategy to pick one of the enum-variants as default. The following discussion at Rust Internals hopefully will trigger an RFC to close this feature-gap.

https://internals.rust-lang.org/t/request-derive-enums-default/10576

This entry was posted in OpenSource, Rust, Technology on July 19, 2019 by frehberg.

Post navigation

← Go To Statement Considered Harmful (discussed) Test-generator v0.3 →

Recent Posts

  • New Intel Tiger Lake CPU still suffering Meltdown & Spectre
  • Rust Function implementing Generator
  • LibreOffice – Import Cisco Network Icons to Gallery
  • Erlang for Blockchain
  • Perfect helmet with lamp for users of electric unicycles, Petzl trios

Recent Comments

    Archives

    • January 2021
    • October 2020
    • April 2020
    • February 2020
    • January 2020
    • September 2019
    • July 2019
    • June 2019
    • May 2019
    • July 2018
    • March 2018
    • February 2018
    • January 2018
    • October 2017
    • August 2017
    • July 2017
    • November 2012
    • October 2011
    • September 2010
    • June 2010
    • May 2010

    Categories

    • Android
    • Familien Kolumne
    • Linux
    • News
    • OpenSource
    • Peru
    • Peruvian Market
    • Rust
    • Technology
    • Traveling
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Datenschutzerklärung Proudly powered by WordPress