Options.rawValue
The corresponding value of the raw type.
Source and package
- Qualified name
-
RegexPattern .Options. raw Value - Module
- RegexPattern
- Declared in
Options- Package
- libtmux-swift
- Source
- Sources/LibTmux/RegexPattern.swift
-
Description#
A new instance initialized with
rawValuewill be equivalent to this instance. For example:enum PaperSize: String { case A4, A5, Letter, Legal }
let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter"
print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"