Class
CustomConversion
Custom type conversion operation
class CustomConversion
Topics
Initializers
Designated initialiser for a custom type conversion
Instance Properties
The prefix to apply when downcasting an expression
The suffix to apply when downcasting an expression
The prefix to apply when upcasting an expression
The suffix to apply when upcasting an expression
Instance Methods
Swift code for converting to the target type using the upcast prefix.
Swift code for converting to the target type using the downcast prefix.
Relationships
Inherits From
Inherited By
Conforms To
See Also
Type system
Representation of a fundamental type, its relationship to other types, and casting operations
Representation of a string type, its relationship to other types, and casting operations
Representation of a raw pointer type, its relationship to other types, and casting operations
Representation of a record type (struct or class), its relationship to other types, and casting operations
Representation of a generic type (struct or class), its relationship to other types, and casting operations
Representation of a opaque pointer type, its relationship to other types, and casting operations
Type conversion operation. This root class is used for aliases/equal type conversions, i.e., casts are no-ops.
Parent/Child class conversion operation
Parent/Child class conversion operation with optional upcast
Nested type conversion operation
Enum type conversion operation.
Bit field (OptionSet) type conversion operation.
Raw pointer conversion