Required Associated Typeswift 6.0.1Swift
StringLiteralType
A type that represents a string literal.
associatedtype StringLiteralType : _ExpressibleByBuiltinStringLiteral
Valid types for StringLiteralType
are String
and StaticString
.
Other requirements
Type members
init(stringLiteral: Self.StringLiteralType
) Creates an instance initialized to the given string value.