docs.rs failed to build finally-0.0.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
The Finally trait provides a method, finally
on
stack closures that emulates Java-style try/finally blocks.
Using the finally
method is sometimes convenient, but the type rules
prohibit any shared, mutable state between the "try" case and the
"finally" case. For advanced cases, the try_finally
function can
also be used. See that function for more details.
Example
# #![feature(unboxed_closures)]
extern crate finally;
use finally::Finally;
(|&mut:| {
// ...
}).finally(|| {
// this code is always run
})