type 'a t = 'a Base.Option_array.t
include Bin_prot.Binable.S1 with type 'a t := 'a t
val bin_shape_t : Bin_prot.Shape.t -> Bin_prot.Shape.tval bin_size_t : ('a, 'a t) Bin_prot.Size.sizer1val bin_write_t : ('a, 'a t) Bin_prot.Write.writer1val bin_read_t : ('a, 'a t) Bin_prot.Read.reader1val __bin_read_t__ : ('a, int -> 'a t) Bin_prot.Read.reader1val bin_writer_t : ('a, 'a t) Bin_prot.Type_class.S1.writerval bin_reader_t : ('a, 'a t) Bin_prot.Type_class.S1.readerval bin_t : ('a, 'a t) Bin_prot.Type_class.S1.t
include Ppx_sexp_conv_lib.Sexpable.S1 with type 'a t := 'a t
val t_of_sexp : (Sexplib0.Sexp.t -> 'a) -> Sexplib0.Sexp.t -> 'a tval sexp_of_t : ('a -> Sexplib0.Sexp.t) -> 'a t -> Sexplib0.Sexp.t
include module type of sig ... end with type 'a Option_array.t := 'a t
include module type of Base.Option_array with type 'a t := 'a t
include Base.Sexpable.S1 with type 'a t := 'a t
val t_of_sexp : (Sexplib0.Sexp.t -> 'a) -> Sexplib0.Sexp.t -> 'a tval sexp_of_t : ('a -> Sexplib0.Sexp.t) -> 'a t -> Sexplib0.Sexp.t
val init_some : int -> f:(int -> 'a) -> 'a tval init : int -> f:(int -> 'a option) -> 'a tval length : 'a t -> intval get : 'a t -> int -> 'a optionget t ireturns the element numberiof arrayt, raising ifiis outside the range 0 tolength t - 1.
val get_some_exn : 'a t -> int -> 'aRaises if the element number
iisNone.
val is_none : 'a t -> int -> boolis_none t i = Option.is_none (get t i)
val is_some : 'a t -> int -> boolis_some t i = Option.is_some (get t i)
val unsafe_get : 'a t -> int -> 'a optionval unsafe_get_some_exn : 'a t -> int -> 'aunsafe_get_some_exn t iis unsafe because it does not bounds checki. It does, however check whether the value at indexiis none or some, and raises if it is none.
val unsafe_get_some_assuming_some : 'a t -> int -> 'aunsafe_get_some_assuming_some t iis unsafe both because it does not bounds checkiand because it does not check whether the value at indexiis none or some, assuming that it is some.
val unsafe_is_some : 'a t -> int -> boolval set : 'a t -> int -> 'a option -> unitset t i xmodifies arraytin place, replacing element numberiwithx, raising ifiis outside the range 0 tolength t - 1.
val set_some : 'a t -> int -> 'a -> unitval set_none : 'a t -> int -> unitval swap : 'a t -> int -> int -> unitval clear : 'a t -> unitReplaces all the elements of the array with
None.
val unsafe_set : 'a t -> int -> 'a option -> unitval unsafe_set_some : 'a t -> int -> 'a -> unitval unsafe_set_none : 'a t -> int -> unit
include Base.Blit.S1 with type 'a t := 'a t
val blit : src:'a t -> src_pos:int -> dst:'a t -> dst_pos:int -> len:int -> unitval blito : src:'a t -> ?src_pos:int -> ?src_len:int -> dst:'a t -> ?dst_pos:int -> unit -> unitval unsafe_blit : src:'a t -> src_pos:int -> dst:'a t -> dst_pos:int -> len:int -> unitval sub : 'a t -> pos:int -> len:int -> 'a tval subo : ?pos:int -> ?len:int -> 'a t -> 'a t