Documentation Language: Swift

Class

CustomConversion

Custom type conversion operation

class CustomConversion

Topics

Initializers

?
init(source:target:downPrefix:downSuffix:upPrefix:upSuffix:)

Designated initialiser for a custom type conversion

Instance Properties

V
downcastPrefix

The prefix to apply when downcasting an expression

V
downcastSuffix

The suffix to apply when downcasting an expression

V
upcastPrefix

The prefix to apply when upcasting an expression

V
upcastSuffix

The suffix to apply when upcasting an expression

Instance Methods

F
castFromTarget(expression:)

Swift code for converting to the target type using the upcast prefix.

F
castToTarget(from:)

Swift code for converting to the target type using the downcast prefix.

Relationships

Inherits From

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
TypeConversion

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

C
SubClassConversion

Parent/Child class conversion operation

C
OptionalSubClassConversion

Parent/Child class conversion operation with optional upcast

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