Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-swift

Options.contains(_:)

Returns a Boolean value that indicates whether a given element is a member of the option set.

Source and package
Qualified name
RegexPattern.Options.contains(_:)
Module
RegexPattern
Declared in
Options
Package
libtmux-swift
contains(member: Self) -> Bool

Inherited from OptionSet.contains(_:)

Description

This example uses the contains(_:) method to check whether next-day shipping is in the availableOptions instance.

let availableOptions = ShippingOptions.express if availableOptions.contains(.nextDay) { print("Next day shipping available") } // Prints "Next day shipping available"

  • Parameter member: The element to look for in the option set.
  • Returns: true if the option set contains member; otherwise, false.
Parameters

Recorded calls

source calls
No call edges in the Swift model.

The Swift reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls RegexPattern.Options.contains(_:).

Esc
Search in

Type to search.

Reference previewOpen reference