EntityCollectionIndex
public struct EntityCollectionIndex<T> where T : Hashable
The index value of EntityCollection.
-
Equality is the inverse of inequality. For any values
a
andb
,a == b
implies thata != b
isfalse
.Returns a Boolean value indicating whether two values are equal.
Declaration
Swift
public static func == (lhs: EntityCollectionIndex, rhs: EntityCollectionIndex) -> Bool
Parameters
lhs
A value to compare.
rhs
Another value to compare.
Return Value
true
if the first argument equals the second argument;false
if not.
-
This function is the only requirement of the
Comparable
protocol. The remainder of the relational operator functions are implemented by the standard library for any type that conforms toComparable
.Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.
Declaration
Swift
public static func < (lhs: EntityCollectionIndex, rhs: EntityCollectionIndex) -> Bool
Parameters
lhs
A value to compare.
rhs
Another value to compare.
Return Value
true
if the first argument is less than the second argument;false
if not. -
Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.
Declaration
Swift
public static func <= (lhs: EntityCollectionIndex, rhs: EntityCollectionIndex) -> Bool
Parameters
lhs
A value to compare.
rhs
Another value to compare.
Return Value
true
if the first argument is less than or equal the second argument;false
if not. -
Return a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.
Declaration
Swift
public static func >= (lhs: EntityCollectionIndex, rhs: EntityCollectionIndex) -> Bool
Parameters
lhs
A value to compare.
rhs
Another value to compare.
Return Value
true
if the first argument is greater than or equal the second argument;false
if not. -
Return a Boolean value indicating whether the value of the first argument is greater than that of the second argument.
Declaration
Swift
public static func > (lhs: EntityCollectionIndex, rhs: EntityCollectionIndex) -> Bool
Parameters
lhs
A value to compare.
rhs
Another value to compare.
Return Value
true
if the first argument is greater than the second argument;false
if not.