Instance Methodswift 6.0.1Swift
overlaps(_:)
func overlaps(_ other: ClosedRange<Bound>) -> Bool
Other members in extension
Type members
static func == (lhs: ClosedRange<Bound>, rhs: ClosedRange<Bound>
) -> Bool Returns a Boolean value indicating whether two ranges are equal.
Instance members
var customMirror: Mirror
var debugDescription: String
A textual representation of the range, suitable for debugging.
var description: String
A textual representation of the range.
var isEmpty: Bool
A Boolean value indicating whether the range contains no elements.
func clamped(to: ClosedRange<Bound>
) -> ClosedRange<Bound> Returns a copy of this range clamped to the given limiting range.
func contains(Bound
) -> Bool Returns a Boolean value indicating whether the given element is contained within the range.
func overlaps(Range<Bound>
) -> Bool func relative<C>(to: C
) -> Range<Bound>