Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

RegexPattern.Options.contains(_:)

Swift
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift

View as Markdown

Module
RegexPattern
Declared in
Options
Package
libtmux-swift
contains(_:) ( member : Self ) → Bool
method
method
contains(_:)

Inherited from OptionSet.contains(_:)

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

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.

0 declared, 0 inherited

Esc

Type to search.