• Miaou@jlai.lu
    link
    fedilink
    arrow-up
    4
    ·
    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).