Enumerationswift 6.0.1FoundationInternationalization
Style
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
enum Style
enum Style
s30FoundationInternationalization20ByteCountFormatStyleV0F0O
What are these?31THS
import FoundationInternationalization
struct ByteCountFormatStyle
case binary
case decimal
case file
case memory
init(from decoder: any Decoder) throws
init(style: ByteCountFormatStyle.Style = .file, allowedUnits: ByteCountFormatStyle.Units = .all, spellsOutZero: Bool = true, includesActualByteCount: Bool = false, locale: Locale = .autoupdatingCurrent)
var allowedUnits: ByteCountFormatStyle.Units { get set }
var attributed: ByteCountFormatStyle.Attributed
var includesActualByteCount: Bool { get set }
var locale: Locale { get set }
var spellsOutZero: Bool { get set }
var style: ByteCountFormatStyle.Style { get set }
func format(_ value: Int64) -> String
func locale(_ locale: Locale) -> ByteCountFormatStyle
struct Attributed
struct Units
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 RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
init?(rawValue: Int)
init(from decoder: any Decoder) throws
Creates a new instance by decoding from the given decoder, when the type’s RawValue
is Int
.
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func encode(to encoder: any Encoder) throws
Encodes this value into the given encoder, when the type’s RawValue
is Int
.
func hash(into hasher: inout Hasher)