: Person) {}
getAge({age: 16, classes: '5-4'}) // ok
getAge({age: 20, salary: 1000, classes: '5-4'}) // Should be error but type checker success如何编写函数签名以防止getAge({age: 20,
输入数据可以如下所示:sprd-spipe: spipe 5-4 not ready to open!sprd-spipe: spipe 5-4 not ready to open!sprd-spipe: spipe 5-4 not ready to open!sprd-spipe: spipe 5-4 not ready to open!sprd-
我对rust是个新手,我在复习迭代器,如果我直接实现迭代器而不是IntoIterator,为什么我能够调用into_iter (和太多次).My理解是如果我实现了IntoIterator,我应该通过into_iter.But访问迭代器如果我能够实现迭代器,为什么我仍然需要into_iter(如果我没有给出我的猜测.My in,就会被隐式调用) rest: &'a str,StrSplit::new("this was to check what was to