Documentation Language: Swift

Class

TypeConversion

Type conversion operation. This root class is used for aliases/equal type conversions, i.e., casts are no-ops.

class TypeConversion

Topics

Operators

?
==(_:_:)

Equality check for a type conversion. Two conversions are considered equal if they have the same name and C type.

Initializers

?
init(source:target:)

Designated initialiser for a type conversion

Instance Properties

V
source

Source type

V
target

Target type

Instance Methods

F
castFromTarget(expression:)

Swift code for converting from the target type without cast.

F
castToTarget(from:)

Swift code for converting to the target type without cast.

F
hash(into:)

Hashes the essential components of this type cast by feeding them into the given hasher.

Default Implementations

Relationships

Inherited By

Conforms To

See Also

Type system

C
GIRType

Representation of a fundamental type, its relationship to other types, and casting operations

C
GIRStringType

Representation of a string type, its relationship to other types, and casting operations

C
GIRRawPointerType

Representation of a raw pointer type, its relationship to other types, and casting operations

C
GIRRecordType

Representation of a record type (struct or class), its relationship to other types, and casting operations

C
GIRGenericType

Representation of a generic type (struct or class), its relationship to other types, and casting operations

C
GIROpaquePointerType

Representation of a opaque pointer type, its relationship to other types, and casting operations

C
SubClassConversion

Parent/Child class conversion operation

C
OptionalSubClassConversion

Parent/Child class conversion operation with optional upcast

C
CustomConversion

Custom type conversion operation

C
NestedConversion

Nested type conversion operation

C
EnumTypeConversion

Enum type conversion operation.

C
BitfieldTypeConversion

Bit field (OptionSet) type conversion operation.

C
RawPointerConversion

Raw pointer conversion