就地断言关于迭代器的内容
由 RHamalainen 拥有。
#1475 在 开发工具
6KB
就地断言关于迭代器的内容。
let vector = vec![1, 2, 3] .assert(|i| i.is_empty().not()) .assert(|i| i.len() < 5);