Module ctfe

Source
Expand description

第一章:Rust语言基础 1.4 语法面面观(二):面向表达式(中)

Functions§

array_chunk_show
array chunk 演示
const_array_len
const fn
const_fib
const fn : fib
const_fn_
const fn
const_fn_error
展示错误的 const 求值用法
const_generic_show
const generic
fixed_const_fn_error
修正错误的 const 求值用法
if_while_true
If True && While True
mir_show
编译期计算原理:MIR 展示
must_const_expr
必须是常量表达式才能在常量上下文使用
others_const_fn
其他的Const fn 用法