NoError
public enum NoError : Hashable, Equatable, Codable
NoError
is a type that cannot be constructed.
It’s intended to be used as the error type for promises that cannot return an error. It is
similar to Never
except it conforms to some protocols in order to make working with types
containing it easier.
-
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values
a
andb
,a == b
implies thata != b
isfalse
.Declaration
Swift
public static func == (lhs: NoError, rhs: NoError) -> Bool
Parameters
lhs
A value to compare.
rhs
Another value to compare.
-
Declaration
Swift
public func hash(into hasher: inout Hasher)
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws