Function others_const_fn

Source
pub fn others_const_fn()
Expand description

§其他的Const fn 用法

#[derive(Debug)]
struct Answer(u32);
const A: Answer = Answer(42);

fn main(){
    println!("{}", A);
}