static func == (Self, Self) -> Bool
static func != (Self, Self) -> Bool
Availability
Technology
protocol Equatable
Types that conform to the Equatable
protocol can be compared for equality using the equal-to operator (==
) or inequality using the not-equal-to operator (!=
). Most basic types in the Swift standard library conform to Equatable
.
Equatable
プロトコルに準拠する型は、同等性を同等演算子(==
)を使って、または不等性を不等演算子(!=
)を使って比較されることができます。Swift標準ライブラリの基本的な型のほとんどはEquatable
に準拠します。
Some sequence and collection operations can be used more simply when the elements conform to Equatable
. For example, to check whether an array contains a particular value, you can pass the value itself to the contains(_:)
method when the array’s element conforms to Equatable
instead of providing a closure that determines equivalence. The following example shows how the contains(_:)
method can be used with an array of strings.
いくつかのシーケンスとコレクションの演算子は、要素がEquatable
に準拠する時はより簡単に使われることができます。例えば、ある配列がある特定の値を含むかどうか調べるには、あなたはその値自体をcontains(_:)
メソッドに渡すことが、その配列の要素がEquatable
に準拠する場合には、同等を判定するクロージャを提供する代わりに可能です。以下の例は、contains(_:)
メソッドが文字列からなる配列で使われるのを示します。
Adding Equatable
conformance to your custom types means that you can use more convenient APIs when searching for particular instances in a collection. Equatable
is also the base protocol for the Hashable
and Comparable
protocols, which allow more uses of your custom type, such as constructing sets or sorting the elements of a collection.
Equatable
準拠をあなたのあつらえの型に追加することが意味するのは、あなたがより便利なAPIを特定のインスタンスをあるコレクションの中で探す時に使用できるということです。Equatable
はまた、Hashable
とComparable
プロトコルのための基盤プロトコルです、それらはあなたのあつらえの型のさらなる利用を可能します、例えば集合の組み立てやコレクション要素のソートなど。
You can rely on automatic synthesis of the Equatable
protocol’s requirements for a custom type when you declare Equatable
conformance in the type’s original declaration and your type meets these criteria:
あなたはEquatable
プロトコルの要件の自動合成をあつらえの型のために当てにすることが、あなたがEquatable
準拠をその型のもつ元々の宣言において宣言してあなたの型がそれらの基準に沿う場合に可能です。
For a struct
, all its stored properties must conform to Equatable
.
struct
に対して、すべてのそれの格納プロパティはEquatable
に準拠しなければなりません。
For an enum
, all its associated values must conform to Equatable
. (An enum
without associated values has Equatable
conformance even without the declaration.)
enum
に対して、すべてのそれの関連値はEquatable
に準拠しなければなりません。(関連値なしでのenum
は、Equatable
準拠をたとえ宣言なしでも持ちます。)
To customize your type’s Equatable
conformance, to adopt Equatable
in a type that doesn’t meet the criteria listed above, or to extend an existing type to conform to Equatable
, implement the equal-to operator (==
) as a static method of your type. The standard library provides an implementation for the not-equal-to operator (!=
) for any Equatable
type, which calls the custom ==
function and negates its result.
あなたの型のもつEquatableable
準拠をカスタマイズするため、Equatable
を上でリストされる基準に沿わない型において採用するため、または既存の型を拡張してEquatable
に準拠するためには、同等演算子(==
)をあなたの型の静的メソッドとして実装してください。標準ライブラリは、不等演算子(!=
)のある実装をあらゆるEquatable
型に対して実装します、それはあつらえの==
関数を呼び出してそれの結果を逆にします。
As an example, consider a Street
class that holds the parts of a street address: a house or building number, the street name, and an optional unit number. Here’s the initial declaration of the Street
type:
例として、Street
クラスを考えてください、それは通り住所の部分;家またはビル番地、通りの名、そして随意に戸番号を保持します。ここにStreet
型の初期宣言があります:
Now suppose you have an array of addresses that you need to check for a particular address. To use the contains(_:)
method without including a closure in each call, extend the Street
type to conform to Equatable
.
今あなたがいくらかの住所からなる配列、あなたがある特定の住所を確認する必要があるものを持つと仮定します。contains(_:)
メソッドを各呼び出しにクロージャを含めることなく使うには、Street
型をEquatable
に準拠するように拡張してください。
The Street
type now conforms to Equatable
. You can use ==
to check for equality between any two instances or call the Equatable
-constrained contains(_:)
method.
Street
型は、今やEquatable
に準拠します。あなたは==
を使って何でも2つのインスタンス間の同等性を調べたり、Equatable
制約のcontains(_:)
メソッドを呼び出すことができます。
Equality implies substitutability—any two instances that compare equally can be used interchangeably in any code that depends on their values. To maintain substitutability, the ==
operator should take into account all visible aspects of an Equatable
type. Exposing nonvalue aspects of Equatable
types other than class identity is discouraged, and any that are exposed should be explicitly pointed out in documentation.
同等性は代替可能性を暗黙的に意味します—同等性を比較されるあらゆる2つのインスタンスは、それらの値に影響を受けるあらゆるコードにおいて入れ替えて使われることができます。代替可能性を維持するために、==
演算子はあるEquatable
型の全ての目に見える面を考慮しなければならないでしょう。Equatable
型の非値の面を露出することはクラス識別子を除いて推奨されません、そして露出されるものは何でも、明白に文書において指摘されるべきです。
Since equality between instances of Equatable
types is an equivalence relation, any of your custom types that conform to Equatable
must satisfy three conditions, for any values a
, b
, and c
:
Equatable
型のインスタンス間の同等性は等値関係であることから、Equatable
に準拠するあなたのあつらえの型は何であれ、任意の値a
、b
、そしてc
に対して、3つの条件を満たす必要があります:
a == a
is always true
(Reflexivity)
a == a
は、常にtrue
(反射)
a == b
implies b == a
(Symmetry)
a == b
は、b == a
を意味する(対称)
a == b
and b == c
implies a == c
(Transitivity)
a == b
かつb == c
は、a == c
を意味する(推移)
Moreover, inequality is the inverse of equality, so any custom implementation of the !=
operator must guarantee that a != b
implies !(a == b)
. The default implementation of the !=
operator function satisfies this requirement.
その上に、不等性は同等性の逆です、それで!=
演算子のあらゆるあつらえの実装は、a != b
が!(a == b)
を意味することを保証しなければなりません。!=
演算子関数の省略時の実装は、この要件を満たします。
The identity of a class instance is not part of an instance’s value. Consider a class called Integer
that wraps an integer value. Here’s the definition for Integer
and the ==
function that makes it conform to Equatable
:
クラスインスタンスの同一性は、インスタンスの持つ値の部分のことではありません。Integer
と呼ばれるクラスを考えてください、それはある整数値をラップします。ここにInteger
とそれをEquatable
に準拠させる==
関数の定義があります:
The implementation of the ==
function returns the same value whether its two arguments are the same instance or are two different instances with the same integer stored in their value
properties. For example:
==
関数の実装は、それの2つの引数が同じインスタンスであろうと、それらのvalue
プロハティの中に格納される同じ整数を持つ2つの異なるインスタンスであろうと、同じ値を返します。例えば:
Class instance identity, on the other hand, is compared using the triple-equals identical-to operator (===
). For example:
一方、クラスインスタンス同一性は、3つの等号の同一性演算子(===
)を使って比較されます。例えば:
static func == (Self, Self) -> Bool
static func != (Self, Self) -> Bool
Equatable
elements for equality or inequality.
2つと6つの間のEquatable
要素のタプルを同等性または不等性について比較します。
func == ((), ()) -> Bool
func == <A, B>((A, B), (A, B)) -> Bool
func == <A, B, C>((A, B, C), (A, B, C)) -> Bool
func == <A, B, C, D>((A, B, C, D), (A, B, C, D)) -> Bool
func == <A, B, C, D, E>((A, B, C, D, E), (A, B, C, D, E)) -> Bool
func == <A, B, C, D, E, F>((A, B, C, D, E, F), (A, B, C, D, E, F)) -> Bool
func != ((), ()) -> Bool
func != <A, B>((A, B), (A, B)) -> Bool
func != <A, B, C>((A, B, C), (A, B, C)) -> Bool
func != <A, B, C, D>((A, B, C, D), (A, B, C, D)) -> Bool
func != <A, B, C, D, E>((A, B, C, D, E), (A, B, C, D, E)) -> Bool
func != <A, B, C, D, E, F>((A, B, C, D, E, F), (A, B, C, D, E, F)) -> Bool
func ~= <T>(T, T) -> Bool
ABPeoplePickerSelectionBehavior
ABPersonImageFormat
ACErrorCode
ARFaceAnchor.BlendShapeLocation
ARSkeleton.JointName
ASAuthorization.OpenIDOperation
ASAuthorization.Scope
ASAuthorizationCustomMethod
ASAuthorizationProviderAuthorizationOperation
ASAuthorizationPublicKeyCredentialAttestationKind
ASAuthorizationPublicKeyCredentialResidentKeyPreference
ASAuthorizationPublicKeyCredentialUserVerificationPreference
ASAuthorizationSecurityKeyPublicKeyCredentialDescriptor.Transport
ASCOSEAlgorithmIdentifier
ASCOSEEllipticCurveIdentifier
ATSFontFilterSelector
ATSFontNotifyAction
ATSFontNotifyOption
ATSFontQueryMessageID
AVAssetDownloadedAssetEvictionPriority
AVAssetImageGenerator.ApertureMode
AVAssetTrack.AssociationType
AVAssetWriterInput.MediaDataLocation
AVAsyncProperty.Status
Value
conforms to Equatable
.
Value
がEquatable
に準拠する時に準拠します。
AVAudioSession.Category
AVAudioSession.Location
AVAudioSession.Mode
AVAudioSession.Orientation
AVAudioSession.PolarPattern
AVAudioSession.Port
AVAudioTimePitchAlgorithm
AVCaptionConversionAdjustment.AdjustmentType
AVCaptionConversionWarning.WarningType
AVCaptionSettingsKey
AVCaptureDevice.SystemPressureState.Level
AVCaptureDevice.DeviceType
AVCaptureSession.Preset
AVContentKeyRequest.RetryReason
AVContentKeySessionServerPlaybackContextOption
AVContentKeySystem
AVCoordinatedPlaybackSuspension.Reason
AVFileType
AVFileTypeProfile
AVLayerVideoGravity
AVMediaCharacteristic
AVMediaType
AVMetadataExtraAttributeKey
AVMetadataFormat
AVMetadataIdentifier
AVMetadataKey
AVMetadataKeySpace
AVMetadataObject.ObjectType
AVOutputSettingsPreset
AVPlayer.RateDidChangeReason
AVPlayer.WaitingReason
AVPlayerItemLegibleOutput.TextStylingResolution
AVSemanticSegmentationMatte.MatteType
AVVideoApertureMode
AVVideoCodecType
AVVideoRange
AccessibilityActionKind
AccessibilityCustomContentKey
ActivityCategory
Album
Alignment
Anchor
Value
conforms to Equatable
.
Value
がEquatable
に準拠する時に準拠します。
AnchoringComponent
Animation
AnyCategoricalSummary
AnyHashable
AnyMusicProperty
Application
ArchiveCompression
ArchiveEncryptionContext.ChecksumMode
ArchiveEncryptionContext.EncryptionMode
ArchiveEncryptionContext.Profile
ArchiveEncryptionContext.SignatureMode
ArchiveHash
ArchiveHeader.EntryMessage
ArchiveHeader.EntryMessageStatus
ArchiveHeader.EntryType
ArchiveHeader.EntryXATBlob.ExtendedAttribute
ArchiveHeader.FieldKey
ArchiveHeader.FieldType
Array
Element
conforms to Equatable
.
Element
がEquatable
に準拠する時に準拠します。
ArraySlice
Element
conforms to Equatable
.
Element
がEquatable
に準拠する時に準拠します。
Artist
Artwork
AttributeContainer
AttributedString.Runs
AttributedString.Runs.Run
BNNS.Norm
BNNSActivationFunction
BNNSArithmeticFunction
BNNSDataLayout
BNNSDescriptorType
BNNSEmbeddingFlags
BNNSFilterType
BNNSFlags
BNNSInterpolationMethod
BNNSLayerFlags
BNNSLossFunction
BNNSLossReductionFunction
BNNSNDArrayFlags
BNNSNormType
BNNSOptimizerClippingFunction
BNNSOptimizerFunction
BNNSOptimizerRegularizationFunction
BNNSOptimizerSGDMomentumVariant
BNNSPaddingMode
BNNSPointerSpecifier
BNNSPoolingFunction
BNNSQuantizerFunction
BNNSRandomGeneratorMethod
BNNSReduceFunction
BNNSRelationalOperator
BindPath.Part
BindTarget
BlendWeight
BluetoothAMPCommandRejectReason
BluetoothAMPCreatePhysicalLinkResponseStatus
BluetoothAMPDisconnectPhysicalLinkResponseStatus
BluetoothAMPDiscoverResponseControllerStatus
BluetoothAMPGetAssocResponseStatus
BluetoothAMPGetInfoResponseStatus
BluetoothAMPManagerCode
BluetoothAuthenticationRequirementsValues
BluetoothCompanyIdentifers
BluetoothFeatureBits
BluetoothHCIAFHChannelAssessmentModes
BluetoothHCIAuthentionEnableModes
BluetoothHCIConnectionModes
BluetoothHCIDeleteStoredLinkKeyFlags
BluetoothHCIEncryptionModes
BluetoothHCIExtendedInquiryResponseDataTypes
BluetoothHCIFECRequiredValues
BluetoothHCIGeneralFlowControlStates
BluetoothHCIHoldModeActivityStates
BluetoothHCIInquiryModes
BluetoothHCIInquiryScanTypes
BluetoothHCILinkPolicySettingsValues
BluetoothHCIPageScanEnableStates
BluetoothHCIPageScanModes
BluetoothHCIPageScanPeriodModes
BluetoothHCIPageScanTypes
BluetoothHCIPowerState
BluetoothHCIReadStoredLinkKeysFlags
BluetoothHCIRetransmissionEffortTypes
BluetoothHCIRoles
BluetoothHCISCOFlowControlStates
BluetoothHCISimplePairingModes
BluetoothHCITimeoutValues
BluetoothHCITransmitReadPowerLevelTypes
BluetoothHCIVersions
BluetoothIOCapabilities
BluetoothKeyboardReturnType
BluetoothKeypressNotificationTypes
BluetoothL2CAPCommandCode
BluetoothL2CAPCommandRejectReason
BluetoothL2CAPConfigurationOption
BluetoothL2CAPConfigurationResult
BluetoothL2CAPConfigurationRetransmissionAndFlowControlFlags
BluetoothL2CAPConnectionResult
BluetoothL2CAPConnectionStatus
BluetoothL2CAPInformationExtendedFeaturesMask
BluetoothL2CAPInformationResult
BluetoothL2CAPInformationType
BluetoothL2CAPQoSType
BluetoothL2CAPSegmentationAndReassembly
BluetoothL2CAPSupervisoryFuctionType
BluetoothLEAddressType
BluetoothLEAdvertisingType
BluetoothLEConnectionInterval
BluetoothLEFeatureBits
BluetoothLEScan
BluetoothLEScanDuplicateFilter
BluetoothLEScanFilter
BluetoothLEScanType
BluetoothLESecurityManagerCommandCode
BluetoothLESecurityManagerIOCapability
BluetoothLESecurityManagerKeyDistributionFormat
BluetoothLESecurityManagerKeypressNotificationType
BluetoothLESecurityManagerOOBData
BluetoothLESecurityManagerPairingFailedReasonCode
BluetoothLESecurityManagerUserInputCapability
BluetoothLESecurityManagerUserOutputCapability
BluetoothLMPVersions
BluetoothLinkTypes
BluetoothOOBDataPresenceValues
BluetoothRFCOMMLineStatus
BluetoothRFCOMMParityType
BluetoothSimplePairingDebugModes
BluetoothTransportTypes
BodyTrackingComponent
Bool
ButtonBorderShape
ButtonRole
CAAnimationCalculationMode
CAAnimationRotationMode
CAEmitterLayerEmitterMode
CAEmitterLayerEmitterShape
CAEmitterLayerRenderMode
CAFrameRateRange
CAGradientLayerType
CALayerContentsFilter
CALayerContentsFormat
CALayerContentsGravity
CALayerCornerCurve
CAMediaTimingFillMode
CAMediaTimingFunctionName
CAScrollLayerScrollMode
CAShapeLayerFillRule
CAShapeLayerLineCap
CAShapeLayerLineJoin
CATextLayerAlignmentMode
CATextLayerTruncationMode
CATransitionSubtype
CATransitionType
CAValueFunctionName
CBConnectionEventMatchingOption
CFCalendarIdentifier
CFDateFormatterKey
CFLocaleIdentifier
CFLocaleKey
CFNotificationName
CFNumberFormatterKey
CFRunLoopMode
CFStreamPropertyKey
CGAffineTransform
CGPDFTagProperty
CGPoint
CGRect
CGSize
CGVector
CHHapticDynamicParameter.ID
CHHapticEvent.ParameterID
CHHapticEvent.EventType
CHHapticPattern.Key
CIContextOption
CIFormat
CIImageAutoAdjustmentOption
CIImageOption
CIImageRepresentationOption
CIRAWDecoderVersion
CIRAWFilterOption
CLSContextTopic
CLSErrorUserInfoKey
CLSPredicateKeyPath
CMClosedCaptionDescriptionFlavor
CMError
CMFloatBitmapFlags
CMFormatDescription.Extensions
CMFormatDescription.Extensions.Index
CMIOExtensionProperty
CMImageDescriptionFlavor
CMMetadataDescriptionFlavor
CMSoundDescriptionFlavor
CMTextDescriptionFlavor
CMTime
CMTimeCodeDescriptionFlavor
CMTimeRange
Calendar
NSCalendar.Identifier
Character
CharacterSet
ClosedRange
CodableConfiguration
T
conforms to Equatable
.
T
がEquatable
に準拠する時に準拠します。
CodingUserInfoKey
CollectionDifference
ChangeElement
conforms to Equatable
.
ChangeElement
がEquatable
に準拠する時に準拠します。
CollectionDifference.Change
ChangeElement
conforms to Equatable
.
ChangeElement
がEquatable
に準拠する時に準拠します。
CollectionDifference.Index
CollisionCastHit
CollisionComponent
CollisionFilter
ColorMatrix
ColorSyncAlphaInfo
ColorSyncDataDepth
Column
WrappedElement
conforms to Equatable
.
WrappedElement
がEquatable
に準拠している時に準拠します。
ColumnSlice
WrappedElement
conforms to Equatable
.
WrappedElement
がEquatable
に準拠している時に準拠します。
ContentRating
ContiguousArray
Element
conforms to Equatable
.
Element
がEquatable
に準拠する時に準拠します。
ControlActiveState
CoordinateSpace
Curator
Curator.Kind
DOMEventExceptionCode
DOMExceptionCode
DOMRangeExceptionCode
DOMXPathExceptionCode
Data
Date
DateComponents
DeviceActivityEvent
DeviceActivityEvent.Name
DeviceActivityName
DeviceActivitySchedule
Dictionary
Value
conforms to Equatable
.
Value
がEquatable
に準拠する時に準拠します。
Dictionary.Index
Dictionary.Keys
DirectionalLightComponent
DirectionalLightComponent.Shadow
DiscontiguousColumnSlice
WrappedElement
conforms to Equatable
.
WrappedElement
がEquatable
に準拠している時に準拠します。
DispatchQoS
DispatchTimeInterval
DistributedNotificationCenter.CenterType
DragGesture.Value
EdgeInsets
EditorialNotes
Empty
EmptyCollection
ApplicationMusicPlayer.Queue.Entries
NSError.UserInfoKey
ExclusiveGesture.Value
First
conforms to Gesture
, Second
conforms to Gesture
, First
.
Value
conforms to Equatable
, and Second
.
Value
conforms to Equatable
.
First
がGesture
に準拠する、Second
がGesture
に準拠する、First
.
Value
がEquatable
に準拠する、そしてSecond
.
Value
がEquatable
に準拠する時に準拠します。
FPUIActionIdentifier
FTSFileType
FWAMIDIDataInfo
FWAStreamDirection
FWAStreamOptions
FWAStreamState
FWAudioType
Fail
Failure
conforms to Equatable
.
Failure
がEquatable
に準拠する時に準拠します。
FamilyActivitySelection
FileAttributeKey
FileAttributeType
FileProtectionType
FillStyle
FlattenSequence.Index
FocusedValues
GCHapticsLocality
GCKeyCode
Genre
Gradient
Gradient.Stop
GraphicsContext.BlendMode
GroupActivityMetadata
GroupSession.State
HKCategoryTypeIdentifier
HKCharacteristicTypeIdentifier
HKClinicalTypeIdentifier
HKCorrelationTypeIdentifier
HKDocumentTypeIdentifier
HKFHIRRelease
HKFHIRResourceType
HKHeartbeatSeriesQueryDescriptor.Heartbeat
HKQuantitySeriesSampleQueryDescriptor.Result
HKQuantityTypeIdentifier
HKSamplePredicate
HKVerifiableClinicalRecordCredentialType
HKVerifiableClinicalRecordSourceType
HMSignificantEvent
HTTPCookiePropertyKey
HTTPCookieStringPolicy
HorizontalAlignment
ICAuthorizationStatus
ICCameraItemMetadataOption
ICCameraItemThumbnailOption
ICDeleteError
ICDeleteResult
ICDeviceCapability
ICDeviceLocationOptions
ICDeviceStatus
ICDeviceTransport
ICDownloadOption
ICSessionOptions
ICUploadOption
IKImageBrowserCellState
IKImageBrowserDropOperation
INCar.ChargingConnectorType
INMediaDestination
INPersonHandleLabel
INPersonRelationship
INShortcut
INWorkoutNameIdentifier
IOBluetoothDeviceSearchOptionsBits
IOBluetoothDeviceSearchTypesBits
IOBluetoothL2CAPChannelEventType
IOBluetoothUserNotificationChannelDirection
IOSurfacePropertyKey
IOURLError
IOUSBHostCIControllerState
IOUSBHostCIDeviceSpeed
IOUSBHostCIDeviceState
IOUSBHostCIEndpointState
IOUSBHostCIExceptionType
IOUSBHostCILinkState
IOUSBHostCIMessageStatus
IOUSBHostCIMessageType
IOUSBHostCIPortState
IOUSBHostCIUserClientVersion
IOUSBHostDevicePropertyKey
IOUSBHostInterfacePropertyKey
IOUSBHostMatchingPropertyKey
Image
IndexPath
IndexSet
IndexSet.RangeView
InterfaceOrientation
JSType
JSTypedArrayType
JointTransforms
Just
Output
conforms to Equatable
.
Output
がEquatable
に準拠する時に準拠します。
NSKeyValueOperator
Locale
NSLocale.Key
LocalizedStringKey
MDLabelDomain
MDQueryOptionFlags
MDQuerySortOptionFlags
MKAnnotationViewZPriority
MKFeatureDisplayPriority
MKPointOfInterestCategory
MLActionClassifier.ModelParameters.ModelAlgorithmType
MLDataTable.ColumnNames
MLDataTable.Row
MLDataTable.Row.Values
MLDataValue.DictionaryType
MLDataValue.MultiArrayType
MLDataValue.SequenceType
MLFeatureValue.ImageOption
MLHandActionClassifier.ModelParameters.ModelAlgorithmType
MLHandPoseClassifier.ModelParameters.ModelAlgorithmType
MLImageClassifier.ModelParameters.ClassifierType
MLModelMetadataKey
MLObjectDetector.ModelParameters.ModelAlgorithmType
MLSoundClassifier.ModelParameters.ClassifierType
MLSoundClassifier.ModelParameters.FeatureExtractorType
MLSoundClassifier.ModelParameters.FeaturePrintType
MLSoundClassifier.ModelParameters.ModelAlgorithmType
MLStyleTransfer.ModelParameters.ValidationData
MPSCustomKernelIndex
MPSDeviceCapsValues
MPSImageType
MTKModelError
MTKTextureLoader.CubeLayout
MTKTextureLoader.Error
MTKTextureLoader.Option
MTKTextureLoader.Origin
MTLCommonCounter
MTLCommonCounterSet
MTLDeviceNotificationName
ManagedAudioChannelLayout
ManagedAudioChannelLayout.ChannelDescriptions
ManagedBufferPointer
Measurement
MeshBuffers.Identifier
ModifiedContent
Content
conforms to Equatable
and Modifier
conforms to Equatable
.
Content
がEquatable
に準拠するそしてModifier
がEquatable
に準拠する時に準拠します。
MusicCatalogResourceResponse
MusicItemType
conforms to Equatable
.
MusicItemType
がEquatable
に準拠している時に準拠します。
MusicCatalogSearchResponse
MusicDataRequest
MusicDataRequest.Error.Source
MusicDataResponse
MusicItemCollection
MusicItemType
conforms to Equatable
.
MusicItemType
がEquatable
に準拠している時に準拠します。
MusicItemID
MusicPlayer.PlaybackStatus
MusicPlayer.Queue
MusicPlayer.Queue.Entry
MusicPlayer.Queue.Entry.Item
MusicSubscription
MusicSubscriptionOffer.Action
MusicSubscriptionOffer.MessageIdentifier
MusicSubscriptionOffer.Options
MusicVideo
NLLanguage
NLTag
NLTagScheme
NSAccessibility.Action
NSAccessibility.AnnotationAttributeKey
NSAccessibility.Attribute
NSAccessibility.FontAttributeKey
NSAccessibility.Notification
NSAccessibility.NotificationUserInfoKey
NSAccessibility.OrientationValue
NSAccessibility.ParameterizedAttribute
NSAccessibility.Role
NSAccessibility.RulerMarkerTypeValue
NSAccessibility.RulerUnitValue
NSAccessibility.SortDirectionValue
NSAccessibility.Subrole
NSAppKitVersion
NSAppearance.Name
NSApplication.AboutPanelOptionKey
NSApplication.ModalResponse
NSAttributeDescription.AttributeType
NSAttributedString.DocumentAttributeKey
NSAttributedString.DocumentReadingOptionKey
NSAttributedString.DocumentType
NSAttributedString.TextEffectStyle
NSAttributedString.TextLayoutSectionKey
NSAttributedString.Key
NSBindingInfoKey
NSBindingName
NSBindingOption
NSBitmapImageRep.PropertyKey
NSColorSpaceName
NSControl.StateValue
NSDeviceDescriptionKey
NSDirectionalEdgeInsets
NSDraggingItem.ImageComponentKey
NSEvent.SpecialKey
NSExceptionName
NSFileProviderDomainIdentifier
NSFileProviderExtensionActionIdentifier
NSFileProviderItemDecorationIdentifier
NSFileProviderItemIdentifier
NSFileProviderPage
NSFileProviderServiceName
NSFileProviderSyncAnchor
NSFont.TextStyle
NSFont.TextStyleOptionKey
NSFont.Weight
NSFontCollection.ActionTypeKey
NSFontCollection.Name
NSFontCollection.UserInfoKey
NSFontCollectionMatchingOptionKey
NSFontDescriptor.AttributeName
NSFontDescriptor.FeatureKey
NSFontDescriptor.SystemDesign
NSFontDescriptor.TraitKey
NSFontDescriptor.VariationKey
NSGraphicsContext.AttributeKey
NSGraphicsContext.RepresentationFormatName
NSImageRep.HintKey
NSKeyValueChangeKey
NSLayoutConstraint.Priority
NSLinguisticTag
NSLinguisticTagScheme
NSManagedObjectContext.ConcurrencyType
NSNotification.Name
NSObject
NSObject.KeyValueObservingPublisher
NSPasteboard.Name
NSPasteboard.PasteboardType
NSPasteboard.PasteboardType.FindPanelSearchOptionKey
NSPasteboard.PasteboardType.TextFinderOptionKey
NSPasteboard.ReadingOptionKey
NSPersistentStore.StoreType
NSPopover.CloseReason
NSPrintInfo.AttributeKey
NSPrintInfo.JobDisposition
NSPrintPanel.AccessorySummaryKey
NSPrintPanel.JobStyleHint
NSPrinter.PaperName
NSPrinter.TypeName
NSRuleEditor.PredicatePartKey
NSRulerView.UnitName
NSSharingService.Name
NSSliderAccessory.Width
NSSpeechSynthesizer.DictionaryKey
NSSpeechSynthesizer.SpeechPropertyKey
NSSpeechSynthesizer.SpeechPropertyKey.CommandDelimiterKey
NSSpeechSynthesizer.SpeechPropertyKey.ErrorKey
NSSpeechSynthesizer.SpeechPropertyKey.Mode
NSSpeechSynthesizer.SpeechPropertyKey.PhonemeInfoKey
NSSpeechSynthesizer.SpeechPropertyKey.StatusKey
NSSpeechSynthesizer.SpeechPropertyKey.SynthesizerInfoKey
NSSpeechSynthesizer.VoiceAttributeKey
NSSpeechSynthesizer.VoiceGender
NSSpeechSynthesizer.VoiceName
NSSpellChecker.OptionKey
NSStackView.VisibilityPriority
NSTextCheckingKey
NSTextContentType
NSTextList.MarkerFormat
NSTextTab.OptionKey
NSToolbarItem.Identifier
NSToolbarItem.VisibilityPriority
NSTouchBarItem.Identifier
NSTouchBarItem.Priority
URLUbiquitousSharedItemPermissions
URLUbiquitousSharedItemRole
NSUserInterfaceItemIdentifier
NSView.DefinitionOptionKey
NSView.DefinitionPresentationType
NSView.FullScreenModeOptionKey
NSViewAnimation.EffectName
NSViewAnimation.Key
NSWindow.Level
NSWorkspace.DesktopImageOptionKey
NSWorkspace.FileOperationName
NSWorkspace.LaunchConfigurationKey
NWBrowser.Result.Metadata
NWBrowser.State
NWConnection.State
NWConnectionGroup.State
NWError
NWEthernetChannel.State
NWListener.Service
NWListener.State
NWParameters.Attribution
NWPath
NWProtocolDefinition
NWProtocolWebSocket.CloseCode
NWTXTRecord
Never
Notification
NotificationCenter.Publisher
OBEXConnectFlagValues
OBEXErrorCodes
OBEXHeaderIdentifiers
OBEXNonceFlagValues
OBEXOpCodeCommandValues
OBEXOpCodeResponseValues
OBEXOpCodeSessionValues
OBEXPutFlagValues
OBEXRealmValues
OBEXSessionEventTypes
OBEXSessionParameterTags
OBEXTransportEventTypes
OBEXVersions
ODFrameworkErrors
OSLogType
OSSignpostType
ObjectIdentifier
OpaquePointer
Optional
Wrapped
conforms to Equatable
.
Wrapped
がEquatable
に準拠する時に準拠します。
PDFAnnotationHighlightingMode
PDFAnnotationKey
PDFAnnotationLineEndingStyle
PDFAnnotationSubtype
PDFAnnotationTextIconType
PDFAnnotationWidgetSubtype
PDFAppearanceCharacteristicsKey
PDFBorderKey
PDFDocumentAttribute
PDFDocumentWriteOption
PHASESpatialCategory
PHLivePhotoEditingOption
PHPickerConfiguration
PHPickerFilter
PHPickerResult
PHProjectCategory
PHProjectRegionOfInterest.Identifier
PHProjectType
PKContactField
PKDrawing
PKEncryptionScheme
PKEraserTool
PKInkingTool
PKLassoTool
PKPassLibraryNotificationKey
PKPassLibraryNotificationName
PKPaymentErrorKey
PKPaymentNetwork
PKPushType
PKStoredValuePassBalance.BalanceType
PMDataFormat
PMPageToPaperMappingType
Path
Path.Element
PersonNameComponents
PerspectiveCameraComponent
PhotogrammetrySession.Configuration
PhysicsBodyComponent
PhysicsMassProperties
PhysicsMotionComponent
Platform
PlayParameters
Playlist
Playlist.Kind
PointLightComponent
PreviewAsset
Product
Product.ProductType
Product.PurchaseOption
Product.SubscriptionInfo
Product.SubscriptionInfo.RenewalInfo
Product.SubscriptionInfo.RenewalInfo.ExpirationReason
Product.SubscriptionInfo.RenewalInfo.PriceIncreaseStatus
Product.SubscriptionInfo.RenewalState
Product.SubscriptionInfo.Status
Product.SubscriptionOffer
Product.SubscriptionOffer.OfferType
Product.SubscriptionOffer.PaymentMode
Product.SubscriptionPeriod
Product.SubscriptionPeriod.Unit
ProductSetting
Progress.FileOperationKind
ProgressKind
ProgressUserInfoKey
ProjectionTransform
ProtocolParameters
Publishers.Collect
Upstream
conforms to Equatable
.
Upstream
がEquatable
に準拠する時に準拠します。
Publishers.CollectByCount
Upstream
conforms to Equatable
.
Upstream
がEquatable
に準拠する時に準拠します。
Publishers.CombineLatest
A
conforms to Equatable
and B
conforms to Equatable
.
A
がEquatable
に準拠するそしてB
がEquatable
に準拠する時に準拠します。
Publishers.CombineLatest3
A
conforms to Equatable
, B
conforms to Equatable
, and C
conforms to Equatable
.
A
がEquatable
に準拠する、B
がEquatable
に準拠する、そしてC
がEquatable
に準拠する時に利用可能です。
Publishers.CombineLatest4
A
conforms to Equatable
, B
conforms to Equatable
, C
conforms to Equatable
, and D
conforms to Equatable
.
A
がEquatable
に準拠する、B
がEquatable
に準拠する、C
がEquatable
に準拠する、そしてD
がEquatable
に準拠する場合に準拠します。
Publishers.Concatenate
Prefix
conforms to Equatable
and Suffix
conforms to Equatable
.
Prefix
がEquatable
に準拠するそしてSuffix
がEquatable
に準拠する時に準拠します。
Publishers.Contains
Upstream
conforms to Equatable
.
Upstream
がEquatable
に準拠する時に準拠します。
Publishers.Count
Upstream
conforms to Equatable
.
Upstream
がEquatable
に準拠する時に準拠します。
Publishers.Drop
Upstream
conforms to Equatable
.
Upstream
がEquatable
に準拠する時に準拠します。
Publishers.DropUntilOutput
Upstream
conforms to Equatable
and Other
conforms to Equatable
.
Upstream
がEquatable
に準拠するそしてOther
がEquatable
に準拠する時に準拠します。
Publishers.First
Upstream
conforms to Equatable
.
Upstream
がEquatable
に準拠する時に準拠します。
Publishers.IgnoreOutput
Upstream
conforms to Equatable
.
Upstream
がEquatable
に準拠する時に準拠します。
Publishers.Last
Upstream
conforms to Equatable
.
Upstream
がEquatable
に準拠する時に準拠します。
Publishers.Merge
A
conforms to Equatable
and B
conforms to Equatable
.
A
がEquatable
に準拠するそしてB
がEquatable
に準拠する時に準拠します。
Publishers.Merge3
A
conforms to Equatable
, B
conforms to Equatable
, and C
conforms to Equatable
.
A
がEquatable
に準拠する、B
がEquatable
に準拠する、そしてC
がEquatable
に準拠する時に利用可能です。
Publishers.Merge4
A
conforms to Equatable
, B
conforms to Equatable
, C
conforms to Equatable
, and D
conforms to Equatable
.
A
がEquatable
に準拠する、B
がEquatable
に準拠する、C
がEquatable
に準拠する、そしてD
がEquatable
に準拠する場合に準拠します。
Publishers.Merge5
A
conforms to Equatable
, B
conforms to Equatable
, C
conforms to Equatable
, D
conforms to Equatable
, and E
conforms to Equatable
.
A
がEquatable
に準拠する、B
がEquatable
に準拠する、C
がEquatable
に準拠する、D
がEquatable
に準拠する、そしてE
がEquatable
に準拠する時に準拠します。
Publishers.Merge6
A
conforms to Equatable
, B
conforms to Equatable
, C
conforms to Equatable
, D
conforms to Equatable
, E
conforms to Equatable
, and F
conforms to Equatable
.
A
がEquatable
に準拠する、B
がEquatable
に準拠する、C
がEquatable
に準拠する、D
がEquatable
に準拠する、E
がEquatable
に準拠する、そしてF
がEquatable
に準拠する時に準拠します。
Publishers.Merge7
A
conforms to Equatable
, B
conforms to Equatable
, C
conforms to Equatable
, D
conforms to Equatable
, E
conforms to Equatable
, F
conforms to Equatable
, and G
conforms to Equatable
.
A
がEquatable
に準拠する、B
がEquatable
に準拠する、C
がEquatable
に準拠する、D
がEquatable
に準拠する、E
がEquatable
に準拠する、F
がEquatable
に準拠する、そしてG
がEquatable
に準拠する時に準拠します。
Publishers.Merge8
A
conforms to Equatable
, B
conforms to Equatable
, C
conforms to Equatable
, D
conforms to Equatable
, E
conforms to Equatable
, F
conforms to Equatable
, G
conforms to Equatable
, and H
conforms to Equatable
.
A
がEquatable
に準拠する、B
がEquatable
に準拠する、C
がEquatable
に準拠する、D
がEquatable
に準拠する、E
がEquatable
に準拠する、F
がEquatable
に準拠する、G
がEquatable
に準拠する、そしてH
がEquatable
に準拠する時に準拠します。
Publishers.MergeMany
Upstream
conforms to Equatable
.
Upstream
がEquatable
に準拠する時に準拠します。
Publishers.Output
Upstream
conforms to Equatable
.
Upstream
がEquatable
に準拠する時に準拠します。
Publishers.ReplaceEmpty
Upstream
conforms to Equatable
and Upstream
.
Output
conforms to Equatable
.
Upstream
がEquatable
に準拠するそしてUpstream
.
Output
がEquatable
に準拠する時に準拠します。
Publishers.ReplaceError
Upstream
conforms to Equatable
and Upstream
.
Output
conforms to Equatable
.
Upstream
がEquatable
に準拠するそしてUpstream
.
Output
がEquatable
に準拠する時に準拠します。
Publishers.Retry
Upstream
conforms to Equatable
.
Upstream
がEquatable
に準拠する時に準拠します。
Publishers.Sequence
Elements
conforms to Equatable
.
Elements
がEquatable
に準拠する時に準拠します。
Publishers.SetFailureType
Upstream
conforms to Equatable
.
Upstream
がEquatable
に準拠する時に準拠します。
Publishers.Share
Publishers.Zip
A
conforms to Equatable
and B
conforms to Equatable
.
A
がEquatable
に準拠するそしてB
がEquatable
に準拠する時に準拠します。
Publishers.Zip3
A
conforms to Equatable
, B
conforms to Equatable
, and C
conforms to Equatable
.
A
がEquatable
に準拠する、B
がEquatable
に準拠する、そしてC
がEquatable
に準拠する時に利用可能です。
Publishers.Zip4
A
conforms to Equatable
, B
conforms to Equatable
, C
conforms to Equatable
, and D
conforms to Equatable
.
A
がEquatable
に準拠する、B
がEquatable
に準拠する、C
がEquatable
に準拠する、そしてD
がEquatable
に準拠する場合に準拠します。
QCPlugInExecutionMode
QCPlugInTimeMode
QLPreviewPDFStyle
RadioShow
Range
範囲
RecordLabel
Result
Success
conforms to Equatable
and Failure
conforms to Equatable
.
Success
がEquatable
に準拠するそしてFailure
がEquatable
に準拠する時に準拠します。
RunLoop.Mode
SCNGeometrySource.Semantic
SCNHitTestOption
SCNLight.LightType
SCNMaterial.LightingModel
SCNParticleSystem.ParticleProperty
SCNPhysicsShape.Option
SCNPhysicsShape.ShapeType
SCNPhysicsWorld.TestOption
SCNPhysicsWorld.TestSearchMode
SCNScene.Attribute
SCNSceneSource.AnimationImportPolicy
SCNSceneSource.LoadingOption
SCNShaderModifierEntryPoint
SCNView.Option
SCStreamFrameInfo
SDPAttributeDeviceIdentificationRecord
SDPAttributeIdentifierCodes
SDPServiceClasses
SFAuthorizationViewState
SFButtonType
SFViewType
SHMediaItemProperty
SKAdTestPostbackVersion
SKCloudServiceSetupAction
SKCloudServiceSetupMessageIdentifier
SKCloudServiceSetupOptionsKey
SKDocumentIndexState
SKIndexType
SKSearchType
SNClassifierIdentifier
SRAbsoluteTime
SRDeviceUsageReport.CategoryKey
SRSensor
SecKeyAlgorithm
SecKeyKeyExchangeParameter
Selector
SequenceGesture.Value
First
conforms to Gesture
, Second
conforms to Gesture
, First
.
Value
conforms to Equatable
, and Second
.
Value
conforms to Equatable
.
First
がGesture
に準拠する、Second
がGesture
に準拠する、First
.
Value
がEquatable
に準拠する、そしてSecond
.
Value
がEquatable
に準拠する時に準拠します。
Set
Set.Index
ShapedData
Element
conforms to Equatable
.
Element
がEquatable
に準拠する時に準拠します。
SharedSecret
ShieldSettings.ActivityCategoryPolicy
SimultaneousGesture.Value
First
conforms to Gesture
, Second
conforms to Gesture
, First
.
Value
conforms to Equatable
, and Second
.
Value
conforms to Equatable
.
First
がGesture
に準拠する、Second
がGesture
に準拠する、First
.
Value
がEquatable
に準拠する、そしてSecond
.
Value
がEquatable
に準拠する時に準拠します。
Song
SparseControl_t
SparseFactorization_t
SparseGMRESVariant_t
SparseIterativeStatus_t
SparseKind_t
SparseLSMRConvergenceTest_t
SparseOrder_t
SparsePreconditioner_t
SparseScaling_t
SparseStatus_t
SparseSubfactor_t
SparseTriangle_t
SpotLightComponent
SpotLightComponent.Shadow
Station
Stream.PropertyKey
StreamNetworkServiceTypeValue
StreamSOCKSProxyConfiguration
StreamSOCKSProxyVersion
StreamSocketSecurityLevel
String
String.Index
String.LocalizationValue
StringEncodingDetectionOptionsKey
StringTransform
StrokeStyle
Subscribers.Completion
Failure
conforms to Equatable
.
Failure
がEquatable
に準拠する時に準拠します。
Subscribers.Demand
SupportedPlatform
SymmetricKey
SynchronizationComponent
SystemDependency
TVDocumentViewController.Event
TVMediaItem.ContentRatingDomain
TVMediaItem.MediaType
TVPlaybackEvent
TVPlaybackEventProperty
Task
TaskPriority
Text
Text.DateStyle
TimeZone
TimelineReloadPolicy
Token
Track
Transaction
Transaction.OfferType
Transaction.OwnershipType
Transaction.RevocationReason
UIAccessibility.Notification
UIAccessibilityTraits
UIAccessibility.AssistiveTechnologyIdentifier
UIAccessibilityTextualContext
UIAction.Identifier
UIActivityItemsConfigurationInteraction
UIActivityItemsConfigurationMetadataKey
UIActivityItemsConfigurationPreviewIntent
UIActivity.ActivityType
UIApplication.OpenExternalURLOptionsKey
UIApplication.ExtensionPointIdentifier
UIApplication.LaunchOptionsKey
UIApplication.OpenURLOptionsKey
UIBackgroundTaskIdentifier
UIConfigurationStateCustomKey
UIContentSizeCategory
UIEdgeInsets
UIFloatRange
UIFocusGroupPriority
UIFocusSoundIdentifier
UIFont.Weight
UIFontDescriptor.AttributeName
UIFontDescriptor.FeatureKey
UIFontDescriptor.SystemDesign
UIFontDescriptor.TraitKey
UIFont.TextStyle
UIImagePickerController.InfoKey
UILayoutPriority
UIMenu.Identifier
UINib.OptionsKey
UIOffset
UIPageViewController.OptionsKey
UIPasteboard.DetectionPattern
UIPasteboard.Name
UIPasteboard.OptionsKey
UISceneSession.Role
UIScrollView.DecelerationRate
UISheetPresentationController.Detent.Identifier
UITextContentType
UITextDirection
UITransitionContextViewControllerKey
UITransitionContextViewKey
UIWindow.Level
UNNotificationSoundName
URL
URLComponents
URLFileProtection
URLFileResourceType
URLQueryItem
URLRequest
URLResourceKey
URLThumbnailDictionaryItem
URLUbiquitousItemDownloadingStatus
UTTagClass
UTType
UUID
Unicode.Scalar
UnicodeDecodingResult
UnsafeCurrentTask
VNAnimalIdentifier
VNBarcodeSymbology
VNHumanBodyPoseObservation.JointName
VNHumanBodyPoseObservation.JointsGroupName
VNHumanHandPoseObservation.JointName
VNHumanHandPoseObservation.JointsGroupName
VNImageOption
VNRecognizedPointGroupKey
VNRecognizedPointKey
VNVideoProcessingOption
VSAccountProviderAuthenticationScheme
VSCheckAccessOption
NSValueTransformerName
VerificationResult
SignedType
conforms to Equatable
.
SignedType
がEquatable
に準拠している時に準拠します。
VerticalAlignment
ViewDimensions
WKTextContentType
WebContentSettings.FilterPolicy
WebDomain
WidgetInfo
XCSourceEditorCommandDefinitionKey
XCTPerformanceMetric
XCUIElement.AttributeName
XCUIGestureVelocity
XCUIKeyboardKey
compression_algorithm
compression_status
compression_stream_flags
compression_stream_operation
hv_apic_ctrl_t
hv_apic_intr_trigger_t
hv_apic_lvt_flavor_t
hv_cache_type_t
hv_exit_reason_t
hv_feature_reg_t
hv_interrupt_type_t
hv_reg_t
hv_simd_fp_reg_t
hv_sys_reg_t
hv_vm_exitinfo_t
hv_vmx_capability_t
hv_x86_reg_t
nw_browser_state_t
nw_connection_group_state_t
nw_connection_state_t
nw_data_transfer_report_state_t
nw_endpoint_type_t
nw_error_domain_t
nw_ethernet_channel_state_t
nw_framer_start_result_t
nw_interface_radio_type_t
nw_interface_type_t
nw_ip_ecn_flag_t
nw_ip_local_address_preference_t
nw_ip_version_t
nw_listener_state_t
nw_multipath_service_t
nw_multipath_version_t
nw_parameters_expired_dns_behavior_t
nw_path_status_t
nw_path_unsatisfied_reason_t
nw_quic_stream_type_t
nw_report_resolution_protocol_t
nw_report_resolution_source_t
nw_service_class_t
nw_txt_record_find_key_t
nw_ws_close_code_t
nw_ws_opcode_t
nw_ws_response_status_t
nw_ws_version_t
quadrature_integrator
quadrature_status
simd_double2x2
simd_double2x3
simd_double2x4
simd_double3x2
simd_double3x3
simd_double3x4
simd_double4x2
simd_double4x3
simd_double4x4
simd_float2x2
simd_float2x3
simd_float2x4
simd_float3x2
simd_float3x3
simd_float3x4
simd_float4x2
simd_float4x3
simd_float4x4
simd_quatd
simd_quatf
sparse_matrix_property
sparse_norm
sparse_status
vImageARGBType
vImageMDTableUsageHint
vImageYpCbCrType
vImage_InterpolationMethod
protocol Comparable
<
, <=
, >=
, and >
.
関係演算子<
、<=
、>=
、そして>
を使って比較されるある型。
protocol Identifiable