Skip to content

FamilyTraitSet

ctreffs edited this page Oct 7, 2020 · 3 revisions

FamilyTraitSet

public struct FamilyTraitSet

Inheritance

CustomDebugStringConvertible, CustomStringConvertible, Equatable, Hashable

Initializers

init(requiresAll:excludesAll:)

public init(requiresAll: [Component.Type], excludesAll: [Component.Type])

Properties

requiresAll

let requiresAll: Set<ComponentIdentifier>

excludesAll

let excludesAll: Set<ComponentIdentifier>

setHash

let setHash: Int

description

var description: String

debugDescription

var debugDescription: String

Methods

isMatch(components:)

@inlinable public func isMatch(components: Set<ComponentIdentifier>) -> Bool

hasAll(_:)

@inlinable public func hasAll(_ components: Set<ComponentIdentifier>) -> Bool

hasNone(_:)

@inlinable public func hasNone(_ components: Set<ComponentIdentifier>) -> Bool

isValid(requiresAll:excludesAll:)

@inlinable public static func isValid(requiresAll: Set<ComponentIdentifier>, excludesAll: Set<ComponentIdentifier>) -> Bool

==(lhs:rhs:)

public static func ==(lhs: FamilyTraitSet, rhs: FamilyTraitSet) -> Bool

hash(into:)

public func hash(into hasher: inout Hasher)
Clone this wiki locally