Method
cast(expression:from:pointerLevel:const:isConstSource:)
Return the default cast to convert the given expression from the source type
func cast(expression e: String, from source: GIRType, pointerLevel indirection: Int = 0, const isConst: Bool = false, isConstSource: Bool = false) -> String
Parameters
e-
The expression to cast
source-
The source type to cast from
indirection-
The number of indirection levels (pointers)
isConst-
An indicator whether the cast is to a
constvalue isConstSource-
An indicator whether the source expression is a
constvalue
Return Value
The cast expression string