【发布时间】:2016-02-14 05:37:47
【问题描述】:
我使用的是 1.6.0(稳定版),但任何未来/夜间启用此功能或我可以观看/跟踪的功能也很酷。
理论上我想要什么(为简洁起见):
let a:fn(&lib_plotMote::mask::Mask) -> bool = {fn(_)->true};
我得到的最接近的:
let a:fn(&lib_plotMote::mask::Mask) -> bool = { fn anon(_:&Mask)->bool{true}; anon };
【问题讨论】:
标签: function lambda closures rust anonymous-function