UnitWidth
struct UnitWidth
struct UnitWidth
s30FoundationInternationalization11MeasurementVA2A9DimensionCRbzlE11FormatStyleV9UnitWidthV
What are these?6OU1K
import FoundationInternationalization
struct FormatStyle
struct Measurement<UnitType>
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.
protocol Sendable
init(from decoder: any Decoder) throws
static var abbreviated: Measurement<UnitType>.FormatStyle.UnitWidth { get }
Shows the unit using abbreviation. For example, “37.20 Cal”, “37,2 L”
static var narrow: Measurement<UnitType>.FormatStyle.UnitWidth { get }
Shows the unit in the shortest form possible, and may condense the spacing between the value and the unit. For example, “37.20Cal”, “37,2L”
static var wide: Measurement<UnitType>.FormatStyle.UnitWidth { get }
Examples for formatting a measurement with value of 37.20:
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.