-
Notifications
You must be signed in to change notification settings - Fork 0
CaseObj
Oleksandr Bretsko edited this page Dec 27, 2020
·
1 revision
enum case which can be repr-d in 3 ways: rawValue, nested value or just case Supported formats: case cat, case cat = "", case .cat(Animal),
public struct CaseObj: SwiftT
SwiftT
if rawValue is nil - make case without rawvalue
init(name: Str, rawValue: Str? = nil)
init(name: Str, _ nestedType: TypeName)
init(name: Str, nestedType: Str, optional: Bool = false)
case name
var name: Str
var rawValue: Str?
var nestedType: TypeName?
var hasRawValue: Bool
var hasNestedType: Bool
case .cat(let a), .case .cat
var switchStr: Str
case cat(Cat), case cat
var typeDeclStr: Str
case cat(Cat), case cat
var str: Str
Generated at 2020-12-27T22:27:44+0200 using swift-doc 1.0.0-beta.5.