Skip to main content

Module lib

Module lib 

Source

Modules§

FS
GL
arc
chksum
fs
Asynchronous file utilities.
io
Traits, helpers, and type definitions for asynchronous I/O functionality.
iter
Composable external iteration.
lazy
logger
mem
Basic functions for dealing with memory.
ops
Overloadable operators.
profiling
ptr
Manually manage memory through raw pointers.
rand
rc
Single-threaded reference-counting pointers. ‘Rc’ stands for ‘Reference Counted’.
ser
slicing
stream
task
thread
Native threads.
time
Temporal quantification.

Macros§

bitflags
Generate a flags type.

Structs§

Arc
A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
AtomicBool
A boolean type which can be safely shared between threads.
AtomicI8
An integer type which can be safely shared between threads.
AtomicI16
An integer type which can be safely shared between threads.
AtomicI32
An integer type which can be safely shared between threads.
AtomicI64
An integer type which can be safely shared between threads.
AtomicIsize
An integer type which can be safely shared between threads.
AtomicPtr
A raw pointer type which can be safely shared between threads.
AtomicU8
An integer type which can be safely shared between threads.
AtomicU16
An integer type which can be safely shared between threads.
AtomicU32
An integer type which can be safely shared between threads.
AtomicU64
An integer type which can be safely shared between threads.
AtomicUsize
An integer type which can be safely shared between threads.
BTreeMap
An ordered map based on a B-Tree.
BTreeSet
An ordered set based on a B-Tree.
Barrier
A barrier enables multiple threads to synchronize the beginning of some computation.
BinaryHeap
A priority queue implemented with a binary heap.
Cell
A mutable memory location.
Dummy
Zero-sized type used to mark things that “act like” they own a T.
Formatter
Configuration for formatting.
HashMap
A hash map implemented with quadratic probing and SIMD lookup.
HashSet
A hash set implemented as a HashMap where the value is ().
JoinHandle
An owned permission to join on a thread (block on its termination).
Notify
Notifies a single task to wake up.
OnceLock
A synchronization primitive which can nominally be written to only once.
Ptr
Rc
A single-threaded reference-counting pointer. ‘Rc’ stands for ‘Reference Counted’.
Task
VecDeque
A double-ended queue implemented with a growable ring buffer.
f16
A 16-bit floating point type implementing the IEEE 754-2008 standard binary16 a.k.a “half” format.

Enums§

Ordering
Atomic memory orderings
ord
An Ordering is the result of a comparison between two values.

Constants§

ATOMIC_BOOL_INITDeprecated
An AtomicBool initialized to false.
ATOMIC_ISIZE_INITDeprecated
An AtomicIsize initialized to 0.
ATOMIC_USIZE_INITDeprecated
An AtomicUsize initialized to 0.

Traits§

AsyncRead
Reads bytes from a source.
AsyncReadExt
Reads bytes from a source.
AsyncWrite
Writes bytes asynchronously.
AsyncWriteExt
Writes bytes to a sink.
Borrow
A trait for borrowing data.
Cast
CharAsStr
CollectVec
CountItems
Debug
? formatting.
Display
Format trait for an empty format, {}.
ExplainError
FasterIndex
FlattenError
Fut
FutureExt
Extension trait for Future.
InspectCell
MutateCell
OrAssignment
Pipe
SendS
Stream
A stream of values produced asynchronously.
StreamExt
An extension trait for the Stream trait that provides a variety of convenient combinator functions.
StreamExtKit
ThreadUnwrap
TrivialBound
UniformUnwrap
UniformUnwrapOrDefault
UnwrapValid
Utf8Len
ValidOption
uRange
AtomicPrimitiveExperimental
A marker trait for primitive types which can be modified atomically.

Functions§

Arc
Box
Cell
Def
Mat2
Mat3
Mat4
Mat2x3
Mat2x4
Mat3x2
Mat3x4
Mat4x2
Mat4x3
Vec2
Vec3
Vec4
compiler_fence
A “compiler-only” atomic fence.
contains
dVec2
dVec3
dVec4
f16
f32
f64
fence
An atomic fence.
hVec2
hVec3
hVec4
i8
i16
i32
i64
i128
iVec2
iVec3
iVec4
ilVec2
ilVec3
ilVec4
intersects
isVec2
isVec3
isVec4
isize
iter2d
iter3d
mat2
mat3
mat4
ref_UUID
spin_loop_hintDeprecated
Signals the processor that it is inside a busy-wait spin-loop (“spin lock”).
type_name
type_size
Returns the size of a type in bytes.
u8
u16
u32
u64
u128
uVec2
uVec3
uVec4
ulVec2
ulVec3
ulVec4
usVec2
usVec3
usVec4
usize
vec2
vec3
vec4

Type Aliases§

Astr
BoxFut
GLbitfield
GLbool
GLenum
GLvoid
Mat2
Mat3
Mat4
Mat2x3
Mat2x4
Mat3x2
Mat3x4
Mat4x2
Mat4x3
Mutex
A mutual exclusion primitive useful for protecting shared data
MutexGuard
An RAII implementation of a “scoped lock” of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.
Res
RwLock
A reader-writer lock
RwLockUpgradableReadGuard
RAII structure used to release the upgradable read access of a lock when dropped.
STR
Str
Vec2
Vec3
Vec4
dVec2
dVec3
dVec4
fmtRes
The type returned by formatter methods.
hVec2
hVec3
hVec4
iVec2
iVec3
iVec4
ilVec2
ilVec3
ilVec4
isVec2
isVec3
isVec4
mat2
mat3
mat4
mat2x3
mat2x4
mat3x2
mat3x4
mat4x2
mat4x3
uVec2
uVec3
uVec4
ulVec2
ulVec3
ulVec4
usVec2
usVec3
usVec4
vec2
vec3
vec4
AtomicExperimental
A memory location which can be safely modified from multiple threads.

Attribute Macros§

derive_as_obj
derive_as_ser
derive_as_trivial
derive_as_val

Derive Macros§

Debug
Derive macro generating an impl of the trait Debug.