github.com/searKing/golang/go@v1.2.74/container/stream/op/match/kind.go (about)

     1  // Copyright 2020 The searKing Author. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package match
     6  
     7  /**
     8   * Enum describing quantified match options -- all match, any match, none
     9   * match.
    10   */
    11  type Kind struct {
    12  	StopOnPredicateMatches bool
    13  	ShortCircuitResult     bool
    14  }
    15  
    16  var (
    17  	/** Do all elements match the predicate? */
    18  	KindAny = Kind{true, true}
    19  	/** Do any elements match the predicate? */
    20  	KindAll = Kind{false, false}
    21  	/** Do no elements match the predicate? */
    22  	KindNone = Kind{true, false}
    23  )