Protocolswift 6.0.1FoundationEssentials
ParseableFormatStyle
A type that can convert a given data type into a representation.
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
protocol ParseableFormatStyle : FormatStyle
Browse conforming typesA type that can convert a given data type into a representation.
protocol ParseableFormatStyle : FormatStyle
import FoundationEssentials
protocol FormatStyle : Decodable, Encodable, Hashable
A type that can convert a given data type into a representation.
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
associatedtype Strategy : ParseStrategy where Self.FormatInput == Self.Strategy.ParseOutput, Self.FormatOutput == Self.Strategy.ParseInput
var parseStrategy: Self.Strategy { get }
A ParseStrategy
that can be used to parse this FormatStyle
’s output
struct ISO8601FormatStyle
Options for generating and parsing string representations of dates following the ISO 8601 standard.
static var iso8601: Date.ISO8601FormatStyle { get }
import FoundationInternationalization
struct FormatStyle
Strategies for formatting a Date
.
static var dateTime: Date.FormatStyle { get }
struct FormatStyle
static var number: Decimal.FormatStyle { get }
struct Percent
static var percent: Decimal.FormatStyle.Percent { get }
struct Currency
static func currency(code: String) -> Self