github.com/tursom/GoCollections@v0.3.10/lang/BitSet.go (about)

     1  /*
     2   * Copyright (c) 2022 tursom. All rights reserved.
     3   * Use of this source code is governed by a GPL-3
     4   * license that can be found in the LICENSE file.
     5   */
     6  
     7  package lang
     8  
     9  type (
    10  	BitSet interface {
    11  		BitLength() uint
    12  		SetBit(index uint, up bool)
    13  		SwapBit(index uint, up bool) (old bool)
    14  		GetBit(index uint) (ok bool)
    15  	}
    16  )