mirror of
https://github.com/yattee/yattee.git
synced 2024-12-15 23:00:32 +05:30
39 lines
1.6 KiB
Swift
39 lines
1.6 KiB
Swift
import Defaults
|
|
import Foundation
|
|
|
|
extension Defaults.Serializable where Self: Codable {
|
|
static var bridge: Defaults.TopLevelCodableBridge<Self> { Defaults.TopLevelCodableBridge() }
|
|
}
|
|
|
|
extension Defaults.Serializable where Self: Codable & NSSecureCoding {
|
|
static var bridge: Defaults.CodableNSSecureCodingBridge<Self> { Defaults.CodableNSSecureCodingBridge() }
|
|
}
|
|
|
|
extension Defaults.Serializable where Self: Codable & NSSecureCoding & Defaults.PreferNSSecureCoding {
|
|
static var bridge: Defaults.NSSecureCodingBridge<Self> { Defaults.NSSecureCodingBridge() }
|
|
}
|
|
|
|
extension Defaults.Serializable where Self: Codable & RawRepresentable {
|
|
static var bridge: Defaults.RawRepresentableCodableBridge<Self> { Defaults.RawRepresentableCodableBridge() }
|
|
}
|
|
|
|
extension Defaults.Serializable where Self: Codable & RawRepresentable & Defaults.PreferRawRepresentable {
|
|
static var bridge: Defaults.RawRepresentableBridge<Self> { Defaults.RawRepresentableBridge() }
|
|
}
|
|
|
|
extension Defaults.Serializable where Self: RawRepresentable {
|
|
static var bridge: Defaults.RawRepresentableBridge<Self> { Defaults.RawRepresentableBridge() }
|
|
}
|
|
|
|
extension Defaults.Serializable where Self: NSSecureCoding {
|
|
static var bridge: Defaults.NSSecureCodingBridge<Self> { Defaults.NSSecureCodingBridge() }
|
|
}
|
|
|
|
extension Defaults.CollectionSerializable where Element: Defaults.Serializable {
|
|
static var bridge: Defaults.CollectionBridge<Self> { Defaults.CollectionBridge() }
|
|
}
|
|
|
|
extension Defaults.SetAlgebraSerializable where Element: Defaults.Serializable & Hashable {
|
|
static var bridge: Defaults.SetAlgebraBridge<Self> { Defaults.SetAlgebraBridge() }
|
|
}
|