package containers

  1. Overview
  2. Docs
A modular, clean and powerful extension of the OCaml standard library

Install

Dune Dependency

Authors

Maintainers

Sources

v2.8.tar.gz
md5=03b80e963186e91ddac62ef645bf7fb2
sha512=c8f434808be540c16926bf03d89f394d33fc2d092f963a7b6d412481229e0a96290f1ad7c7d522415115d35426b7aa0b3fda4b991ddc321dad279d402c9a0c0b

doc/containers.data/CCBitField/Make/index.html

Module CCBitField.MakeSource

Create a new bitfield type

Parameters

module X : sig ... end

Signature

Sourcetype t = private int

Generative type of bitfields. Each instantiation of the functor should create a new, incompatible type

Sourceval empty : t

Empty bitfields (all bits 0).

Sourcetype field
Sourceval get : field -> t -> bool

Get the value of this field.

Sourceval set : field -> bool -> t -> t

Set the value of this field.

Sourceval mk_field : unit -> field

Make a new field.

Sourceval freeze : unit -> unit

Prevent new fields from being added. From now on, creating a field will raise Frozen.

Sourceval total_width : unit -> int

Current width of the bitfield.

OCaml

Innovation. Community. Security.