sig
  type 'a t
  val mem : ?equal:('-> '-> bool) -> 'a t -> '-> bool
  val length : 'a t -> int
  val is_empty : 'a t -> bool
  val iter : 'a t -> f:('-> unit) -> unit
  val fold : 'a t -> init:'accum -> f:('accum -> '-> 'accum) -> 'accum
  val exists : 'a t -> f:('-> bool) -> bool
  val for_all : 'a t -> f:('-> bool) -> bool
  val count : 'a t -> f:('-> bool) -> int
  val find : 'a t -> f:('-> bool) -> 'a option
  val find_map : 'a t -> f:('-> 'b option) -> 'b option
  val to_list : 'a t -> 'a list
  val to_array : 'a t -> 'a array
  val create :
    ?initial_length:int -> ?never_shrink:bool -> unit -> 'Dequeue.t
  val front_index : 'Dequeue.t -> int option
  val front_index_exn : 'Dequeue.t -> int
  val back_index : 'Dequeue.t -> int option
  val back_index_exn : 'Dequeue.t -> int
  val get : 'Dequeue.t -> int -> 'a option
  val get_exn : 'Dequeue.t -> int -> 'a
  val peek : 'Dequeue.t -> [ `back | `front ] -> 'a option
  val peek_front : 'Dequeue.t -> 'a option
  val peek_front_exn : 'Dequeue.t -> 'a
  val peek_back : 'Dequeue.t -> 'a option
  val peek_back_exn : 'Dequeue.t -> 'a
  val set_exn : 'Dequeue.t -> int -> '-> unit
  val iter' :
    'Dequeue.t ->
    [ `back_to_front | `front_to_back ] -> f:('-> unit) -> unit
  val iteri : 'Dequeue.t -> f:(int -> '-> unit) -> unit
  val iteri' :
    'Dequeue.t ->
    [ `back_to_front | `front_to_back ] -> f:(int -> '-> unit) -> unit
  val fold' :
    'Dequeue.t ->
    [ `back_to_front | `front_to_back ] ->
    init:'-> f:('-> '-> 'b) -> 'b
  val foldi : 'Dequeue.t -> init:'-> f:(int -> '-> '-> 'b) -> 'b
  val foldi' :
    'Dequeue.t ->
    [ `back_to_front | `front_to_back ] ->
    init:'-> f:(int -> '-> '-> 'b) -> 'b
  val enqueue : 'Dequeue.t -> [ `back | `front ] -> '-> unit
  val enqueue_front : 'Dequeue.t -> '-> unit
  val enqueue_back : 'Dequeue.t -> '-> unit
  val clear : 'Dequeue.t -> unit
  val drop : ?n:int -> 'Dequeue.t -> [ `back | `front ] -> unit
  val drop_front : ?n:int -> 'Dequeue.t -> unit
  val drop_back : ?n:int -> 'Dequeue.t -> unit
  val dequeue : 'Dequeue.t -> [ `back | `front ] -> 'a option
  val dequeue_exn : 'Dequeue.t -> [ `back | `front ] -> 'a
  val dequeue_front : 'Dequeue.t -> 'a option
  val dequeue_front_exn : 'Dequeue.t -> 'a
  val dequeue_back : 'Dequeue.t -> 'a option
  val dequeue_back_exn : 'Dequeue.t -> 'a
  val t_of_sexp : (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'Dequeue.t
  val sexp_of_t : ('-> Sexplib.Sexp.t) -> 'Dequeue.t -> Sexplib.Sexp.t
  val bin_t : 'Bin_prot.Type_class.t -> 'Dequeue.t Bin_prot.Type_class.t
  val bin_read_t :
    'Bin_prot.Unsafe_read_c.reader -> 'Dequeue.t Bin_prot.Read_ml.reader
  val bin_read_t_ :
    'Bin_prot.Unsafe_read_c.reader ->
    'Dequeue.t Bin_prot.Unsafe_read_c.reader
  val bin_read_t__ :
    'Bin_prot.Unsafe_read_c.reader ->
    (int -> 'Dequeue.t) Bin_prot.Unsafe_read_c.reader
  val bin_reader_t :
    'Bin_prot.Type_class.reader -> 'Dequeue.t Bin_prot.Type_class.reader
  val bin_size_t : 'Bin_prot.Size.sizer -> 'Dequeue.t Bin_prot.Size.sizer
  val bin_write_t :
    'Bin_prot.Unsafe_write_c.writer ->
    'Dequeue.t Bin_prot.Write_ml.writer
  val bin_write_t_ :
    'Bin_prot.Unsafe_write_c.writer ->
    'Dequeue.t Bin_prot.Unsafe_write_c.writer
  val bin_writer_t :
    'Bin_prot.Type_class.writer -> 'Dequeue.t Bin_prot.Type_class.writer
end