_RawOptionSetType

protocol _RawOptionSetType

This protocol is an implementation detail of RawOptionSetType; do not use it directly.

Its requirements are inherited by RawOptionSetType and thus must be satisfied by types conforming to that protocol.

Inheritance Equatable, RawRepresentable View Protocol Hierarchy →
Associated Types
RawValue : BitwiseOperationsType, Equatable
Import import Swift

Initializers

init(rawValue:) Required

Declaration

init(rawValue: RawValue)

Declared In

_RawOptionSetType , RawRepresentable

Instance Variables

var rawValue: RawValue Required

The corresponding value of the "raw" type.

Self(rawValue: self.rawValue)! is equivalent to self.

Declaration

var rawValue: RawValue { get }

Declared In

RawRepresentable

Instance Methods

func ==(_:rhs:) Required

Return true if lhs is equal to rhs.

Equality implies substitutability. When x == y, x and y are interchangeable in any code that only depends on their values.

Class instance identity as distinguished by triple-equals === is notably not part of an instance's value. Exposing other non-value aspects of Equatable types is discouraged, and any that are exposed should be explicitly pointed out in documentation.

Equality is an equivalence relation

  • x == x is true
  • x == y implies y == x
  • x == y and y == z implies x == z

Inequality is the inverse of equality, i.e. !(x == y) iff x != y

Declaration

func ==(lhs: Self, rhs: Self) -> Bool

Declared In

Equatable