Skip to main content

Function

Standard library class internal.core.Function View source
class Function
@tuple
class Function[T, TR]
Fields 2
T type
TR type
Constructors 3
__new__
@pure @derives @llvm
__new__() -> Function[(T, TR)]
Added by internal.core
ret ptr null
__new__
@pure @overload @llvm
__new__(what: Ptr[u8]) -> Function[(T, TR)]
ret ptr %what
__new__
@overload
__new__(what: Function[(T, TR)]) -> Function[(T, TR)]
Special methods 4
__raw__
@pure @llvm
__raw__(self: Self) -> Ptr[u8]
ret ptr %self
__repr__
__repr__(self: Self) -> str
__call_internal__
@__generated__ @llvm_c_call @llvm
__call_internal__(self: Function[(T, TR)], args: T) -> TR
noop # compiler will populate this one
__call__
__call__(self: Self, *args) -> TR