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.1.tar.gz
md5=d84e09c5d0abc501aa17cd502e31a038
sha512=8b832f4ada6035e80d81be0cfb7bdffb695ec67d465ed6097a144019e2b8a8f909095e78019c3da2d8181cc3cd730cd48f7519e87d3162442562103b7f36aabb

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.