Module geng::prelude [−][src]
Re-exports
Modules
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!
derive_more
Abstractions for asynchronous programming.
A lightweight logging facade.
Basic functions for dealing with memory.
Overview
Utilities for random number generation
Serde
Serde JSON
This crate defines the StructOpt
trait and its custom derive.
Macros
Derive macro generating an impl of the trait Debug
.
Construct an ad-hoc error from a string or existing non-anyhow
error
value.
Create a BTreeMap from a list of key-value pairs
Create a BTreeSet from a list of elements.
Macro that converts the keys or key-value pairs passed to another maplit
macro. The default conversion is to use the Into
trait, if no
custom conversion is passed.
Logs a message at the debug level.
Logs a message at the error level.
Create a HashMap from a list of key-value pairs
Create a HashSet from a list of elements.
Logs a message at the info level.
Determines if a message logged at the specified level in that module will be logged.
Pins a value on the stack.
Logs a message at the trace level.
Logs a message at the warn level.
Structs
Axis aligned bounding box.
A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
A mutable memory location.
RGBA Color
A hash map implemented with quadratic probing and SIMD lookup.
A hash set implemented as a HashMap
where the value is ()
.
4x4 matrix
A mutual exclusion primitive useful for protecting shared data
Zero-sized type used to mark things that “act like” they own a T
.
A pinned pointer.
A (half-open) range bounded inclusively below and exclusively above
(start..end
).
A range bounded inclusively below and above (start..=end
).
A single-threaded reference-counting pointer. ‘Rc’ stands for ‘Reference Counted’.
Wraps a borrowed reference to a value in a RefCell
box.
A wrapper type for an immutably borrowed value from a RefCell<T>
.
A mutable memory location with dynamically checked borrow rules
A wrapper type for a mutably borrowed value from a RefCell<T>
.
The standard RNG. The PRNG algorithm in StdRng
is chosen to be efficient
on the current platform, to be statistically strong and unpredictable
(meaning a cryptographically secure PRNG).
Abstraction of a thread pool for basic parallelism.
Timer can be used to track time since some instant.
2 dimensional vector.
3 dimensional vector.
4 dimensional vector.
Enums
Traits
The addition operator +
.
The addition assignment operator +=
.
Read bytes asynchronously.
Read bytes asynchronously.
Seek bytes asynchronously.
Write bytes asynchronously.
A BufRead
is a type of Read
er which has an internal buffer, allowing it
to perform extra ways of reading.
?
formatting.
Used for immutable dereferencing operations, like *v
.
Used for mutable dereferencing operations, like in *v = 1;
.
A data structure that can be deserialized from any data format supported by Serde.
Format trait for an empty format, {}
.
Types (distributions) that can be used to create a random instance of T
.
The division operator /
.
The division assignment operator /=
.
This trait is implemented by any type that implements std::clone::Clone
.
A future represents an asynchronous computation.
Used for indexing operations (container[index]
) in immutable contexts.
Used for indexing operations (container[index]
) in mutable contexts.
The multiplication operator *
.
The multiplication assignment operator *=
.
The unary negation operator -
.
RangeBounds
is implemented by Rust’s built-in range types, produced
by range syntax like ..
, a..
, ..b
, ..=c
, d..e
, or f..=g
.
The Read
trait allows for reading bytes from a source.
The remainder operator %
.
The remainder assignment operator %=
.
An automatically-implemented extension trait on RngCore
providing high-level
generic methods for sampling values and other convenience methods.
The core of a random number generator.
A random number generator that can be explicitly seeded.
A data structure that can be serialized into any data format supported by Serde.
A Sink
is a value into which other values can be sent, asynchronously.
A stream of values produced asynchronously.
A struct that is converted from command line arguments.
The subtraction operator -
.
The subtraction assignment operator -=
.
Simple and safe type conversions that may fail in a controlled
way under some circumstances. It is the reciprocal of TryInto
.
A convenience for futures that return Result
values that includes
a variety of adapters tailored to such futures.
An attempted conversion that consumes self
, which may or may not be
expensive.
A convenience for streams that return Result
values that includes
a variety of adapters tailored to such futures.
A trait for objects which are byte-oriented sinks.
Provides the context
method for Result
.
An extension trait for Future
s that provides a variety of convenient
adapters.
Adapters specific to Result
-returning futures
An extension trait for Sink
s that provides a variety of convenient
combinator functions.
An extension trait for Stream
s that provides a variety of convenient
combinator functions.
Adapters specific to Result
-returning streams
An extension trait which adds utility methods to AsyncBufRead
types.
An extension trait which adds utility methods to AsyncRead
types.
An extension trait which adds utility methods to AsyncSeek
types.
An extension trait which adds utility methods to AsyncWrite
types.
Extension trait on iterators, providing random sampling methods.
Extension trait on slices, providing random mutation and sampling methods.
Functions
Compares and returns the maximum of two values.
Compares and returns the minimum of two values.
Construct a 2-d vector with given components.
Construct a 3-d vector with given components.
Construct a 4-d vector with given components.
Type Definitions
Equivalent to C’s char
type.
Equivalent to C’s double
type.
Equivalent to C’s float
type.
Equivalent to C’s signed int
(int
) type.
Equivalent to C’s signed long
(long
) type.
Equivalent to C’s signed short
(short
) type.
Equivalent to C’s unsigned long
type.
Equivalent to C’s unsigned short
type.