Instance Methodswift 6.0.3FoundationEssentials
hash(into:)
- iOS
- 16+
- macOS
- 13+
- tvOS
- 16+
- watchOS
- 9+
func hash(into hasher: inout Hasher)
func hash(into hasher: inout Hasher)
s20FoundationEssentials6LocaleV17MeasurementSystemV4hash4intoys6HasherVz_tF
What are these?5SLIE
import FoundationEssentials
struct MeasurementSystem
struct Locale
Locale
encapsulates information about linguistic, cultural, and technological conventions and standards. Examples of information encapsulated by a locale include the symbol used for the decimal separator in numbers and the way dates are formatted.
@frozen struct Hasher
The universal hash function used by Set
and Dictionary
.
init(_ identifier: String)
The complete list of valid measurement systems can be found here, under the key with the name “ms”
init(from decoder: any Decoder) throws
init(stringLiteral value: String)
static let cldrKeywordKey: ICUCLDRKey
static let legacyKeywordKey: ICULegacyKey
static var measurementSystems: [Locale.MeasurementSystem] { get }
Returns a list of measurement systems
static let metric: Locale.MeasurementSystem
Metric system
static let uk: Locale.MeasurementSystem
UK System of measurement: feet, pints, etc.; pints are 20oz
static let us: Locale.MeasurementSystem
US System of measurement: feet, pints, etc.; pints are 16oz
var debugDescription: String { get }
var identifier: String { get set }
static func == (lhs: Locale.MeasurementSystem, rhs: Locale.MeasurementSystem) -> Bool
func encode(to encoder: any Encoder) throws