Parsable
public protocol Parsable
Parsable
Types that implement this protocol are expected to be constructible from string
-
Implement this method in order to be able to construct your data from string
Declaration
Swift
static func parse(_ string: String) -> Self?
Parameters
string
String to parse.
Return Value
Value of type, implementing this protocol if successful,
nil
otherwise.