SorteKanin@feddit.dk to Rust@programming.dev · 7 months agoInline const expressions have been stabilisedgithub.comexternal-linkmessage-square11fedilinkarrow-up17arrow-down10
arrow-up17arrow-down1external-linkInline const expressions have been stabilisedgithub.comSorteKanin@feddit.dk to Rust@programming.dev · 7 months agomessage-square11fedilink
minus-squareMiaou@jlai.lulinkfedilinkarrow-up3·6 months agoIt 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).
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).