Crate redox [] [src]

The Redox Library

The Redox Library contains a collection of commonly used low-level software constructs to be used on top of the base operating system, including graphics support and windowing, a basic filesystem, audio support, a simple console with shell style functions, an event system, and environment argument support.

Reexports

pub use env::*;
pub use fs::*;
pub use io::*;
pub use string::*;
pub use console::*;
pub use orbital::*;
pub use orbital::event::*;
pub use url::*;
pub use to_num::*;

Modules

alloc_system
any

This module implements the Any trait, which enables dynamic typing of any 'static type through runtime reflection.

ascii

Operations on ASCII strings and characters

borrow

A module for working with borrowed data.

boxed

A pointer type for heap allocation.

cell

Shareable mutable containers.

char

A Unicode scalar value

clone

The Clone trait for types that cannot be 'implicitly copied'

cmp

Functionality for ordering and comparison.

collections

Collection types.

console

A module for console functionality

convert

Traits for conversions between types.

debug
default

The Default trait for types which may have meaningful default values.

env

Enviroment data

error

Traits for working with Errors.

externs

A module for necessary C and assembly constructs

floating_num

Numeric traits and functions for generic mathematics

fmt

Utilities for formatting and printing strings

fs
hash

Generic hashing support.

hashmap
i16

The 16-bit signed integer type.

i32

The 32-bit signed integer type.

i64

The 64-bit signed integer type.

i8

The 8-bit signed integer type.

io

IO

isize

The pointer-sized signed integer type.

iter

Composable external iteration

marker

Primitive traits and marker types representing basic 'kinds' of types.

mem

Basic functions for dealing with memory

net

A module dealing with network connections

num

Numeric traits and functions for the built-in numeric types.

ops

Overloadable operators

option

Optional values

orbital

A module for window support

panic
ptr

Raw, unsafe pointers, *const T, and *mut T

rc

Thread-local reference-counted boxes (the Rc<T> type).

result

Error handling with the Result type

slice

A dynamically-sized view into a contiguous sequence, [T].

str

Unicode string slices

string

An owned, growable string that enforces that its contents are valid UTF-8.

syscall

A module for system calls

time

A module for time

to_num

Types convertable to integers

u16

The 16-bit unsigned integer type.

u32

The 32-bit unsigned integer type.

u64

The 64-bit unsigned integer type.

u8

The 8-bit unsigned integer type.

url
usize

The pointer-sized unsigned integer type.

vec

A growable list type with heap-allocated contents, written Vec<T> but pronounced 'vector.'

intrinsics [Unstable]

rustc compiler intrinsics.

panicking [Unstable]

Panic support for libcore

prelude

The Rust Prelude

raw [Unstable]

Contains struct definitions for the layout of compiler built-in types.

simd [Deprecated]

SIMD vectors.

thread

Macros

assert!

Ensure that a boolean expression is true at runtime.

assert_eq!

Asserts that two expressions are equal to each other.

debug!

Debug to console

debug_assert!

Ensure that a boolean expression is true at runtime.

debug_assert_eq!

Asserts that two expressions are equal to each other, testing equality in both directions.

debugln!

Debug new line to console

format!

Use the syntax described in std::fmt to create a value of type String. See std::fmt for more information.

print!

Print to console

print_color!

Print to console with color

println!

Print new line to console

println_color!

Print new line to console with color

readln!

Read a line from the console

unimplemented!

A standardized placeholder for marking unfinished code. It panics with the message "not yet implemented" when executed.

unreachable!

A utility macro for indicating unreachable code.

vec!

Creates a Vec containing the arguments.

write!

Use the format! syntax to write data into a buffer.

writeln!

Use the format! syntax to write data into a buffer, appending a newline.

Structs

BmpFile

A bitmap

Box

A pointer type for heap allocation.

Color

A color

Vec

A growable list type, written Vec<T> but pronounced 'vector.'

WavFile

A WAV file

Functions

rand

Generate pseudo random number