• Miaou
    link
    fedilink
    arrow-up
    5
    ·
    8 months ago

    It can be used for producing const values in arbitrary context. Can basically be swapped for c++'s constexpr.

    C++'s const does not exist in rust (values are const by default).