Skip to main content

internal.types.function

Standard library Module View source
class Function
@extend
class Function[T, TR]
Constructors 2
__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
class Callable
@extend
class Callable[T, TR]
Constructors 4
__new__
__new__(fn: Function[([Ptr[u8], T], TR)], data: Ptr[u8]) -> Callable[(T, TR)]
__new__
@overload
__new__[T: type, TR: type, M: Literal[str], PT: type, F: type, K: type](fn: Function[([Ptr[u8], T], TR)], data: Partial[(M, PT, K, F)]) -> Callable[(T, TR)]
__new__
@overload
__new__(fn: Function[([Ptr[u8], T], TR)], data: Function[(T, TR)]) -> Callable[(T, TR)]
__new__
@overload
__new__(fn: Function[(T, TR)]) -> Callable[(T, TR)]
Special methods 1
__call__
__call__(self: Self, *args)
class Partial
@extend
class Partial[M, T, K, F]
Special methods 4
__repr__
__repr__(self: Self)
__call__
__call__(self: Self, *args, **kwargs)
__fn_name__
@property
__fn_name__(self: Self)
__raw__
__raw__(self: Self)