Decimal128
public struct Decimal128 : BSONValue, Equatable, Codable, CustomStringConvertible
extension Decimal128: Hashable
A struct to represent the BSON Decimal128 type.
-
Declaration
Swift
public var description: String { get }
-
Initializes a
Decimal128
value from the providedString
. Returnsnil
if the input is not a valid Decimal128 string.Declaration
Swift
public init?(_ data: String)
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to: Encoder) throws
-
Declaration
Swift
public static func == (lhs: Decimal128, rhs: Decimal128) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)