Module Qcow_bitmap
type interval
An interval: a range (x, y) of set values where all the elements from x to y inclusive are in the set
module Interval : sig ... end
val make_empty : initial_size:int -> maximum_size:int -> t
make_empty n
creates a set ofinitial_size
which can be resized up tomaximum size
, initially empty
val make_full : initial_size:int -> maximum_size:int -> t
make_full n
creates a set ofinitial_size
which can be resized up tomaximum size
, initially full
val fold : (interval -> 'a -> 'a) -> t -> 'a -> 'a
fold f t acc
foldsf
across all the intervals int
val fold_s : (interval -> 'a -> 'a Lwt.t) -> t -> 'a -> 'a Lwt.t
fold_s f t acc
foldsf
across all the intervals int
val min_elt : t -> elt
min_elt t
returns the smallest element, or raisesNot_found
if the set is empty.
val to_string : t -> string
module Test : sig ... end