On this page:
module-binding?
module-binding
module-binding-source
module-binding-phase
module-binding-name
module-bindings
module-provided-bindings
module-internal-bindings
7.4

6.1 Module Bindings

 (require rebellion/module/binding) package: rebellion

procedure

(module-binding? v)  boolean?

  v : any/c

procedure

(module-binding source phase name)  module-binding?

  source : module-path?
  phase : execution-phase?
  name : symbol?

procedure

(module-binding-source binding)  module-path?

  binding : module-binding?

procedure

(module-binding-phase binding)  phase?

  binding : module-binding?

procedure

(module-binding-name binding)  symbol?

  binding : module-binding?

procedure

(module-bindings mod)  (set/c module-binding?)

  mod : module-path?
Returns the set of bindings currently defined by mod, including both provided bindings and internal bindings.

Example:
> (module-bindings 'racket/vector)

(set

 (module-binding 'racket/vector (execution-phase 0) 'mk-min)

 (module-binding 'racket/vector (execution-phase 0) 'vector-split-at)

 (module-binding 'racket/vector (execution-phase 0) 'vector-take)

 (module-binding 'racket/vector (execution-phase 0) 'vector-append)

 (module-binding 'racket/vector (execution-phase 0) 'vector-sort!27.1)

 (module-binding 'racket/vector (execution-phase 0) 'vector-map/update)

 (module-binding 'racket/vector (execution-phase 0) 'vector-sort14.1)

 (module-binding 'racket/vector (execution-phase 0) 'unpack26.1)

 (module-binding 'racket/vector (execution-phase 0) 'vector-drop)

 (module-binding 'racket/vector (execution-phase 0) 'vector-sort)

 (module-binding 'racket/vector (execution-phase 0) 'vector-map)

 (module-binding 'racket/vector (execution-phase 0) 'vector-split-at-right)

 (module-binding 'racket/vector (execution-phase 0) 'varargs-check)

 (module-binding 'racket/vector (execution-phase 0) 'vector-filter-not)

 (module-binding 'racket/vector (execution-phase 0) 'vector-sort!)

 (module-binding 'racket/vector (execution-phase 0) 'vector-sort16.1)

 (module-binding 'racket/vector (execution-phase 0) 'vector-take-right)

 (module-binding 'racket/vector (execution-phase 0) 'vector-argmin)

 (module-binding 'racket/vector (execution-phase 0) 'vector-member)

 (module-binding 'racket/vector (execution-phase 0) 'vector-copy)

 (module-binding 'racket/vector (execution-phase 0) 'vector-memq)

 (module-binding 'racket/vector (execution-phase 0) 'vector-set*!)

 (module-binding 'racket/vector (execution-phase 0) 'one-arg-check)

 (module-binding 'racket/vector (execution-phase 0) 'vector-count)

 (module-binding 'racket/vector (execution-phase 0) 'check-vector/index)

 (module-binding 'racket/vector (execution-phase 0) 'vector-copy*)

 (module-binding 'racket/vector (execution-phase 0) 'vector-sort!25.1)

 (module-binding 'racket/vector (execution-phase 0) 'vector-memv)

 (module-binding 'racket/vector (execution-phase 0) 'unpack15.1)

 (module-binding 'racket/vector (execution-phase 0) 'vector-filter)

 (module-binding 'racket/vector (execution-phase 0) 'vector-argmax)

 (module-binding 'racket/vector (execution-phase 0) 'vector-drop-right)

 (module-binding 'racket/vector (execution-phase 0) 'vector-map!))

procedure

(module-provided-bindings mod)  (set/c module-binding?)

  mod : module-path?
Returns the set of bindings currently defined and exported by mod with provide.

Example:
> (module-provided-bindings 'racket/vector)

(set

 (module-binding 'racket/vector (execution-phase 0) 'vector-sort!)

 (module-binding 'racket/vector (execution-phase 0) 'vector-drop-right)

 (module-binding 'racket/vector (execution-phase 0) 'vector-argmax)

 (module-binding 'racket/vector (execution-phase 0) 'vector-take-right)

 (module-binding 'racket/vector (execution-phase 0) 'vector-drop)

 (module-binding 'racket/vector (execution-phase 0) 'vector-append)

 (module-binding 'racket/vector (execution-phase 0) 'vector-copy)

 (module-binding 'racket/vector (execution-phase 0) 'vector-filter-not)

 (module-binding 'racket/vector (execution-phase 0) 'vector-map!)

 (module-binding 'racket/vector (execution-phase 0) 'vector-memq)

 (module-binding 'racket/vector (execution-phase 0) 'vector-count)

 (module-binding 'racket/vector (execution-phase 0) 'vector-sort)

 (module-binding 'racket/vector (execution-phase 0) 'vector-memv)

 (module-binding 'racket/vector (execution-phase 0) 'vector-split-at-right)

 (module-binding 'racket/vector (execution-phase 0) 'vector-map)

 (module-binding 'racket/vector (execution-phase 0) 'vector-split-at)

 (module-binding 'racket/vector (execution-phase 0) 'vector-take)

 (module-binding 'racket/vector (execution-phase 0) 'vector-filter)

 (module-binding 'racket/vector (execution-phase 0) 'vector-argmin)

 (module-binding 'racket/vector (execution-phase 0) 'vector-member)

 (module-binding 'racket/vector (execution-phase 0) 'vector-set*!))

procedure

(module-internal-bindings mod)  (set/c module-binding?)

  mod : module-path?
Returns the set of bindings currently defined by mod but not provided.

Example:
> (module-internal-bindings 'racket/vector)

(set

 (module-binding 'racket/vector (execution-phase 0) 'mk-min)

 (module-binding 'racket/vector (execution-phase 0) 'vector-copy*)

 (module-binding 'racket/vector (execution-phase 0) 'vector-sort!25.1)

 (module-binding 'racket/vector (execution-phase 0) 'unpack15.1)

 (module-binding 'racket/vector (execution-phase 0) 'vector-map/update)

 (module-binding 'racket/vector (execution-phase 0) 'vector-sort!27.1)

 (module-binding 'racket/vector (execution-phase 0) 'unpack26.1)

 (module-binding 'racket/vector (execution-phase 0) 'one-arg-check)

 (module-binding 'racket/vector (execution-phase 0) 'check-vector/index)

 (module-binding 'racket/vector (execution-phase 0) 'varargs-check)

 (module-binding 'racket/vector (execution-phase 0) 'vector-sort16.1)

 (module-binding 'racket/vector (execution-phase 0) 'vector-sort14.1))