ZeroableType
public protocol ZeroableType : Decodable, Encodable, ExpressibleByIntegerLiteral, Hashable
A type conforming to the ZeroableType protocol is required to have a zero value, which fulfills the following requirements for any other value x:
- x * .zero = .zero
- x + .zero = x
-
Zero value
- x * .zero = .zero
- x + .zero = x
Declaration
Swift
static var zero: Self { get }