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 |
| 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 |
| cmp |
Functionality for ordering and comparison. |
| collections |
Collection types. |
| console |
A module for console functionality |
| convert |
Traits for conversions between types. |
| debug | |
| default |
The |
| 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, |
| rc |
Thread-local reference-counted boxes (the |
| result |
Error handling with the |
| slice |
A dynamically-sized view into a contiguous sequence, |
| 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 |
| 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 |
| assert_eq! |
Asserts that two expressions are equal to each other. |
| debug! |
Debug to console |
| debug_assert! |
Ensure that a boolean expression is |
| 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 |
| 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 |
| unreachable! |
A utility macro for indicating unreachable code. |
| vec! |
Creates a |
| write! |
Use the |
| writeln! |
Use the |
Structs
| BmpFile |
A bitmap |
| Box |
A pointer type for heap allocation. |
| Color |
A color |
| Vec |
A growable list type, written |
| WavFile |
A WAV file |
Functions
| rand |
Generate pseudo random number |