package rocq-runtime

  1. Overview
  2. Docs
The Rocq Prover -- Core Binaries and Tools

Install

dune-project
 Dependency

Authors

Maintainers

Sources

rocq-9.1.0.tar.gz
sha256=b236dc44f92e1eeca6877c7ee188a90c2303497fe7beb99df711ed5a7ce0d824

doc/rocq-runtime.clib/Memprof_coq/Resource_bind/index.html

Module Memprof_coq.Resource_bindSource

Open Memprof_limits.Resource_bind to enable the let& binder for resources.

Sourceval (let&) : (scope:('a -> 'b) -> 'b) -> ('a -> 'b) -> 'b

RAII-style notation for resources cleaned-up at the end of scope. Example:

open Memprof_limits.Resource_bind

  let with_my_resource x =
    Memprof_limits.Masking.with_resource ~acquire x ~release

  let f x =
    let& resource = with_my_resource x in
    …