Expand description
All the crate’s items flat re-exported.
Note that these items are already re-exported (hidden) from the root, as is every other public module’s contents from their parent.
Macros§
- CONST
- A helper for constructing macro constants.
- _str
dep_const_str
&str
compile-time operations, namespaced from the const-str crate.- addr_of
core
Create aconst
raw pointer to a place, without creating an intermediate reference.- addr_
of_ mut core
Create amut
raw pointer to a place, without creating an intermediate reference.- arch_
cmp avx
anddep_safe_arch
safe_arch
Turns a comparison operator token to the correct constant value.- arch_
round avx
anddep_safe_arch
safe_arch
Turns a round operator token to the correct constant value.- array_
init - Initializes a
[$T; $LEN]
array in multiple ways. - asm
core
Inline assembly.- assert
core
Asserts that a boolean expression is true at runtime.- assert_
approx_ eq_ all - Asserts the approximate equality of a series of expressions within
tolerance
. - assert_
eq core
Asserts that two expressions are equal to each other.- assert_
eq_ all - Asserts the equality of a series of expressions.
- assert_
ne core
Asserts that two expressions are not equal to each other.- bitfield
_bit··
- Creates a custom bit field struct.
- capture_
first - Captures the first token from a list of inputs.
- capture_
last - Captures the last token from a list of inputs.
- capture_
tail_ tuple - Captures all the tokens except the first one, as a tuple.
- cdbg
std
c
ustomizabledbg!
macro.- cfg
core
Evaluates boolean combinations of configuration flags at compile-time.- cfg_if
- A macro for defining
#[cfg]
if-else statements. - cfor
- A for loop that is usable in compile-time contexts.
- cif
devela_macros
Evaluates to either atrue
offalse
literal based on the predicate.- coalesce
devela_macros
Returns the first non-empty argument.- code_
column core
Expands to the column number at which it was invoked.- code_
file core
Expands to the file name at which it was invoked.- code_
line core
Expands to the line number at which it was invoked.- code_
module core
Expands to a string representing the current module path.- compile_
error core
Causes compilation to fail with the given error message when encountered.- concat
core
Concatenates literals into a static string slice.- const_
assert - Asserts various comparisons on constants.
- const_
bool - Converts a const
bool
expression to a type-level boolean. - const_
logic - MAYBE
- cswap
- Swaps two mutable variables in a compile-time friendly manner.
- debug
dep_log
log
Logs a message at the indicated level.- debug_
assert core
Asserts that a boolean expression is true at runtime.- debug_
assert_ eq core
Asserts that two expressions are equal to each other.- debug_
assert_ ne core
Asserts that two expressions are not equal to each other.- define_
panic_ handler - Defines a panic handler based on the chosen strategy.
- define_
static_ map - Build a custom static hashmap.
- deprecate_
feature - Configures a feature as deprecated, warning if it is enabled.
- detect_
aarch64 std
and (AArch64 ortarget_arch="arm64ec"
) std
Tests at runtime whether anaarch64
feature is enabled.- detect_
x86 std
and (x86 or x86-64) std
Tests at runtime whether anx86/x86-64
feature is enabled.- enumint
devela_macros
Generates a unit-only enum with variants associated to a specified range.- enumset
_bit_·
- Defines an enum and an associated type set of its variants.
- env_
core
Inspects an environment variable at compile time.- error
dep_log
log
Logs a message at the indicated level.- field_
of devela_macros
Generates an expression for accessing a field of a tuple or struct.- format
alloc
alloc
Creates a String using interpolation of runtime expressions.- format_
args core
Constructs parameters for the other string-formatting macros.- format_
buf - Returns a formatted
str
slice backed by a buffer, non-allocating. - global_
asm core
Module-level inline assembly.- id_seq
- A macro for constructing a unique sequential identifier generator.
- ident_
const_ index - Defines a constant for every given identifier with a value of its index in the list.
- ident_
total devela_macros
Returns the total number of identifiers in its input.- ident_
total_ unique devela_macros
Returns the numbers of both total and unique identifiers in its input.- ident_
unique devela_macros
Returns the number of unique identifiers in its input.- iif
i
nlineif
macro.- impl_
non_ value - Implements a
NonValue[I|U]B<V>
. - impl_
trait - A helper macro to concisely implement a few common utility traits.
- include
core
Parses a file as an expression or an item according to the context.- include_
bytes core
Includes a file as a reference to a byte array.- include_
from - Includes a Rust source file relative to the project’s directory.
- include_
str core
Includes a UTF-8 encoded file as a string.- info
dep_log
log
Logs a message at the indicated level.- items
- Groups items together and expands them as if they were written directly.
- js_
reexport js
andunsafe_ffi
- Helps re-exporting javascript functions.
- log
dep_log
log
Logs a message at the indicated level.- maybe
- Helper for using optionally implemented traits, like
Default
orClone
. - miniquad
dep_miniquad
- A macro for namespaced
miniquad
operations. - mod_
from - Declares a module by including a Rust source file relative to the project’s directory.
- offset_
of core
Expands to the offset in bytes of a field from the beginning of the given type.- option_
env core
Optionally inspects an environment variable at compile time.- panic_
core
Panics the current thread.- paste
paste
Allows to paste identifiers together.- pin
core
Constructs aPin<&mut T>
, by pinning avalue: T
locally.- sf
s
kipf
ormatting wrapper macro.- size_
of_ expr - Returns the size of an expression in bytes.
- sleep4
std
- A more compact
Thread::sleep
. - str
dep_const_str
&str
compile-time operations, namespaced from the const-str crate.- stringify
core
Stringifies its arguments.- strjoin
- Joins multiple string slices in compile-time.
- task_
ready core
Extracts the successful type of aTaskPoll<T>
.- thread_
local std
std
Declare a new thread local storage key of typeThreadLocalKey
.- todo
core
Indicates unfinished code.- trace
dep_log
log
Logs a message at the indicated level.- type_
marker - Defines zero-cost, zero-sized, generic marker IDs.
- type_
resource - Defines zero-cost, zero-sized, type-safe resource IDs.
- unimplemented
core
Indicates unimplemented code.- unreachable
core
Indicates unreachable code.- unroll
_unroll
- Unrolls the given for loop.
- unwrap
- An unwrapper macro that works in compile-time.
- vec_
alloc
alloc
Creates aVec
containing the arguments.- warn
dep_log
log
Logs a message at the indicated level.- write
core
Writes formatted data into a buffer.- writeln
core
Writes formatted data into a buffer, with a newline appended.- xorshift_
custom rand
- Constructs a XorShift prng with custom bits, basis, triplet and seed.
Structs§
- Addr
Parse Error - 🚩
core
An error which can be returned when parsing an IP address or a socket address. - Affine
- An affine transformation in
D
-dimensional space. - Alloc
- 🌐 Memory-allocation-related operations.
- Angle
- An angle represents a fraction of a full rotation.
- AppApple
std
- Apple enviroment for directories.
- AppConfig
std
- Application specific metadata.
- AppUnix
std
- Unix enviroment for directories.
- AppWindows
std
- Windows enviroment for directories.
- AppXdg
std
- Xdg enviroment for directories.
- Arc
alloc
- ⚛️
?alloc
A thread-safe reference-counting pointer. - ArcWeak
alloc
- ⚛️
?alloc
A version ofArc
that holds a non-owning reference. - Arch
- 🌐 Arch-related functionality.
- Array
- 📦 A static 1-dimensional array backed by the core array primitive.
- Array2d
- 📦
A static 2-dimensional
Array
. - Array
Fmt - A formatting wrapper for core arrays, implementing
Display
andDebug
. - Array
Into Iter - 🔄
core
A by-value array iterator. - Array
Uninit unsafe_array
- A static array allowing uninitialized elements.
- Ascii
- 🌐
Provides ASCII operations on
T
, most of them const. - Atomic
dep_atomic
- ⚛️
atomic
A generic atomic wrapper type. - Atomic
Bool - ⚛️
?core
A boolean type which can be safely shared between threads. - Atomic
F32 dep_portable_atomic
- ⚛️
portable-atomic
A thread-safe floating-point type. - Atomic
F64 dep_portable_atomic
- ⚛️
portable-atomic
A thread-safe floating-point type. - Atomic
I8 - ⚛️
?core
A thread-safe signed integer type. - Atomic
I16 - ⚛️
?core
A thread-safe signed integer type. - Atomic
I32 - ⚛️
?core
A thread-safe signed integer type. - Atomic
I64 - ⚛️
?core
A thread-safe signed integer type. - Atomic
I128 dep_portable_atomic
- ⚛️
portable-atomic
A thread-safe signed integer type. - Atomic
Isize - ⚛️
?core
A thread-safe signed integer type. - Atomic
Ptr - ⚛️
?core
A raw pointer type which can be safely shared between threads. - Atomic
U8 - ⚛️
?core
A thread-safe unsigned integer type. - Atomic
U16 - ⚛️
?core
A thread-safe unsigned integer type. - Atomic
U32 - ⚛️
?core
A thread-safe unsigned integer type. - Atomic
U64 - ⚛️
?core
A thread-safe unsigned integer type. - Atomic
U128 dep_portable_atomic
- ⚛️
portable-atomic
A thread-safe unsigned integer type. - Atomic
Usize - ⚛️
?core
A thread-safe unsigned integer type. - BTree
Map alloc
- 📦
alloc
An ordered map based on a B-Tree. - BTree
Set alloc
- 📦
alloc
An ordered set based on a B-Tree. - Backtrace
std
std
A captured OS thread stack backtrace.- BareBox
- A no-op pointer type, like a
Box
but without affecting howT
is stored. - Barrier
std
std
Enables multiple threads to synchronize the beginning of some computation.- Barrier
Wait Result std
- ⚖️
std
Returned byBarrier::wait()
when all threads in the Barrier have rendezvoused. - Base
- A compile-time configurable radix-based encoding scheme.
- Binary
Heap alloc
- 📦
alloc
A priority queue implemented with a binary heap. - Bitmap
Font font
- A simple bitmap font for rendering fixed-size glyphs.
- Bitwise
_bit··
- 🌐
Provides constant bitwise operations on
T
. - Box
alloc
alloc
A pointer type that uniquely owns a heap allocation of typeT
.- Boxed
alloc
- A zero-sized marker for a
Storage
type that wraps its data in aBox
. - Byte
Search - 🌐 A utility struct for searching bytes in slices.
- CStr
core
Representation of a borrowed C string (SeeCString
).- CString
alloc
An owned, C-compatible, nul-terminated string with no nul bytes in the middle.- Cache
Align - Aligns and pads a value to the length of a cache line.
- Cast
prim··
- 🌐 Provides const casting, joining and splitting operations between primitives.
- Cell
core
A mutable memory location.- Char
- 🌐 Unicode scalars-related operations.
- CodecBe
- Encodes and decodes a number in big-endian order.
- Codec
Flags - Encodes and decodes a sequence of flags as a single byte.
- CodecIf
- Encodes and decodes conditionally.
- Codec
Join - Encodes and decodes an iterator as a sequence with an optional
separator
. - CodecLe
- Encodes and decodes a number in little-endian order.
- Codec
Len - A dummy writer that counts bytes instead of actually writing them.
- Codec
LenValue - Encodes and decodes a length prefixed value (TLV).
- Color
color
- 🌐 Color namespaced constants and methods.
- Compare
- 🌐
Provides comparing methods for
T
. - Condvar
std
std
A Condition Variable- Const
List - 📦 An immutable, append-only, linear, functional, non-contiguous, list.
- Const
List Iterator - 🔄
Iterates over the contents of a
ConstList
. - Coro
- Represents a single thread stackless coroutine.
- CoroRun
alloc
- A managed dynamic collection of single-thread
Coro
utines. - Coro
Yield - A future that alternates between
Ready
andPending
status each time it’s polled. - Crockford
- The
Crockford
Base32
encoding, case-insensitive, remaps certain characters. - Crossterm
Service dep_crossterm
crossterm
’s UI backend service.- Current
std
andunsafe_layout
- A marker object representing the current instance of a type
T
. - Current
Guard std
andunsafe_layout
- A guard that temporarily sets a global current pointer for
T
, restoring the old one on drop. - Cycle
- A repeating cycle defined by a fundamental period.
- Cycle
Count - A cycle that repeats a fixed number of times.
- Data
Overflow - 🚩 The value has surpassed the bounds of the representable data space.
- Debug
List core
A struct to help withDebug
implementations.- Debug
Map core
A struct to help withDebug
implementations.- Debug
Set core
A struct to help withDebug
implementations.- Debug
Struct core
A struct to help withDebug
implementations.- Debug
Tuple core
A struct to help withDebug
implementations.- Destaque
- 📦
A static double-ended queue and stack backed by an
Array
. - Destaque
Iter - 🔄
An iterator over
Destaque
elements. - DirBuilder
std
std
A builder used to create directories in various manners.- DirEntry
std
std
Entries returned by the ReadDir iterator.- Discriminant
core
Opaque type representing the discriminant of an enum.- Distance
- A separation between two locations in
D
-dimensional space. - Divisor
- Faster divisor for division and modulo operations.
- Drum
Frame8 audio
- A set of 8 drum instruments.
- DstArray
unsafe_layout
- 📦 A static array for storing DSTs.
- DstQueue
unsafe_layout
- 📦 A statically allocated FIFO queue of DSTs.
- DstQueue
Iter unsafe_layout
- 🔄
An iterator over the elements of a
DstQueue
. - DstQueue
Iter Mut unsafe_layout
- 🔄
A mutable iterator over the elements of a
DstQueue
. - DstQueue
PopHandle unsafe_layout
- Handle returned by
DstQueue::pop
(does the actual pop on drop). - DstStack
unsafe_layout
- 📦 A statically allocated LIFO stack of DSTs.
- DstStack
Iter unsafe_layout
- 🔄
An iterator over the elements of a
DstStack
. - DstStack
Iter Mut unsafe_layout
- 🔄
A mutable iterator over the elements of a
DstStack
. - DstValue
unsafe_layout
- 📦 A statically allocated DST value.
- Duration
core
A span of time, withu64
seconds andu32
nanoseconds.- Duration
Error TryFrom Float Secs - 🚩
core
Error returned from converting floating-point seconds into aDuration
. - Element
NotFound - 🚩 The requested element has not been found.
- Env
- 🌐
A namespaced wrapper for
std::env
functions and constants. - Example
Static MapU16 - Extent
- An orthogonal extension in
D
-space without a coordinate position. - Failed
Error Conversion - 🚩 A failed conversion between two error types.
- False
- A type-level logical false.
- FatPtr
- Represents a fat pointer with separate data and metadata pointers.
- File
std
std
An object providing access to an open file on the filesystem.- File
Metadata std
std
Metadata information about a file.- File
Open Options std
std
Options and flags which can be used to configure how a file is opened.- File
Permissions std
std
Representation of the various permissions on a file.- File
Times std
std
Representation of the various timestamps on a file.- File
Type std
std
Represents a type of file with accessors for each file type.- Float
- 🌐
Provides comprehensive floating-point operations for
T
, most of them const. - Fmt
- 🌐 A string formatting namespace.
- FmtArguments
core
Represents a safely precompiled version of a format string and its arguments.- FmtError
- 🚩
core
The error type which is returned from formatting a message into a stream. - Formatter
core
Configuration for formatting.- Frac
- 🌐
Provides comprehensive fractional operations on
T
, most of them const. - Fs
std
- 🌐 Filesystem-related operations.
- FsPath
std
- 🌐
A more featureful wrapper over
PathBuf
. - Future
Pending core
A future which never resolves, representing a computation that never finishes.- Future
Poll Fn core
A Future that wraps a function returningTaskPoll
.- Future
Ready core
A future that is immediately ready with a value.- GcdReturn
- ⚖️ A return type for the calculated GCD and the Bézout coeficients.
- Grapheme
Nonul - An EGC backed by a
StringNonul
. - Grapheme
String alloc
- An EGC backed by a
String
. - Grapheme
U8 - An EGC backed by an
StringU8
. - HashMap
dep_hashbrown
orstd
- 📦
std?
An unordered hash map implemented with quadratic probing and SIMD lookup. - HashSet
dep_hashbrown
orstd
std?
An unordered hash set implemented as aHashMap
where the value is()
- Hasher
Build Default core
Create a defaultHasherBuild
instance forT:
Hasher
+
Default
types.- Hasher
Fnv hash
andcast
- A Fowler–Noll–Vo hasher, implemented for u32, u64, u128 & usize.
- Hasher
Fx - A hashing algorithm used in the Rustc compiler, implemented for u32, u64 & usize.
- Hasher
Pengy hash
- A fast 64-bit non-cryptographic hash algorithm.
- IdPin
- A unique identifier based on a pinned stack-allocated reference.
- IdPin
Box - A unique identifier based on a pinned heap-allocated memory address.
- Index
OutOf Bounds - 🚩 The given index is out of bounds.
- Int
- 🌐
Provides comprehensive integer operations on
T
, most of them const. - Interval
- A range of values with
lower
andupper
Bound
s. - Invalid
Axis Length - 🚩 The given axis has an invalid length.
- Invalid
Char - 🚩 An invalid given character was found.
- Invalid
Utf8 - 🚩 Invalid Utf-8 found while interpreting a byte sequence.
- Io
std
, or non-std
andio
- 🌐 I/O-related operations.
- IoBuf
Reader ?std
Adds buffering to any reader.- IoBuf
Writer ?std
Wraps a writer and buffers its output.- IoBytes
?std
An iterator overu8
values of a reader.- IoChain
?std
Adapter to chain together two readers.- IoCursor
?std
Wraps an in-memory buffer and provides it with anIoSeek
implementation.- IoEmpty
std
std
Ignores any data written viaIoWrite
, and read viaIoRead
.- IoError
- 🚩+
?std
Error type forIoRead
,IoWrite
,IoSeek
operations. - IoLine
Writer ?std
LikeBufWriter
, but flushing whenever a newline (0x0a
,' '
) is detected.- IoLines
std
std
An iterator over the lines of an instance ofIoBufRead
.- IoRepeat
std
std
A reader which yields one byte over and over and over and over and over and…- IoSink
std
std
A writer which will move data into the void.- IoSlice
std
std
A buffer type used withIoWrite::write_vectored
.- IoSlice
Mut std
std
A buffer type used withIoRead::read_vectored
.- IoSplit
std
std
An iterator over the contents of an instance of BufRead split on a particular byte.- IoTake
?std
Reader adapter which limits the bytes read from an underlying reader.- Ipv4
Addr core
An IPv4 address.- Ipv6
Addr core
An IPv6 address.- Iter
- 🌐 🔄 Iterator-related namespaced operations.
- Iter
Args std
- 🔄
std
Iterates over the arguments of a process, yielding them asString
s. - Iter
Args Os std
- 🔄
std
Iterates over the arguments of a process, yielding them asOsString
s. - Iter
Chain - 🔄
core
An iterator that links two iterators together, in a chain. - Iter
Chars - 🔄
core
An iterator over thechar
s of a string slice. - Iter
Cloned - 🔄
core
An iterator that clones the elements of an underlying iterator. - Iter
Copied - 🔄
core
An iterator that copies the elements of an underlying iterator. - Iter
Cycle - 🔄
core
An iterator that repeats endlessly. - Iter
DirRead std
- 🔄
std
Iterator over the entries in a directory. - Iter
Empty - 🔄
core
An iterator that yields nothing. - Iter
Enumerate - 🔄
core
An iterator that yields the current count and the element during iteration. - Iter
Filter - 🔄
core
An iterator that filters the elements ofiter
withpredicate
. - Iter
Filter Map - 🔄
core
An iterator that usesf
to both filter and map elements fromiter
. - Iter
Flat Map - 🔄
core
An iterator that maps each element to an iterator, and yields their elements. - Iter
Flatten - 🔄
core
An iterator that flattens one level of nesting in an iterator of iterables. - Iter
From Fn - 🔄
core
An iterator where each iteration calls a closureF: FnMut() -> Option<T>
. - Iter
Fuse - 🔄
core
An iterator that yieldsNone
forever after the underlying yieldsNone
once. - Iter
Inspect - 🔄
core
An iterator that calls a fn with a reference to each element before yielding it. - IterMap
- 🔄
core
An iterator that maps the values of iter withf
. - Iter
MapWhile - 🔄
core
An iterator that only accepts elements whilepredicate
returnsSome(_)
. - Iter
Once - 🔄
core
An iterator that yields an element exactly once. - Iter
Once With - 🔄
core
An iterator that yields a single elementA
by callingF: FnOnce() -> A
. - Iter
Path std
- 🔄
std
An iterator over theIterPathComponents
of aPath
, asOsStr
slices. - Iter
Path Ancestors std
- 🔄
std
An iterator overPath
and its ancestors. - Iter
Path Components std
- 🔄
std
An iterator over the Components of a Path. - Iter
Peekable - 🔄
core
An iterator with apeek()
that returns an optional ref to the next element. - Iter
Repeat - 🔄
core
An iterator that repeats an element endlessly. - Iter
RepeatN - 🔄
core
An iterator that repeats an element an exact number of times. - Iter
Repeat With - 🔄
core
An iterator that endlessly repeatsA
by callingF: FnMut() -> A
. - IterRev
- 🔄
core
A double-ended iterator with the direction inverted. - Iter
Scan - 🔄
core
An iterator to maintain state while iterating another iterator. - Iter
Skip - 🔄
core
An iterator that skips overn
elements ofiter
. - Iter
Skip While - 🔄
core
An iterator that rejects elements whilepredicate
returnstrue
. - Iter
Split Paths std
- 🔄
std
An iterator that splits an environment variable into paths. - Iter
Step By - 🔄
core
An iterator for stepping iterators by a custom amount. - Iter
Successors - 🔄
core
An iterator where each successive item is computed based on the preceding one. - Iter
Take - 🔄
core
An iterator that only iterates over the firstn
iterations ofiter
. - Iter
Take While - 🔄
core
An iterator that only accepts elements whilepredicate
returnstrue
. - Iter
Vars std
- 🔄
std
An iterator over a snapshot of the environment variables of this process. - Iter
Vars Os std
- 🔄
std
An iterator over a snapshot of the environment variables of this process. - IterZip
- 🔄
core
An iterator that iterates two other iterators simultaneously. - Join
Paths Error std
- 🚩
std
Returned from Env::join_paths. - Js
js
- A Javascript namespace.
- KeyAlready
Exists - 🚩 The key already exists.
- LINUX_
ERRNO linux
- Linux
sys/errno.h
constants. - LINUX_
FILENO linux
- Linux file descriptor constants.
- LINUX_
IOCTL linux
- Linux
ioctl
constants. - LINUX_
SIGACTION linux
- Linux flag constants for
LinuxSigaction
. - LINUX_
SIGNAL linux
- Linux standard signals constants.
- LINUX_
SYS_ AARC H64 linux
- Linux
sys/syscall.h
constants foraarch64
. - LINUX_
SYS_ ARM linux
- Linux
sys/syscall.h
constants forarmv7
. - LINUX_
SYS_ RISCV linux
- Linux
sys/syscall.h
constants forriscv
. - LINUX_
SYS_ X86 linux
- Linux
sys/syscall.h
constants forx86
. - LINUX_
SYS_ X86_ 64 linux
- Linux
sys/syscall.h
constants forx86_64
. - LINUX_
TERMIOS_ CFLAG linux
LinuxTermios
control flags.- LINUX_
TERMIOS_ IFLAG linux
LinuxTermios
input flags.- LINUX_
TERMIOS_ LFLAG linux
LinuxTermios
local flags.- LINUX_
TERMIOS_ OFLAG linux
LinuxTermios
output flags.- Lazy
Cell core
A value which is initialized on the first access.- Lazy
Lock std
std
A value which is initialized on the first access.- Lgc16
rand
- A 16-bit LCG PRNG.
- Linked
List alloc
- 📦
alloc
A doubly-linked list with owned nodes. - Linux
Sigaction linux
- Represents the
sigaction
structure from libc. Examine and change a signal action. - Linux
Sigset linux
- A set of signals.
- Linux
Terminal unsafe_syscall
andlinux
- Linux terminal manager.
- Linux
Terminal Size linux
- The size of the terminal.
- Linux
Termios linux
- Represents the
termios
structure from libc, used to control terminal I/O. - Linux
Timespec linux
- Represents the
timespec
structure from libc. Time in seconds and nanoseconds. - Log
dep_log
- 🌐 Log-related operations.
- LogConfig
dep_log
- Configuration for a logger.
- LogMetadata
dep_log
log
Metadata about a log message.- LogRecord
dep_log
log
The “payload” of a log message.- Logger
SetError dep_log
- 🚩
log
Returned byset_logger
if it has already been called. - Manually
Drop core
A wrapper to inhibit compiler from automatically callingT
’s destructor.- Matrix
- A static
R×C
shaped matrix backed by an array. - Maybe
- A type-level logical maybe.
- Mem
- 🌐 Memory-related operations.
- MemLayout
alloc
alloc
Layout of a block of memory.- MemLayout
Error alloc
- 🚩
alloc
TheMemLayout
parameters violated constraints. - Miniquad
Pixels alloc
anddep_miniquad
- Draws a single fullscreen quad textured by a pixel buffer.
- Miniquad
Service dep_miniquad
miniquad
’s UI Service.- Miniquad
Window dep_miniquad
- A wrapper namespace over
miniquad::window
functions. - Mismatch
- ⚖️
Represents a mismatch between an expected
need
and an encounteredhave
. - Mismatched
Capacity - 🚩 The given capacity did not match the required constraints.
- Mismatched
Dimensions - 🚩 The dimensions given did not match the elements provided.
- Mismatched
Indices - 🚩 The given indices does not match the expected order.
- Mutex
std
std
A mutual exclusion primitive useful for protecting shared data.- Mutex
Guard std
std
An RAII implementation of a “scoped lock” of a mutex.- Node
Empty - 🚩 The node is empty.
- Node
Link NotSet - 🚩 The link is not set.
- Node
Link NotUnique - 🚩 The link is not unique.
- NonValue
I8 - A signed integer that is known not to equal some specific value.
- NonValue
U8 - An unsigned integer that is known not to equal some specific value.
- NonValue
U16 - An unsigned integer that is known not to equal some specific value.
- NonZero
core
A value that is known not to equal zero.- NotEnough
Elements - 🚩 There are not enough elements for the operation.
- NotEnough
Space - 🚩 There is not enough free space for the operation.
- NotImplemented
- 🚩 The requested functionality is not implemented.
- NotSupported
- 🚩 The requested functionality is not supported by this type.
- Once
std
std
A synchronization primitive for one-time global initialization.- Once
Cell core
A cell which can nominally be written to only once.- Once
Lock std
std
A synchronization primitive which can be written to only once.- Once
State std
std
State yielded toOnce::call_once_force()
’s closure parameter.- Option
Fmt - The type returned from
ExtOption::fmt_or_empty
. - Option
FmtOr - The type returned from
ExtOption::fmt_or
. - Option
FmtOr Else - The type returned from
ExtOption::fmt_or_else
. - Orientation
- A unitless directional vector in
D
-dimensional space. - OsStr
std
std
Borrowed reference to an OS string (SeeOsString
).- OsString
std
std
A type for owned, mutable native strings, interconvertible with Rust strings.- Own
- ⚖️
A return type encapsulating an owned state
S
and a valueV
. - Panic
- 🌐 Panic-related operations.
- Panic
Assert Unwind Safe core
A simple wrapper around a type to assert that it is unwind safe.- Panic
Hook Info std
std
Passed tostd::panic::set_hook
instd
, where panics can have arbitrary payloads.- Panic
Info core
Passed to#[panic_handler]
inno_std
, where panics always carry a formatted message.- Panic
Location core
A struct containing information about the location of a panic.- Parse
Float Error - 🚩
core
An error which can be returned when parsing an float. - Parse
IntError - 🚩
core
An error which can be returned when parsing an integer. - Partially
Added - 🚩 The operation could only add a subset of the elements.
- Path
std
std
A slice of a path (akin tostr
).- PathBuf
std
std
An owned, mutable path (akin toString
).- Path
Display std
std
Helper struct for safely printing paths withformat!
and{}
.- Path
Prefix Component std
std
Wraps a Windows path prefix as well as its unparsed string representation.- Path
Strip Prefix Error std
- 🚩
std
An error returned fromPath::strip_prefix
if the prefix was not found. - Phantom
Data core
Zero-sized type used to mark things that “act like” they own aT
.- Phantom
Pinned core
A marker type which does not implementUnpin
.- Pin
core
A pointer which pins its pointee in place.- Pinned
unsafe_ptr
- A wrapper for structurally pinned data.
- Pnm
image
- 🌐 A collection of methods for encoding and decoding PNM bitmap formats.
- Point
geom
- A coordinate position in
D
-space without extent. - Points
geom
- A static sequence of
N
D
-dimensionalPoint
s. - Poison
Error std
- 🚩
std
A type of error which can be returned whenever a lock is acquired. - Position
- A location in
D
-dimensional space. - Process
std
std
Representation of a running or exited child process.- Process
Command std
std
A builder for configuring and spawning new processes.- Process
Command Args std
std
An iterator over the command arguments.- Process
Command Envs std
std
An iterator over the command environment variables.- Process
Exit Code std
- ⚖️
std
The status code the process returns to its parent on normal termination. - Process
Exit Status std
- ⚖️
std
Describes the result of a process after it has terminated. - Process
Output std
std
The output of a finished process.- Process
Stderr std
std
A handle to a child process’s stderr.- Process
Stdin std
std
A handle to a child process’s standard input (stdin).- Process
Stdio std
std
Specifies how to handle standard I/O streams inProcessCommand
.- Process
Stdout std
std
A handle to a child process’s standard output (stdout).- Ptr
- 🌐 Pointer-related operations.
- PtrNon
Null core
*mut T
but non-zero and covariant.- Random
State std
std
The default state forHashMapStd
.- Range
core
A range bounded inclusively below and exclusively above (start..end
).- Range
From core
A range only bounded inclusively below (start..
).- Range
Full core
An unbounded range (..
).- Range
Inclusive core
A range bounded inclusively below and above (start..=end
).- RangeTo
core
A range only bounded exclusively above (..end
).- Range
ToInclusive core
A range only bounded inclusively above (..=end
).- Rc
alloc
alloc
A single-threaded reference-counting pointer.- RcWeak
alloc
alloc
A version ofRc
that holds a non-owning reference to the managed allocation.- Ref
core
A wrapper type for an inmutably borrowed value from aRefCell<T>
- RefCell
core
A mutable memory location with dynamically checked borrow rules.- RefCell
Borrow Error - 🚩
core
An error returned byRefCell::try_borrow
. - RefCell
Borrow MutError - 🚩
core
An error returned byRefCell::try_borrow_mut
. - RefMut
core
A wrapper type for a mutably borrowed value from aRefCell<T>
- Region
- A
Position
edExtent
. - Region
Strided - A
Stride
dRegion
defining structured traversal. - Reverse
core
A helper struct for reverse ordering.- Rfc4648
- The
RFC 4648
standard encoding, used inBase16
,Base32
, andBase64
. - Rfc4648
Hex - The
RFC 4648
hexadecimal-variant encoding, used inBase32
. - RwLock
std
std
A reader-writer lock- RwLock
Read Guard std
std
RAII structure used to release the shared read access of a lock when dropped.- RwLock
Write Guard std
std
RAII structure used to release the exclusive write access of a lock when dropped.- Saturating
core
Provides intentionally-saturating arithmetic onT
.- Scope
Guard - A guard that executes a callback on drop, using an associated state.
- Sixel
alloc
andterm
and (io
orstd
) and (dep_hashbrown
orstd
) andimage
- A configurable sixel string builder from a slice of pixel data bytes.
- Sleep
Spin - Slice
- 🌐 Slice-related operations, most of them const.
- Socket
Addr V4 core
An IPv4 socket address.- Socket
Addr V6 core
An IPv6 socket address.- Sort
- 🌐
Provides sorting methods for arrays and slices of
T
, some of them const. - Stack
- 📦
A static stack backed by an
Array
. - Stack
Iter - 🔄
An iterator over
Stack
elements. - Stderr
std
std
A handle to the standard error stream of a process.- Stderr
Lock std
std
A locked reference to theStderr
handle.- Stdin
std
std
A handle to the standard input stream of a process.- Stdin
Lock std
std
A locked reference to theStdin
handle.- Stdout
std
std
A handle to the global standard output stream of the current process.- Stdout
Lock std
std
A locked reference to theStdout
handle.- Str
str
- 🌐 A string slice namespace.
- Stride
- A step size for traversing dimensions or repetitions.
- String
alloc
alloc
A UTF-8–encoded, growable string.- String
Nonul _str_nonul
- A UTF-8 string with up to
u8::MAX
bytes, excluding nul chars - String
U8 _str_u8
- A UTF-8–encoded string, backed by an array with
u8::MAX
bytes of capacity. - System
Alloc std
std
The default memory allocator provided by the operating system.- System
Instant std
std
A measurement of a monotonically nondecreasing clock.- System
Time std
std
A measurement of the system clock.- System
Time Error std
- 🚩
Returned from the
duration_since
andelapsed
methods onSystemTime
. - Task
Context core
The context of an asynchronous task.- Task
RawWaker core
Allows the implementor of a task executor to create aTaskWaker
.- Task
RawWakerV Table core
A virtual function pointer table that specifies the behavior of aTaskRawWaker
.- Task
Waker core
A handle for waking up a task by notifying its executor that it is ready to be run.- TcpIncoming
std
- 🔄
std
An iterator that infinitely accepts connections on aTcpListener
. - TcpListener
std
std
A TCP socket server, listening for connections.- TcpStream
std
std
A TCP stream between a local and a remote socket.- Thread
std
std
A handle to a thread.- Thread
Access Error std
- 🚩
std
An error returned byThreadLocalKey::try_with
. - Thread
Builder std
std
Thread factory, which can be used to configure the properties of a new thread.- Thread
Id std
std
A unique identifier for a running thread.- Thread
Join Handle std
std
An owned permission to join on a thread (block on its termination).- Thread
Local Key std
std
A thread local storage key which owns its contents.- Thread
Scope std
std
A scope to spawn scoped threads in.- Thread
Scoped Join Handle std
std
An owned permission to join on a scoped thread (block on its termination).- Time
Delta - A signed duration of time, stored as an
(i64, i32)
pair of seconds and nanoseconds. - Time
Split time
- A full time split from years to nanoseconds.
- Timecode
time
- Timecode splitting and formatting.
- Tp
- The Triangle of Power
- True
- A type-level logical true.
- TryFrom
IntError - 🚩
core
The error type returned when a checked integral type conversion fails. - Tuple
Fmt _tuple
- A formatting wrapper for
Tuple
s, implementingDisplay
andDebug
. - Tuple
Iter _tuple
- 🔄
An iterator over elements of a
Tuple
. - Tuple
Iter Mut _tuple
- 🔄
An iterator over exclusive references to elements of a
Tuple
. - Tuple
Iter Ref _tuple
- 🔄
An iterator over shared references to elements of a
Tuple
. - TypeId
core
Represents a globally unique identifier for a type.- Type
Resource - A newtype-based ID that associates a resource with its inner ID.
- UdpSocket
std
std
A UDP socket.- UiCap
- The capabilities supported by a
UiService
. - UiCap
Image - Image capabilities.
- UiCap
Input - Input capabilities.
- UiCap
Sound - Sound capabilities.
- UiCap
System alloc
- System capabilities.
- UiCap
Window - Window capabilities.
- Unix
Time I64 time
- 64-bit Unix time, supporting negative values.
- Unix
Time U32 time
- 32-bit Unix time, supporting only non-negative values.
- Unsafe
Cell core
The core primitive for interior mutability in Rust.- Value
Quant - ⚖️ A value with associated quantification.
- Vec
alloc
- 📦
alloc
A contiguous growable array. - VecDeque
alloc
- 📦
alloc
A double-ended growable queue. - VecPoints
geom
andalloc
- A dynamic sequence of
D
-dimensionalPoint
s. - VecVector
alloc
- A dynamic vector, backed by a primitive
Vec
. - Vector
- A static
D
-dimensional vector, backed by a primitivearray
. - Wait
Timeout Result std
- ⚖️
std
Whether a timed wait on a condition variable returned due to a time out or not. - Wavelet
Haar wave
- A Haar wavelet is a simple, piecewise-constant wavelet.
- Wavelet
Unit Vec alloc
andwave
- A single unit of the wavelet decomposition at a specific level and position.
- Wrapping
core
Provides intentionally-wrapped arithmetic onT
.- Xabc
rand
- X ABC PRNG for 8-bit devices.
- XorShift8
rand
- The
XorShift8
PRNG. - XorShift16
rand
- The
XorShift16
PRNG. - XorShift32
rand
- The
XorShift32
PRNG. - XorShift64
rand
- The
XorShift64
PRNG. - XorShift128
rand
- The
XorShift128
PRNG. - XorShift128p
- The
XorShift128+
PRNG. - Xoroshiro128pp
rand
- The
Xoroshiro128++
PRNG. - Xyza8a
rand
- A simple 8-bit PRNG with 32-bit of state, based on the XorShift algorithm.
- Xyza8b
rand
- A simple 8-bit PRNG with 32-bit of state, based on the XorShift algorithm.
- char7
_char7
- A 7-bit unicode scalar, limited to basic latin subset (ASCII).
- char8
_char8
- An 8-bit unicode scalar, limited to basic latin and latin-1 subsets.
- char16
_char16
- A 16-bit unicode scalar, limited to the Basic Multilingual Plane subset.
- g_bvec2
glsl
- Equivalent to GLSL
bvec2
, a vector of 2×g_bool
s. - g_bvec3
glsl
- Equivalent to GLSL
bvec3
, a vector of 3×g_bool
s. - g_bvec4
glsl
- Equivalent to GLSL
bvec4
, a vector of 4×g_bool
s. - g_dmat2
glsl
- Equivalent to GLSL
dmat2
, a column-major 2×2 matrix ofg_double
s. - g_dmat3
glsl
- Equivalent to GLSL
dmat3
, a column-major 3×3 matrix ofg_double
s. - g_dmat4
glsl
- Equivalent to GLSL
dmat4
, a column-major 4×4 matrix ofg_double
s. - g_dvec2
glsl
- Equivalent to GLSL
dvec2
, a vector of 2×g_double
s. - g_dvec3
glsl
- Equivalent to GLSL
dvec3
, a vector of 3×g_double
s. - g_dvec4
glsl
- Equivalent to GLSL
dvec4
, a vector of 4×g_double
s. - g_ivec2
glsl
- Equivalent to GLSL
ivec2
, a vector of 2×g_int
s. - g_ivec3
glsl
- Equivalent to GLSL
ivec3
, a vector of 3×g_int
s. - g_ivec4
glsl
- Equivalent to GLSL
ivec4
, a vector of 4×g_int
s. - g_mat2
glsl
- Equivalent to GLSL
mat2
, a column-major 2×2 matrix ofg_float
s. - g_mat3
glsl
- Equivalent to GLSL
mat3x3
, a column-major 3×3 matrix ofg_float
s. - g_mat4
glsl
- Equivalent to GLSL
mat4x4
, a column-major 4×4 matrix ofg_float
s. - g_
mat2x3 glsl
- Equivalent to GLSL
mat2x3
, a column-major 2×3 matrix ofg_float
s. - g_
mat2x4 glsl
- Equivalent to GLSL
mat2x4
, a column-major 2×4 matrix ofg_float
s. - g_
mat3x2 glsl
- Equivalent to GLSL
mat3x2
, a column-major 3×2 matrix ofg_float
s. - g_
mat3x4 glsl
- Equivalent to GLSL
mat3x4
, a column-major 3×4 matrix ofg_float
s. - g_
mat4x2 glsl
- Equivalent to GLSL
mat4x2
, a column-major 4×2 matrix ofg_float
s. - g_
mat4x3 glsl
- Equivalent to GLSL
mat4x3
, a column-major 4×3 matrix ofg_float
s. - g_uvec2
glsl
- Equivalent to GLSL
ivec2
, a vector of 2×g_uint
s. - g_uvec3
glsl
- Equivalent to GLSL
ivec3
, a vector of 3×g_uint
s. - g_uvec4
glsl
- Equivalent to GLSL
ivec4
, a vector of 4×g_uint
s. - g_vec2
glsl
- Equivalent to GLSL
vec2
, a vector of 2×g_float
s. - g_vec3
glsl
- Equivalent to GLSL
vec3
, a vector of 3×g_float
s. - g_vec4
glsl
- Equivalent to GLSL
vec4
, a vector of 4×g_float
s. - g_
vertex2 glsl
- A convenient 2D GLSL vertex representation with
g_float
s (position + UV). - g_
vertex3 glsl
- A convenient 3D GLSL vertex representation with
g_float
s (position + UV). - m128
dep_safe_arch
safe_arch
The data for a 128-bit SSE register of fourf32
lanes.- m256
dep_safe_arch
safe_arch
The data for a 256-bit AVX register of eightf32
lanes.- m128d
dep_safe_arch
safe_arch
The data for a 128-bit SSE register of twof64
values.- m128i
dep_safe_arch
safe_arch
The data for a 128-bit SSE register of integer data.- m256d
dep_safe_arch
safe_arch
The data for a 256-bit AVX register of fourf64
values.- m256i
dep_safe_arch
safe_arch
The data for a 256-bit AVX register of integer data.
Enums§
- AllError
error
- 🚩+ The root error type, aggregating all module-specific errors.
- AllError
Kind error
- 🚩+ The kind of root error type, aggregating all module-specific error kinds.
- Angle
Direction - The direction of rotation of an angle.
- Angle
Kind - The kind of [
Angle
], based on its normalized turn. - Ascii
Char ascii
- One of 128 Unicode characters (
U+0000
toU+007F
), the ASCII subset. - Atomic
Ordering - ⚛️
core
Atomic memory ordering. - Audio
Error audio
- 🚩+ An audio-related error.
- BTree
MapEntry alloc
alloc
An ordered map based on a B-Tree.- Backtrace
Status std
std
The current status of a backtrace.- Bound
core
An endpoint of a range of keys.- Color
Error color
- 🚩+ A color-related error.
- Compression
Mode - The type of compression applied to data.
- Control
Flow core
Used to tell an operation whether it should exit early or go on as usual.- Cow
alloc
alloc
A clone-on-write smart pointer.- Data
Error error
anddata··
- 🚩+ A data-related composite error.
- Data
NotEnough - 🚩+
An error composite of
NotEnoughElements
+NotEnoughSpace
. - Data
Type64 Copy With _value64
- 64-bit data type, restricted to
Copy
variants, with extraT
. - Data
Type64 With _value64
- 64-bit data type, with extra
T
. - Data
Value64 Copy With _value64
- 64-bit data value, restricted to
Copy
variants, with extraV
. - Data
Value64 With _value64
- 64-bit data value, with extra
V
. - Dither
alloc
andterm
and (io
orstd
) and (dep_hashbrown
orstd
) andimage
- Dithering methods of error diffusion.
- Draw
Error draw
- 🚩+ A drawing-related error.
- Encoding
Mode - The primary mode for data encoding.
- Float
Category core
A classification of floating point numbers.- FmtAlignment
core
Possible alignments returned byFormatter::align
.- Font
Error font
- 🚩+ A font-related error.
- Hash
MapEntry dep_hashbrown
orstd
- 📦
std?
A view into a single entry in a map, which may either be vacant or occupied. - Image
Error image
- 🚩+ An image-related error.
- Infallible
- 🚩
core
The error type for errors that can never happen. - Invalid
Text - 🚩+
An error composite of
InvalidChar
+InvalidUtf8
+MismatchedCapacity
. - IoError
Kind - 🚩+
?std
A list specifying general categories of I/O error. - IpAddr
core
An IP address, either IPv4 or IPv6.- JsEvent
js
- Web API Events
- JsPermission
js
- Web API permissions
- JsPermission
State js
- Permission query result state.
- Layout
Error layout
- 🚩+ A layout-related error.
- LogLevel
dep_log
log
An enum representing the available verbosity levels of the logger.- LogLevel
Filter dep_log
log
An enum representing the available verbosity level filters of the logger.- Media
Error media··
- 🚩+ A media-related error.
- Midi
Error midi
- 🚩+ A midi-related error.
- Mismatched
Bounds - 🚩+
An error composite of
DataOverflow
+IndexOutOfBounds
+MismatchedIndices
+MismatchedCapacity
. - Month
- The months of the year.
- NotAvailable
- 🚩+
An error composite of
NotImplemented
+NotSupported
. - NumError
- 🚩+ A numeric-related error.
- Ordering
core
The result of a comparison between two values.- Parse
IntError Kind - 🚩+
core
Kinds of errors that can cause parsing an integer to fail. - Partial
Space - 🚩+
An error composite of
NotEnoughSpace
+PartiallyAdded
. - Path
Component std
std
A single component of a path.- Path
Prefix std
std
Windows path prefixes, e.g.,C:
or\\server\share.
- Pixel
Format alloc
andterm
and (io
orstd
) and (dep_hashbrown
orstd
) andimage
- Pixel format type of input image.
- Result
- ⚖️
core
A type that represents either success (Ok
) or failure (Err
). - Sign
- Represents the sign of a number.
- Sixel
Error alloc
andterm
and (io
orstd
) and (dep_hashbrown
orstd
) andimage
- A sixel-related error.
- Sixel
Mean alloc
andterm
and (io
orstd
) and (dep_hashbrown
orstd
) andimage
- Method for selecting a representative color from a color space partition (box).
- Sixel
Quality alloc
andterm
and (io
orstd
) and (dep_hashbrown
orstd
) andimage
- Quality modes.
- Sixel
Split alloc
andterm
and (io
orstd
) and (dep_hashbrown
orstd
) andimage
- Method for finding the largest dimension for splitting, and sorting by that component.
- Socket
Addr core
An internet socket address, either IPv4 or IPv6.- Spin
Strategy - Static
MapEntry - Represents an entry in a static map allowing for in-place mutation or insertion.
- Task
Poll core
Indicates whether a value is ready or if the current task is still pending.- TcpShutdown
std
std
Possible values which can be passed to theTcpStream::shutdown
method.- Text
Error error
andtext··
- 🚩+ A text-related composite error.
- Time
Error error
andtime
- 🚩+ A text-related composite error.
- TryLock
Error std
- 🚩+
std
An enumeration of possible errors associated with aTryLockResult
. - Tuple
Element _tuple
- An element of a
Tuple
. - Tuple
Element Mut _tuple
- An exclusive reference to an element of a
Tuple
. - Tuple
Element Ref _tuple
- A shared reference to an element of a
Tuple
. - UiError
- A user-interface error.
- UnitBi
unit
- Binary unit prefixes.
- UnitSi
unit
- SI (metric) unit prefixes.
- VarError
std
- 🚩
std
Returned fromEnv::var
. - VecChunk
alloc
- 📦 A persistent data structure with efficient append and concatenation operations.
- Wavelet
Unit Role wave
- Distinguishes the role of a component in wavelet analysis.
- Weekday
- The days of the week.
- c_void
- ⚙️
core
Equivalent to the corresponding C type. - Coroutine
State Experimental nightly_coro
core
The result of a coroutine resumption.
Constants§
- FONT_
3_ 3 font
- A simple 3x3 bitmap font.
- FONT_
3_ 5 font
- A simple 3x5 bitmap font.
- FONT_
5_ 6 font
- A simple 5x6 bitmap font.
- UNIX_
EPOCH std
std
ASystemTime
anchored to “1970-01-01 00:00:00 UTC”.
Statics§
- LINUX_
TERMINAL_ STATE unsafe_syscall
andlinux
anddep_atomic
anddep_bytemuck
- State of the terminal saved globally, that can be restored from anywhere.
Traits§
- Add
core
The addition operator+
.- AddAssign
core
The addition assignment operator+=
.- Any
core
A trait to emulate dynamic typing.- AppEnv
std
- Manages directory paths in an environment-aware manner.
- AsMut
core
Used to do a cheap mutable-to-mutable reference conversion.- AsRef
core
Used to do a cheap reference-to-reference conversion.- Binary
core
b
formatting.- BitAnd
core
The bitwise AND operator&
.- BitAnd
Assign core
The bitwise AND assignment operator&=
.- BitOps
- Provides bitwise operations on
T
. - BitOr
core
The bitwise OR operator|
.- BitOr
Assign core
The bitwise OR assignment operator|=
.- BitSized
- Type size information in bits.
- BitXor
core
The bitwise XOR operator^
.- BitXor
Assign core
The bitwise XOR assignment operator^=
.- Borrow
core
A trait for borrowing data.- Borrow
Mut core
A trait for mutably borrowing data.- Byte
Sized - Type size information in bytes.
- Chain
- Allows chaining transformations by passing values through a sequence of functions.
- Clone
core
A common trait for the ability to explicitly duplicate an object.- Color
Base color
- Base trait for general color data representation.
- Const
Bool - Allows to convert compile-time constants into type-level booleans.
- Const
Default - A trait for giving a type a useful default value in compile-time.
- Const
Logic - MAYBE?
- Const
Trool - Allows to convert compile-time constants into type-level trooleans.
- Copy
core
Types whose values can be duplicated simply by copying bits.- Cycled
- Cyclic behavior.
- Data
Array - 📦 An abstract array data type.
- Data
Collection - 📦 An abstract collection data type.
- Data
Deque - 📦 An abstract double-ended queue data type.
- Data
Desta - 📦 An abstract double-ended stack data type.
- Data
Queue - 📦 An abstract queue data type.
- DataRaw
unsafe_layout
- Common unsafe trait for enumerating raw data values without type metadata.
- Data
RawCopy unsafe_layout
- Common unsafe trait for enumerating
Copy
-constrained raw data values without type metadata. - Data
Stack - 📦 An abstract stack data type.
- Data
Type - Common trait for enumerating data types.
- Data
Type Copy - Common trait for enumerating
Copy
-constrained data types. - Data
Value - Common trait for enumerating data values.
- Data
Value Copy - Common trait for enumerating
Copy
-constrained data values. - Debug
core
?
formatting.- Decodable
- A type that can be decoded from an I/O reader.
- Default
core
A trait for giving a type a useful default value.- Deref
core
Used for immutable dereferencing operations, like*v
.- Deref
Mut core
Used for mutable dereferencing operations, like in*v = 1;
.- Display
core
Format trait for an empty format,{}
.- Div
core
The division operator/
.- DivAssign
core
The division assignment operator/=
.- Drop
core
Custom code within the destructor.- DstBuf
unsafe_layout
- 📦 Represents the backing buffer for storing dynamically sized types.
- Encodable
- A type that can be encoded into an I/O writer.
- Encodable
Len - A type that can compute the size of its encoded form without actual encoding.
- Eq
core
Trait for comparisons corresponding to equivalence relations.- Error
core
A trait representing the basic expectations for error values.- ExtAny
- 🌐
Extension trait providing convenience methods for
T:
Any
. - ExtArray
- Extension trait providing convenience methods for
[T; N]
arrays. - ExtCell
Option - 🌐
Extension trait providing additional methods for
Cell<Option>
. - ExtError
- Extension trait providing additional methods for
T:
Error
. - ExtFloat
- 🌐 Extension trait for floating-point types. Associated methods.
- ExtFloat
Const - 🌐 Extension trait for floating-point types. Associated constants.
- ExtFuture
- Extension trait providing additional methods for
Future
s. - ExtLogger
dep_log
- 🌐
Extension trait providing additional methods for
Logger
s. - ExtMem
- 🌐 Extension trait for type memory information and manipulation.
- ExtNum
Const - Fundamental numeric constants for both integer and floating-point types.
- ExtOpt
Res - Extension trait providing additional methods for
OptRes
. - ExtOption
- Extension trait providing additional methods for
Option
. - ExtPath
std
- 🌐
Extension trait providing additional methods for
Path
andPathBuf
. - ExtProcess
- 🌐
Extension trait providing additional methods for
Process
es. - ExtResult
- Extension trait providing additional methods for
Result
. - ExtSlice
- 🌐
Extension trait providing additional methods for
&[T]
. - ExtSlice
Mut - 🌐
Extension trait providing additional methods for
&mut [T]
. - ExtStr
str
- Extension trait providing additional methods for
&str
. - ExtString
str
andalloc
- Extension trait providing additional methods for
String
. - ExtThread
- 🌐
Extension trait providing additional methods for
Thread
s. - ExtVec
alloc
- Extension trait providing additional methods for
Vec
. - FmtWrite
core
Writing or formatting into Unicode-accepting buffers or streams.- Fn
core
The version of the call operator that takes an immutable receiver.- FnMut
core
The version of the call operator that takes a mutable receiver.- FnOnce
core
The version of the call operator that takes a by-value receiver.- From
core
Used to do value-to-value conversions while consuming the input value.- FromStr
core
Parse a value from a string.- Future
core
An asynchronous computation obtained by use ofasync
.- Global
Alloc alloc
alloc
A memory allocator that can be registered as the standard library’s default.- Grapheme
- Common trait for EGC types.
- Hash
core
A hashable type.- Hasher
core
A trait for hashing an arbitrary stream of bytes.- Hasher
Build core
A trait for creating instances ofHasher
.- Hook
- Allows attaching operations or side effects to a value without breaking its flow.
- Index
core
Used for indexing operations (container[index]
) in immutable contexts.- Index
Mut core
Used for indexing operations (container[index]
) in mutable contexts.- Into
core
A value-to-value conversion that consumes the input value.- Into
Future core
Conversion into aFuture
.- IoBuf
Read ?std
A type ofRead
er which has an internal buffer.- IoRead
?std
Allows for reading bytes from a source.- IoSeek
?std
Provides a cursor which can be moved within a stream of bytes.- IoWrite
?std
A trait for objects which are byte-oriented sinks.- Iterator
- 🔄
core
A trait for dealing with iterators. - Iterator
Double Ended - 🔄
core
An iterator able to yield elements from both ends. - Iterator
Exact Size - 🔄
core
An iterator that knows its exact length. - Iterator
Extend - 🔄
core
Extend a collection with the contents of an iterator. - Iterator
From - 🔄
core
Conversion from anIterator
. - Iterator
Fused - 🔄
core
An iterator that always continues to yieldNone
when exhausted. - Iterator
Into - 🔄
core
Conversion into anIterator
. - Iterator
Multi Unzip dep_itertools
- 🔄
itertools
An iterator that can be unzipped into multiple collections. - Iterator
Peeking Next dep_itertools
- 🔄
itertools
An iterator that allows peeking at an element before deciding to accept it. - Iterator
Product - 🔄
core
Represents types that can be created by multiplying elements of an iterator. - Iterator
Sum - 🔄
core
Represents types that can be created by summing up an iterator. - Itertools
dep_itertools
- 🔄
itertools
AnIterator
blanket impl providing extra adaptors and methods. - Logger
dep_log
log
A trait encapsulating the operations required of a logger.- Lower
Exp core
e
formatting.- Lower
Hex core
x
formatting.- MemAligned
- Marker trait to verify memory alignment between two types.
- MemPod
unsafe_layout
- Indicates a type is Plain Old Data, and meets specific memory layout guarantees.
- Miniquad
Event Handler Ext dep_miniquad
- An extension trait for miniquad’s
MiniquadEventHandler
. - Mul
core
The multiplication operator*
.- MulAssign
core
The multiplication assignment operator*=
.- Neg
core
The unary negation operator-
.- Not
core
The unary logical negation operator!
.- Num
- Common trait for numeric types.
- NumInt
- Common trait for integer types.
- NumRef
- Common auto-trait for referenced numeric types.
- NumRef
Int - Common auto-trait for referenced integer types.
- NumTo
Str fmt
- Converts a number into a string representation, storing it into a byte slice.
- NumVector
- A common trait for all vectors.
- Octal
core
o
formatting.- Ord
core
Trait for types that form a total order.- Panic
RefUnwind Safe core
A marker trait which represents a shared reference considered unwind safe.- Panic
Unwind Safe core
A marker trait which represents “panic safe” types in Rust.- Partial
Eq core
Trait for comparisons using the equality operator.- Partial
Ord core
Trait for types that form a partial order.- Pointer
core
p
formatting.- Primitive
Cast cast
- Offers methods for casting between primitives.
- Primitive
Join join
- Offers methods to construct a primitive from an array or slice of smaller primitives.
- Primitive
Split split
- Offers methods to split a primitive into an array of smaller primitives.
- Process
Termination std
std
A trait for implementing arbitrary return types in themain
function.- Range
Bounds core
Implemented by Rust’s built-in range types- Rem
core
The remainder operator%
.- RemAssign
core
The remainder assignment operator%=
.- Send
core
Types that can be transferred across thread boundaries.- Sized
core
Types with a constant size known at compile time.- Storage
- Allows to be generic in respect of the data storage.
- Sub
core
The subtraction operator-
.- SubAssign
core
The subtraction assignment operator-=
.- Sync
core
Types for which it is safe to share references between threads.- Task
Wake alloc
- ⚛️
?alloc
The implementation of waking a task on an executor. - ToOwned
alloc
alloc
A generalization of Clone to borrowed data.- ToSocket
Addrs std
std
Objects which can be converted or resolved to one or moreSocketAddr
values.- ToString
alloc
alloc
A trait for converting a value to aString
.- TryFrom
core
Simple and safe type conversions that may fail in a controlled way.- TryInto
core
An attempted conversion that consumes self, which may or may not be expensive.- Tuple
_tuple
- 📦 Extension trait providing convenience methods for tuples.
- Type
Resourced - Represents an association between a resource and its inner data type.
- UiService
- Common trait for all UI services.
- Unicode
Scalar - Common trait for unicode scalar types.
- Unit
unit
- Common trait for unit prefixes.
- Unpin
core
Types that do not require any pinning guarantees.- Upper
Exp core
E
formatting.- Upper
Hex core
X
formatting.- Wavelet
Compression Vec alloc
andwave
- Trait for lossy compression of wavelet coefficients.
- Wavelet
Transform Vec alloc
andwave
- Trait defining essential wavelet transform operations.
- Coroutine
Experimental nightly_coro
core
The trait implemented by builtin coroutine types.
Functions§
- any_
type_ name core
Returns the name of a type as a string slice.- array_
from_ fn core
Creates an array[T; N]
, where eachT
is returned fromcb
from its index.- array_
from_ mut core
Converts a mutable reference toT
into&mut [T; 1]
(without copying).- array_
from_ ref core
Converts a reference toT
into&[T; 1]
(without copying).- assert_
unchecked ⚠ core
Makes a soundness promise to the compiler that thecond
ition holds.- atomic_
compiler_ fence - ⚛️
core
A compiler memory fence. - atomic_
fence - ⚛️
core
An atomic fence. - black_
box core
Hints the compiler to be maximally pessimistic about what black_box could do.- identity
core
The identity function. Just returns back its input.- is_
leap_ year time
- Returns
true
if the providedyear
is a leap year. - linux_
eprint unsafe_syscall
andlinux
- Prints a string slice to standard error.
- linux_
eprintln unsafe_syscall
andlinux
- Prints a string slice to standard error, with a newline.
- linux_
get_ byte unsafe_syscall
andlinux
- Gets a single byte from stdin.
- linux_
get_ char unsafe_syscall
andlinux
- Gets a single
char
from stdin, orNone
if the bytes are not valid utf-8. - linux_
get_ dirty_ char unsafe_syscall
andlinux
- Gets either a single
char
from stdin, or the replacement character. - linux_
get_ line unsafe_syscall
andlinux
- Gets a string from stdin backed by a
buffer
, until a newline. - linux_
get_ str unsafe_syscall
andlinux
- Gets a string from stdin backed by a
buffer
, until thestop
char is received. - linux_
get_ utf8_ bytes unsafe_syscall
andlinux
- Gets a utf-8 encoded byte sequence from stdin representing a
char
. - linux_
getpid unsafe_syscall
andlinux
- Returns the current process number.
- linux_
pause_ until_ char unsafe_syscall
andlinux
- Pauses execution until receiving from stdin any
char
in thelist
. - linux_
print unsafe_syscall
andlinux
- Prints a string slice to standard output.
- linux_
print_ bytes unsafe_syscall
andlinux
- Prints a byte slice to stdout.
- linux_
println unsafe_syscall
andlinux
- Prints a string slice to standard output, with a newline.
- linux_
prompt unsafe_syscall
andlinux
- Prompts the user for a string from stdin, backed by a
buffer
. - linux_
random_ bytes unsafe_syscall
andlinux
- Fills the given
buffer
with random bytes that may not be cryptographically secure. - linux_
random_ u8 unsafe_syscall
andlinux
- Generates a random
u8
value that may not be criptographically secure. - linux_
random_ u16 unsafe_syscall
andlinux
- Generates a random
u16
value that may not be criptographically secure. - linux_
random_ u32 unsafe_syscall
andlinux
- Generates a random
u32
value that may not be criptographically secure. - linux_
random_ u64 unsafe_syscall
andlinux
- Generates a random
u64
value that may not be criptographically secure. - linux_
random_ u128 unsafe_syscall
andlinux
- Generates a random
u128
value that may not be criptographically secure. - linux_
sig_ handler_ no_ return unsafe_syscall
andlinux
- Registers multiple signals using a handler function that never returns.
- linux_
sleep unsafe_syscall
andlinux
- Suspends execution of calling thread for
duration
. - linux_
sys_ ⚠exit unsafe_syscall
andlinux
- Performs an
exit
syscall. - linux_
sys_ ⚠getpid unsafe_syscall
andlinux
- Performs a
getpid
syscall. - linux_
sys_ ⚠getrandom unsafe_syscall
andlinux
- Performs a
getrandom
syscall. - linux_
sys_ ⚠ioctl unsafe_syscall
andlinux
- Performs an
ioctl
syscall. - linux_
sys_ ⚠nanosleep unsafe_syscall
andlinux
- Performs a
nanosleep
syscall. - linux_
sys_ ⚠read unsafe_syscall
andlinux
- Performs a
read
syscall. - linux_
sys_ ⚠rt_ sigaction unsafe_syscall
andlinux
- Performs an
rt_sigaction
syscall. - linux_
sys_ ⚠write unsafe_syscall
andlinux
- Performs a
write
syscall. - prime_
number_ theorem std
or_float_f64
- The prime number theorem formula.
- serr
- Wraps the given
OptRes
value
in aSome
(
Err
(error))
. - sok
- Wraps the given
OptRes
value
in aSome
(
Ok
(value))
. - spin_
loop core
Signals the processor that it is running in a busy-wait spin-loop.- transmute⚠
Deprecated core
Reinterprets the bits of a value of one type as another type.- unreachable_
unchecked ⚠ core
Informs the compiler that the current calling site is not reachable.- iter_
from_ coroutine Experimental nightly_coro
core
Creates an iterator where each iteration calls the provided coroutine.
Type Aliases§
- AllResult
error
- ⚖️ The root result type, aggregating all module-specific results.
- Audio
Result audio
- ⚖️ An audio-related result.
- Bare
core
A zero-sized marker for aStorage
type that wraps its data in aBareBox
.- Base16
Base16
standard encoding (hex), with linear search. Case-insensitive.- Base32
Base32
standard encoding, using LUT decoding. Case-sensitive.- Base64
Base64
standard encoding, using LUT decoding. Case-sensitive.- Base32
Crockford Base32
Crockford
encoding. Case-insensitive, remapsO → 0
,I/L → 1
.- Base32
Hex Base32Hex
uses RFC 4648 hex-encoding (0-9 A-V
instead ofA-Z 2-7
).- Base32
Padded Base32
encoding with padding (=
) enabled, using LUT decoding.- Base64
Padded Base64
encoding with padding (=
) enabled, using LUT decoding.- Color
Result color
- ⚖️ A color-related result.
- Data
Result error
anddata··
- ⚖️ A data-related result.
- Data
Type64 _value64
- 64-bit data type
- Data
Type64 Copy _value64
- 64-bit data type, restricted to
Copy
variants. - Data
Value64 _value64
- 64-bit data value.
- Data
Value64 Copy _value64
- 64-bit data value, restricted to
Copy
variants. - Destaque
U8 _destaque_u8
- 📦
A
Destaque
with an 8-bit index size. - Draw
Result draw
- ⚖️ A drawing-related result.
- DstArray
Usize unsafe_layout
- A statically allocated buffer for storing DSTs with pointer alignment.
- DstQueue
Usize unsafe_layout
- 📦 A statically allocated FIFO queue of DSTs with pointer alignment.
- DstStack
Usize unsafe_layout
- 📦 A statically allocated LIFO stack of DSTs with pointer alignment.
- DstValue
Usize unsafe_layout
- 📦 A statically allocated DST value with pointer alignment.
- DstVec
Usize unsafe_layout
andalloc
- A dynamically allocated buffer for storing DSTs with pointer alignment.
- Extent2d
- A 2-dimensional
Extent
. - Extent3d
- A 3-dimensional
Extent
. - FmtResult
- ⚖️ The type returned by formatter methods.
- Font
Result font
- ⚖️ A font-related result.
- Hash
MapFx hash
and (std
, ordep_hashbrown
andhash
) - A
HashMap
using a default Fx hasher. - Hash
MapStd std
- The
HashMap
in the standard library. - Hash
SetFx hash
and (std
, ordep_hashbrown
andhash
) - A
HashSet
using a default Fx hasher. - Hash
SetStd std
- The
HashSet
in the standard library. - Hasher
Build Fnv hash
andcast
- A builder for default Fnv hashers.
- Hasher
Build Fx - A builder for default Fx hashers.
- Image
Result image
- ⚖️ An image-related result.
- IoResult
- ⚖️
?std
A specializedResult
type for I/O operations. - LINUX_
SYS linux
- Linux
sys/syscall.h
constants for the current compilation target. - Layout
Result layout
- ⚖️ A layout-related result.
- Lock
Result std
- ⚖️
std
A type alias for the result of a lock method which can be poisoned. - Media
Result media··
- ⚖️ A media-related result.
- Midi
Result midi
- ⚖️ A midi-related result.
- NoData
- Represents the absence of some data.
- NoNum
- Represents the absence of a number.
- NoTime
time
- Represents the absence of time.
- NonExtreme
I8 - A signed integer that is known not to equal its most extreme value (
MIN
). - NonExtreme
U8 - An unsigned integer that is known not to equal its most extreme value (
MAX
). - NonExtreme
U16 - An unsigned integer that is known not to equal its most extreme value (
MAX
). - NonZero
I8 core
A signed integer that is known not to equal zero.- NonZero
I16 core
A signed integer that is known not to equal zero.- NonZero
I32 core
A signed integer that is known not to equal zero.- NonZero
I64 core
A signed integer that is known not to equal zero.- NonZero
I128 core
A signed integer that is known not to equal zero.- NonZero
Isize core
A signed integer that is known not to equal zero.- NonZero
U8 core
An unsigned integer that is known not to equal zero.- NonZero
U16 core
An unsigned integer that is known not to equal zero.- NonZero
U32 core
An unsigned integer that is known not to equal zero.- NonZero
U64 core
An unsigned integer that is known not to equal zero.- NonZero
U128 core
An unsigned integer that is known not to equal zero.- NonZero
Usize core
An unsigned integer that is known not to equal zero.- NumResult
- ⚖️ A numeric-related result.
- OptRes
- ⚖️ An optional result for simple ternary logic.
- Point2d
geom
- A specific position in 2d-space without a size.
- Point3d
geom
- A specific position in 3d-space without a size.
- Region2d
- A 2-dimensional
Region
. - Region3d
- A 3-dimensional
Region
. - StackU8
_stack_u8
- 📦
A
Stack
with an 8-bit index size. - Text
Result error
andtext··
- ⚖️ A text-related result.
- Thread
Result std
- ⚖️
std
A specializedResult
type for threads. - Time
Instant - A measurement of a monotonically nondecreasing clock.
- Time
Result error
andtime
- ⚖️ A text-related result.
- Time
Split Hour Nano time
- A time split from hours to nanoseconds.
- Time
Split Hour Nano Norm time
- A time split from hours to seconds, normalized (128b size & payload).
- Time
Split Hour Sec time
- A time split from hours to seconds.
- Time
Split Hour SecNorm time
- A time split from hours to seconds, normalized (128b size, 80b payload).
- Time
Split Milli Nano time
- A time split from milliseconds to nanoseconds.
- Time
Split Milli Nano Norm time
- A time split from milliseconds to nanoseconds, normalized (48b size & payload).
- Time
Split Norm time
- A time split from years to nanoseconds, normalized (192b size, 152b payload).
- Time
Split Year Day time
- A time split from years to days.
- Time
Split Year DayNorm time
- A time split from years to days, normalized (128b size, 80b payload).
- Time
Split Year Sec time
- A time split from years to seconds.
- Time
Split Year SecNorm time
- A time split from years to seconds, normalized (128b size, 104b payload).
- TryLock
Result std
- ⚖️
std
A type alias for the result of a nonblocking locking method. - UiResult
- ⚖️ A user-interface result.
- Vector2d
- A static 2-dimensional vector.
- Vector3d
- A static 3-dimensional vector.
- c_char
- ⚙️
core
Equivalent to the corresponding C type. - c_
double - ⚙️
core
Equivalent to the corresponding C type. - c_float
- ⚙️
core
Equivalent to the corresponding C type. - c_int
- ⚙️
core
Equivalent to the corresponding C type. - c_long
- ⚙️
core
Equivalent to the corresponding C type. - c_
longlong - ⚙️
core
Equivalent to the corresponding C type. - c_schar
- ⚙️
core
Equivalent to the corresponding C type. - c_short
- ⚙️
core
Equivalent to the corresponding C type. - c_uchar
- ⚙️
core
Equivalent to the corresponding C type. - c_uint
- ⚙️
core
Equivalent to the corresponding C type. - c_ulong
- ⚙️
core
Equivalent to the corresponding C type. - c_
ulonglong - ⚙️
core
Equivalent to the corresponding C type. - c_
ushort - ⚙️
core
Equivalent to the corresponding C type. - char
- ⚙️
core
A 32-bit unicode scalar. - fsize
- ⚙️ A pointer-sized floating-point primitive.
- g_bool
glsl
- ⚙️ A GLSL boolean.
- g_
double glsl
- ⚙️ A GLSL double-precision floating-point number.
- g_float
glsl
- ⚙️ A GLSL single-precision floating-point number.
- g_int
glsl
- ⚙️ A GLSL signed 32-bit integer.
- g_uint
glsl
- ⚙️ A GLSL unsigned 32-bit integer.
- isize_
down - ⚙️ A downcasted pointer-sized signed integer primitive.
- isize_
up - ⚙️ An upcasted pointer-sized signed integer primitive.
- usize_
down - ⚙️ A downcasted pointer-sized unsigned integer primitive.
- usize_
up - ⚙️ An upcasted pointer-sized unsigned integer primitive.
Unions§
- Data
Raw64 Copy _value64
andunsafe_layout
- 64-bit raw data, restricted to
Copy
variants. - Maybe
Uninit core
A wrapper type to construct uninitialized instances ofT
.
Attribute Macros§
- compile
devela_macros
Conditionally compiles the thing it is attached to based on the predicate.- compile_
attr devela_macros
Conditionally compiles the given attributes based on the predicate.- autodiff
Experimental nightly_autodiff
core
Automatic Differentiation macro.
Derive Macros§
- Clone
core
Derive macro generating an impl of the traitClone
.- Copy
core
Derive macro generating an impl of the traitCopy
.- Debug
core
?
formatting.- Default
core
Derive macro generating an impl of the traitDefault
.- Eq
core
Derive macro generating an impl of the traitEq
.- Hash
core
Derive macro generating an impl of the traitHash
.- Ord
core
Derive macro generating an impl of the traitOrd
. The behavior of this macro is described in detail here.- Partial
Eq core
Derive macro generating an impl of the traitPartialEq
. The behavior of this macro is described in detail here.- Partial
Ord core
Derive macro generating an impl of the traitPartialOrd
. The behavior of this macro is described in detail here.