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
init(format:lenient:)Creates a parse strategy instance using the specified decimal percentage format style.init(from: any Decoder) throws
Instance Properties
var formatStyle: FormatThe format style describing the expected format of the string to parse.var lenient: BoolA Boolean value that indicates whether the parse strategy permits some discrepancies when parsing.
Default Implementations
Relationships
Conforms To
ParseStrategySwift.DecodableSwift.EncodableSwift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype