Skip to main content

Module builtin

Module builtin 

Source
Expand description

Implementation and type-checking of built-in functions, constructors and operators.

§Warning

Some functions are still TODO and are documented as such.

§Functions

See call_builtin_fn/type_builtin_fn Individual functions in module call.

§Constructors

See call_ctor/type_ctor. Individual functions in module ctor.

§Operators

See call_unary_op/type_unary_op and call_binary_op/type_binary_op. Individual operators are implemented on the Instance and Type types directly with the op_* functions.

Re-exports§

pub use ctor::is_ctor;
pub use ctor::struct_ctor;
pub use ctor::type_ctor;
pub use ctor::typecheck_struct_ctor;

Modules§

call
Built-in functions call implementations.
ctor
Constructor implementations, including zero-value constructors.

Functions§

builtin_type
Constructs a builtin type.
call_binary_op
Call a binary operator.
call_builtin_fn
Call a built-in function.
call_ctor
Call a constructor.
call_unary_op
Call a unary operator.
type_binary_op
Compute the return type of a binary operator expression.
type_builtin_fn
Compute the return type of calling a built-in function.
type_unary_op
Compute the return type of a unary operator expression.