Discussion 解説
A new instance initialized with raw
will be equivalent to this instance. For example:
raw
で初期化された新しいインスタンスは、このインスタンスに相当します。例えば:
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"
Note 注意
This documentation comment was inherited from Raw
.
この文書化コメントは、Raw
から引き継がれました。