Skip to content

StructureFoundationEssentials

Decimal.ParseStrategy

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
A parse strategy for creating decimal values from formatted strings.
struct ParseStrategy<Format> where Format : FormatStyle, Format.FormatInput == Decimal

Topics

Initializers

Instance Properties

  • var formatStyle: Format
    The format style describing the expected format of the string to parse.
  • var lenient: Bool
    A Boolean value that indicates whether the parse strategy permits some discrepancies when parsing.

Default Implementations

Relationships

Conforms To

  • ParseStrategy
  • Swift.Decodable
  • Swift.Encodable
  • Swift.Equatable
  • Swift.Hashable
  • Swift.Sendable
  • Swift.SendableMetatype