[−][src]Module codegame::prelude
Re-exports
pub use geng; |
Modules
| anyhow | |
| async_trait | |
| bincode | Bincode is a crate for encoding and decoding using a tiny binary serialization strategy. Using it, you can easily go from having an object in memory, quickly serialize it to bytes, and then deserialize it back just as fast! |
| distributions | |
| draw_2d | |
| futures | Abstractions for asynchronous programming. |
| log | A lightweight logging facade. |
| logger | |
| mem | Basic functions for dealing with memory. |
| once_cell | Overview |
| program_args | |
| rand | Utilities for random number generation |
| serde | Serde |
| serde_json | Serde JSON |
| structopt | This crate defines the |
| thiserror | |
| trans | |
| ugli |
Macros
| Debug | Derive macro generating an impl of the trait |
| anyhow | Construct an ad-hoc error from a string or existing non- |
| btreemap | Create a BTreeMap from a list of key-value pairs |
| btreeset | Create a BTreeSet from a list of elements. |
| convert_args | Macro that converts the keys or key-value pairs passed to another maplit
macro. The default conversion is to use the |
| debug | Logs a message at the debug level. |
| error | Logs a message at the error level. |
| hashmap | Create a HashMap from a list of key-value pairs |
| hashset | Create a HashSet from a list of elements. |
| info | Logs a message at the info level. |
| log_enabled | Determines if a message logged at the specified level in that module will be logged. |
| pin_mut | Pins a value on the stack. |
| trace | Logs a message at the trace level. |
| warn | Logs a message at the warn level. |
Structs
| AABB | Axis aligned bounding box. |
| Arc | A thread-safe reference-counting pointer. 'Arc' stands for 'Atomically Reference Counted'. |
| AutoSave | |
| Cell | A mutable memory location. |
| Color | RGBA Color |
| Geng | |
| HashMap | A hash map implemented with quadratic probing and SIMD lookup. |
| HashSet | A hash set implemented as a |
| Mat4 | 4x4 matrix |
| Mutex | A mutual exclusion primitive useful for protecting shared data |
| PhantomData | Zero-sized type used to mark things that "act like" they own a |
| Pin | A pinned pointer. |
| Quat | |
| Range | A (half-open) range bounded inclusively below and exclusively above
( |
| RangeInclusive | A range bounded inclusively below and above ( |
| Rc | A single-threaded reference-counting pointer. 'Rc' stands for 'Reference Counted'. |
| RealImpl | |
| Ref | Wraps a borrowed reference to a value in a |
| RefCell | A mutable memory location with dynamically checked borrow rules |
| RefMut | A wrapper type for a mutably borrowed value from a |
| StdRng | The standard RNG. The PRNG algorithm in |
| ThreadPool | Abstraction of a thread pool for basic parallelism. |
| Timer | Timer can be used to track time since some instant. |
| Ugli | |
| Vec2 | 2 dimensional vector. |
| Vec3 | 3 dimensional vector. |
| Vec4 | 4 dimensional vector. |
Enums
| Bound | An endpoint of a range of keys. |
| c_void | Equivalent to C's |
Traits
| Add | The addition operator |
| AddAssign | The addition assignment operator |
| ApproxEq | |
| AsyncBufRead | Read bytes asynchronously. |
| AsyncRead | Read bytes asynchronously. |
| AsyncSeek | Seek bytes asynchronously. |
| AsyncWrite | Write bytes asynchronously. |
| BufRead | A |
| ColorComponent | |
| Debug |
|
| Deref | Used for immutable dereferencing operations, like |
| DerefMut | Used for mutable dereferencing operations, like in |
| Deserialize | A data structure that can be deserialized from any data format supported by Serde. |
| Diff | |
| Display | Format trait for an empty format, |
| Distribution | Types (distributions) that can be used to create a random instance of |
| Div | The division operator |
| DivAssign | The division assignment operator |
| DynClone | This trait is implemented by any type that implements |
| Float | |
| Future | A future represents an asynchronous computation. |
| Index | Used for indexing operations ( |
| IndexMut | Used for indexing operations ( |
| Mul | The multiplication operator |
| MulAssign | The multiplication assignment operator |
| Neg | The unary negation operator |
| Num | |
| RangeBounds |
|
| Read | The |
| Real | |
| Rem | The remainder operator |
| RemAssign | The remainder assignment operator |
| Rng | An automatically-implemented extension trait on |
| RngCore | The core of a random number generator. |
| SeedableRng | A random number generator that can be explicitly seeded. |
| Serialize | A data structure that can be serialized into any data format supported by Serde. |
| Sink | A |
| Stream | A stream of values produced asynchronously. |
| StructOpt | A struct that is converted from command line arguments. |
| Sub | The subtraction operator |
| SubAssign | The subtraction assignment operator |
| Trans | |
| TryFrom | Simple and safe type conversions that may fail in a controlled
way under some circumstances. It is the reciprocal of |
| TryFuture | A convenience for futures that return |
| TryInto | An attempted conversion that consumes |
| TryStream | A convenience for streams that return |
| UNum | |
| Write | A trait for objects which are byte-oriented sinks. |
| _ | Provides the |
| _ | An extension trait for |
| _ | Adapters specific to |
| _ | An extension trait which adds utility methods to |
| _ | An extension trait which adds utility methods to |
| _ | An extension trait which adds utility methods to |
| _ | An extension trait which adds utility methods to |
| _ | An extension trait for |
| _ | Adapters specific to |
| _ | An extension trait for |
| _ | |
| _ | Extension trait on iterators, providing random sampling methods. |
| _ | Extension trait on slices, providing random mutation and sampling methods. |
| _ | Provides the |
| _ | An extension trait for |
| _ | Adapters specific to |
| _ | An extension trait which adds utility methods to |
| _ | An extension trait which adds utility methods to |
| _ | An extension trait which adds utility methods to |
| _ | An extension trait which adds utility methods to |
| _ | An extension trait for |
| _ | Adapters specific to |
| _ | An extension trait for |
| _ | |
| _ | Extension trait on iterators, providing random sampling methods. |
| _ | Extension trait on slices, providing random mutation and sampling methods. |
Functions
| add_translation | |
| add_translations | |
| clamp | |
| clamp_abs | |
| clone_box | |
| default | |
| global_rng | |
| global_threadpool | |
| index_range | |
| max | Compares and returns the maximum of two values. |
| min | Compares and returns the minimum of two values. |
| min_max | |
| partial_max | |
| partial_min | |
| partial_min_max | |
| r32 | |
| r64 | |
| save_file | |
| select_file | |
| set_locale | |
| translate | |
| vec2 | Construct a 2-d vector with given components. |
| vec3 | Construct a 3-d vector with given components. |
| vec4 | Construct a 4-d vector with given components. |
Type Definitions
| R32 | |
| R64 | |
| c_char | Equivalent to C's |
| c_double | Equivalent to C's |
| c_float | Equivalent to C's |
| c_int | Equivalent to C's |
| c_long | Equivalent to C's |
| c_short | Equivalent to C's |
| c_ulong | Equivalent to C's |
| c_ushort | Equivalent to C's |
Attribute Macros
| async_trait |
Derive Macros
| Deserialize | |
| Diff | |
| Error | |
| Serialize | |
| StructOpt | Generates the |
| Trans |