const fn build_table() -> [u64; 256]
在编译时构建完整的 256 条目表。
我们还不能在这里写 for _ in 0..256:for 循环依赖于 Iterator::next,这在稳定的 Rust 中不是 const。在 const_for 特性(跟踪问题 #87575)稳定之前,while 循环是 const fn 中唯一的选择。
for _ in 0..256
for
Iterator::next
const
const_for
while
const fn