Optional
extension Optional: OptionalProtocol, CSAnyProtocol
public extension Optional where Wrapped == Bool
public extension Optional where Wrapped: AnyObject
public extension Optional where Wrapped == String
public extension Optional where Wrapped: Equatable
-
Undocumented
Declaration
Swift
public var asString: String { get }
-
Undocumented
Declaration
Swift
public var asInt: Int { get }
-
Undocumented
Declaration
Swift
var notNil: Bool { get }
-
Undocumented
Declaration
Swift
var isSet: Bool { get }
-
Undocumented
Declaration
Swift
var isNil: Bool { get }
-
Undocumented
Declaration
Swift
@discardableResult func notNil(_ function: (Wrapped) -> Void) -> CSConditionalResult
-
Undocumented
Declaration
Swift
@discardableResult func isNil(_ function: Func) -> CSConditionalResultNotNil<Wrapped>
-
Undocumented
Declaration
Swift
func ret<ReturnType>(_ function: (Wrapped) -> ReturnType) -> ReturnType?
-
Undocumented
Declaration
Swift
var isTrue: Bool { get }
-
Undocumented
Declaration
Swift
var isFalse: Bool { get }
-
Undocumented
Declaration
Swift
func equals<T>(to object: T?) -> Bool where T : AnyObject
-
Undocumented
Declaration
Swift
var boolValue: Bool { get }
-
Undocumented
Declaration
Swift
func equals(any objects: Wrapped...) -> Bool
-
Undocumented
Declaration
Swift
func equals(any objects: [Wrapped]) -> Bool
-
Undocumented
Declaration
Swift
func equals(none objects: Wrapped...) -> Bool
-
Undocumented
Declaration
Swift
func isOther(then objects: Wrapped...) -> Bool
-
Undocumented
Declaration
Swift
var isNilOrEmpty: Bool { get }
-
Undocumented
Declaration
Swift
var isEmpty: Bool { get }
-
Undocumented
Declaration
Swift
var isNotEmpty: Bool { get }
-
Undocumented
Declaration
Swift
func nilOrEmpty(_ function: Func) -> Optional<Wrapped>
-
Undocumented
Declaration
Swift
var isSet: Bool { get }
-
Undocumented
Declaration
Swift
func contains(_ string: String, ignoreCase: Bool = false) -> Bool