module std

Expand

Mira Standard Library

Standard library for mira. Here is where all the intrinsics and lang items live too. (compiler internals yippieeee)

Modules§

alloc

Module responsible for handling allocations

intrinsics

Compiler intrinsics – you really shouldn’t touch this, unless some intrinsic is exported to somewhere else.

langitems

Lang items

os

Operating System Interactions

panicking

Panicking

ptr
slice
vec

Functions§

cstrlen

Gets the length of a c string

panic

Prints “panic: {message}\n”, prints the backtrace and exits.

print_char

Prints the character c to stdout

print_i64

Prints an i64 to stdout

print_newline

Prints a newliine to stdout

print_str

Prints string to stdout

print_str_newline

Prints string with a newline (\n) to stdout

print_u64

Prints a u64 to stdout

print_u64_hex

Prints a u64 as a hex literal

Structs§

Vec