2 ms·
Keep in mind that that we expect that the "six types of possible closures" can be almost completely inferred at the use site, so people making use of APIs that
by kibwen 12y ago
Keep in mind that that we expect that the "six types of possible closures" can be almost completely inferred at the use site, so people making use of APIs that accept closures should be able to be blissfully unaware of this distinction. Library authors will need to keep in mind the distinction between the three different closure traits when writing function signatures, but this is no different from how every other borrowed and owned thing in Rust works.