github.com/primecitizens/pcz/std@v0.2.1/core/array/exp.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  
     4  package array
     5  
     6  type (
     7  	Exp1To65536[T any] interface {
     8  		Exp1To64[T] | Exp128To4096[T] | Exp8192To65536[T]
     9  	}
    10  
    11  	Exp1To64[T any] interface {
    12  		~[exp0]T | ~[exp1]T | ~[exp2]T | ~[exp3]T | ~[exp4]T | ~[exp5]T | ~[exp6]T
    13  	}
    14  
    15  	Exp128To4096[T any] interface {
    16  		~[exp7]T | ~[exp8]T | ~[exp9]T | ~[exp10]T | ~[exp11]T | ~[exp12]T
    17  	}
    18  
    19  	Exp8192To65536[T any] interface {
    20  		~[exp13]T | ~[exp14]T | ~[exp15]T | ~[exp16]T
    21  	}
    22  )
    23  
    24  const (
    25  	exp0 = 1 << iota
    26  	exp1
    27  	exp2
    28  	exp3
    29  	exp4
    30  	exp5
    31  	exp6
    32  	exp7
    33  	exp8
    34  	exp9
    35  	exp10
    36  	exp11
    37  	exp12
    38  	exp13
    39  	exp14
    40  	exp15
    41  	exp16
    42  )