Module all

Source
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.
_strdep_const_str
&str compile-time operations, namespaced from the const-str crate.
addr_of
core Create a const raw pointer to a place, without creating an intermediate reference.
addr_of_mut
core Create a mut raw pointer to a place, without creating an intermediate reference.
arch_cmpavx and dep_safe_arch
safe_arch Turns a comparison operator token to the correct constant value.
arch_roundavx and dep_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.
cdbgstd
customizable dbg! 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 a true of false 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.
debugdep_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_aarch64std and (AArch64 or target_arch="arm64ec")
std Tests at runtime whether an aarch64 feature is enabled.
detect_x86std and (x86 or x86-64)
std Tests at runtime whether an x86/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.
errordep_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.
formatalloc
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
inline if 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.
infodep_log
log Logs a message at the indicated level.
items
Groups items together and expands them as if they were written directly.
js_reexportjs and unsafe_ffi
Helps re-exporting javascript functions.
logdep_log
log Logs a message at the indicated level.
maybe
Helper for using optionally implemented traits, like Default or Clone.
miniquaddep_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 a Pin<&mut T>, by pinning a value: T locally.
sf
skip formatting wrapper macro.
size_of_expr
Returns the size of an expression in bytes.
sleep4std
A more compact Thread::sleep.
strdep_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 a TaskPoll<T>.
thread_localstd
std Declare a new thread local storage key of type ThreadLocalKey.
todo
core Indicates unfinished code.
tracedep_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 a Vec containing the arguments.
warndep_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_customrand
Constructs a XorShift prng with custom bits, basis, triplet and seed.

Structs§

AddrParseError
🚩 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.
AppApplestd
Apple enviroment for directories.
AppConfigstd
Application specific metadata.
AppUnixstd
Unix enviroment for directories.
AppWindowsstd
Windows enviroment for directories.
AppXdgstd
Xdg enviroment for directories.
Arcalloc
⚛️ ?alloc A thread-safe reference-counting pointer.
ArcWeakalloc
⚛️ ?alloc A version of Arc 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.
ArrayFmt
A formatting wrapper for core arrays, implementing Display and Debug.
ArrayIntoIter
🔄 core A by-value array iterator.
ArrayUninitunsafe_array
A static array allowing uninitialized elements.
Ascii
🌐 Provides ASCII operations on T, most of them const.
Atomicdep_atomic
⚛️ atomic A generic atomic wrapper type.
AtomicBool
⚛️ ?core A boolean type which can be safely shared between threads.
AtomicF32dep_portable_atomic
⚛️ portable-atomic A thread-safe floating-point type.
AtomicF64dep_portable_atomic
⚛️ portable-atomic A thread-safe floating-point type.
AtomicI8
⚛️ ?core A thread-safe signed integer type.
AtomicI16
⚛️ ?core A thread-safe signed integer type.
AtomicI32
⚛️ ?core A thread-safe signed integer type.
AtomicI64
⚛️ ?core A thread-safe signed integer type.
AtomicI128dep_portable_atomic
⚛️ portable-atomic A thread-safe signed integer type.
AtomicIsize
⚛️ ?core A thread-safe signed integer type.
AtomicPtr
⚛️ ?core A raw pointer type which can be safely shared between threads.
AtomicU8
⚛️ ?core A thread-safe unsigned integer type.
AtomicU16
⚛️ ?core A thread-safe unsigned integer type.
AtomicU32
⚛️ ?core A thread-safe unsigned integer type.
AtomicU64
⚛️ ?core A thread-safe unsigned integer type.
AtomicU128dep_portable_atomic
⚛️ portable-atomic A thread-safe unsigned integer type.
AtomicUsize
⚛️ ?core A thread-safe unsigned integer type.
BTreeMapalloc
📦 alloc An ordered map based on a B-Tree.
BTreeSetalloc
📦 alloc An ordered set based on a B-Tree.
Backtracestd
std A captured OS thread stack backtrace.
BareBox
A no-op pointer type, like a Box but without affecting how T is stored.
Barrierstd
std Enables multiple threads to synchronize the beginning of some computation.
BarrierWaitResultstd
⚖️ std Returned by Barrier::wait() when all threads in the Barrier have rendezvoused.
Base
A compile-time configurable radix-based encoding scheme.
BinaryHeapalloc
📦 alloc A priority queue implemented with a binary heap.
BitmapFontfont
A simple bitmap font for rendering fixed-size glyphs.
Bitwise_bit··
🌐 Provides constant bitwise operations on T.
Boxalloc
alloc A pointer type that uniquely owns a heap allocation of type T.
Boxedalloc
A zero-sized marker for a Storage type that wraps its data in a Box.
ByteSearch
🌐 A utility struct for searching bytes in slices.
CStr
core Representation of a borrowed C string (See CString).
CString
alloc An owned, C-compatible, nul-terminated string with no nul bytes in the middle.
CacheAlign
Aligns and pads a value to the length of a cache line.
Castprim··
🌐 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.
CodecFlags
Encodes and decodes a sequence of flags as a single byte.
CodecIf
Encodes and decodes conditionally.
CodecJoin
Encodes and decodes an iterator as a sequence with an optional separator.
CodecLe
Encodes and decodes a number in little-endian order.
CodecLen
A dummy writer that counts bytes instead of actually writing them.
CodecLenValue
Encodes and decodes a length prefixed value (TLV).
Colorcolor
🌐 Color namespaced constants and methods.
Compare
🌐 Provides comparing methods for T.
Condvarstd
std A Condition Variable
ConstList
📦 An immutable, append-only, linear, functional, non-contiguous, list.
ConstListIterator
🔄 Iterates over the contents of a ConstList.
Coro
Represents a single thread stackless coroutine.
CoroRunalloc
A managed dynamic collection of single-thread Coroutines.
CoroYield
A future that alternates between Ready and Pending status each time it’s polled.
Crockford
The Crockford Base32 encoding, case-insensitive, remaps certain characters.
CrosstermServicedep_crossterm
crossterm’s UI backend service.
Currentstd and unsafe_layout
A marker object representing the current instance of a type T.
CurrentGuardstd and unsafe_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.
CycleCount
A cycle that repeats a fixed number of times.
DataOverflow
🚩 The value has surpassed the bounds of the representable data space.
DebugList
core A struct to help with Debug implementations.
DebugMap
core A struct to help with Debug implementations.
DebugSet
core A struct to help with Debug implementations.
DebugStruct
core A struct to help with Debug implementations.
DebugTuple
core A struct to help with Debug implementations.
Destaque
📦 A static double-ended queue and stack backed by an Array.
DestaqueIter
🔄 An iterator over Destaque elements.
DirBuilderstd
std A builder used to create directories in various manners.
DirEntrystd
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.
DrumFrame8audio
A set of 8 drum instruments.
DstArrayunsafe_layout
📦 A static array for storing DSTs.
DstQueueunsafe_layout
📦 A statically allocated FIFO queue of DSTs.
DstQueueIterunsafe_layout
🔄 An iterator over the elements of a DstQueue.
DstQueueIterMutunsafe_layout
🔄 A mutable iterator over the elements of a DstQueue.
DstQueuePopHandleunsafe_layout
Handle returned by DstQueue::pop (does the actual pop on drop).
DstStackunsafe_layout
📦 A statically allocated LIFO stack of DSTs.
DstStackIterunsafe_layout
🔄 An iterator over the elements of a DstStack.
DstStackIterMutunsafe_layout
🔄 A mutable iterator over the elements of a DstStack.
DstValueunsafe_layout
📦 A statically allocated DST value.
Duration
core A span of time, with u64 seconds and u32 nanoseconds.
DurationErrorTryFromFloatSecs
🚩 core Error returned from converting floating-point seconds into a Duration.
ElementNotFound
🚩 The requested element has not been found.
Env
🌐 A namespaced wrapper for std::env functions and constants.
ExampleStaticMapU16
Extent
An orthogonal extension in D-space without a coordinate position.
FailedErrorConversion
🚩 A failed conversion between two error types.
False
A type-level logical false.
FatPtr
Represents a fat pointer with separate data and metadata pointers.
Filestd
std An object providing access to an open file on the filesystem.
FileMetadatastd
std Metadata information about a file.
FileOpenOptionsstd
std Options and flags which can be used to configure how a file is opened.
FilePermissionsstd
std Representation of the various permissions on a file.
FileTimesstd
std Representation of the various timestamps on a file.
FileTypestd
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.
Fsstd
🌐 Filesystem-related operations.
FsPathstd
🌐 A more featureful wrapper over PathBuf.
FuturePending
core A future which never resolves, representing a computation that never finishes.
FuturePollFn
core A Future that wraps a function returning TaskPoll.
FutureReady
core A future that is immediately ready with a value.
GcdReturn
⚖️ A return type for the calculated GCD and the Bézout coeficients.
GraphemeNonul
An EGC backed by a StringNonul.
GraphemeStringalloc
An EGC backed by a String.
GraphemeU8
An EGC backed by an StringU8.
HashMapdep_hashbrown or std
📦 std? An unordered hash map implemented with quadratic probing and SIMD lookup.
HashSetdep_hashbrown or std
std? An unordered hash set implemented as a HashMap where the value is ()
HasherBuildDefault
core Create a default HasherBuild instance for T:Hasher+Default types.
HasherFnvhash and cast
A Fowler–Noll–Vo hasher, implemented for u32, u64, u128 & usize.
HasherFx
A hashing algorithm used in the Rustc compiler, implemented for u32, u64 & usize.
HasherPengyhash
A fast 64-bit non-cryptographic hash algorithm.
IdPin
A unique identifier based on a pinned stack-allocated reference.
IdPinBox
A unique identifier based on a pinned heap-allocated memory address.
IndexOutOfBounds
🚩 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 and upper Bounds.
InvalidAxisLength
🚩 The given axis has an invalid length.
InvalidChar
🚩 An invalid given character was found.
InvalidUtf8
🚩 Invalid Utf-8 found while interpreting a byte sequence.
Iostd, or non-std and io
🌐 I/O-related operations.
IoBufReader
?std Adds buffering to any reader.
IoBufWriter
?std Wraps a writer and buffers its output.
IoBytes
?std An iterator over u8 values of a reader.
IoChain
?std Adapter to chain together two readers.
IoCursor
?std Wraps an in-memory buffer and provides it with an IoSeek implementation.
IoEmptystd
std Ignores any data written via IoWrite, and read via IoRead.
IoError
🚩+ ?std Error type for IoRead, IoWrite, IoSeek operations.
IoLineWriter
?std Like BufWriter, but flushing whenever a newline (0x0a, ' ') is detected.
IoLinesstd
std An iterator over the lines of an instance of IoBufRead.
IoRepeatstd
std A reader which yields one byte over and over and over and over and over and…
IoSinkstd
std A writer which will move data into the void.
IoSlicestd
std A buffer type used with IoWrite::write_vectored.
IoSliceMutstd
std A buffer type used with IoRead::read_vectored.
IoSplitstd
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.
Ipv4Addr
core An IPv4 address.
Ipv6Addr
core An IPv6 address.
Iter
🌐 🔄 Iterator-related namespaced operations.
IterArgsstd
🔄 std Iterates over the arguments of a process, yielding them as Strings.
IterArgsOsstd
🔄 std Iterates over the arguments of a process, yielding them as OsStrings.
IterChain
🔄 core An iterator that links two iterators together, in a chain.
IterChars
🔄 core An iterator over the chars of a string slice.
IterCloned
🔄 core An iterator that clones the elements of an underlying iterator.
IterCopied
🔄 core An iterator that copies the elements of an underlying iterator.
IterCycle
🔄 core An iterator that repeats endlessly.
IterDirReadstd
🔄 std Iterator over the entries in a directory.
IterEmpty
🔄 core An iterator that yields nothing.
IterEnumerate
🔄 core An iterator that yields the current count and the element during iteration.
IterFilter
🔄 core An iterator that filters the elements of iter with predicate.
IterFilterMap
🔄 core An iterator that uses f to both filter and map elements from iter.
IterFlatMap
🔄 core An iterator that maps each element to an iterator, and yields their elements.
IterFlatten
🔄 core An iterator that flattens one level of nesting in an iterator of iterables.
IterFromFn
🔄 core An iterator where each iteration calls a closure F: FnMut() -> Option<T>.
IterFuse
🔄 core An iterator that yields None forever after the underlying yields None once.
IterInspect
🔄 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 with f.
IterMapWhile
🔄 core An iterator that only accepts elements while predicate returns Some(_).
IterOnce
🔄 core An iterator that yields an element exactly once.
IterOnceWith
🔄 core An iterator that yields a single element A by calling F: FnOnce() -> A.
IterPathstd
🔄 std An iterator over the IterPathComponents of a Path, as OsStr slices.
IterPathAncestorsstd
🔄 std An iterator over Path and its ancestors.
IterPathComponentsstd
🔄 std An iterator over the Components of a Path.
IterPeekable
🔄 core An iterator with a peek() that returns an optional ref to the next element.
IterRepeat
🔄 core An iterator that repeats an element endlessly.
IterRepeatN
🔄 core An iterator that repeats an element an exact number of times.
IterRepeatWith
🔄 core An iterator that endlessly repeats A by calling F: FnMut() -> A.
IterRev
🔄 core A double-ended iterator with the direction inverted.
IterScan
🔄 core An iterator to maintain state while iterating another iterator.
IterSkip
🔄 core An iterator that skips over n elements of iter.
IterSkipWhile
🔄 core An iterator that rejects elements while predicate returns true.
IterSplitPathsstd
🔄 std An iterator that splits an environment variable into paths.
IterStepBy
🔄 core An iterator for stepping iterators by a custom amount.
IterSuccessors
🔄 core An iterator where each successive item is computed based on the preceding one.
IterTake
🔄 core An iterator that only iterates over the first n iterations of iter.
IterTakeWhile
🔄 core An iterator that only accepts elements while predicate returns true.
IterVarsstd
🔄 std An iterator over a snapshot of the environment variables of this process.
IterVarsOsstd
🔄 std An iterator over a snapshot of the environment variables of this process.
IterZip
🔄 core An iterator that iterates two other iterators simultaneously.
JoinPathsErrorstd
🚩 std Returned from Env::join_paths.
Jsjs
A Javascript namespace.
KeyAlreadyExists
🚩 The key already exists.
LINUX_ERRNOlinux
Linux sys/errno.h constants.
LINUX_FILENOlinux
Linux file descriptor constants.
LINUX_IOCTLlinux
Linux ioctl constants.
LINUX_SIGACTIONlinux
Linux flag constants for LinuxSigaction.
LINUX_SIGNALlinux
Linux standard signals constants.
LINUX_SYS_AARCH64linux
Linux sys/syscall.h constants for aarch64.
LINUX_SYS_ARMlinux
Linux sys/syscall.h constants for armv7.
LINUX_SYS_RISCVlinux
Linux sys/syscall.h constants for riscv.
LINUX_SYS_X86linux
Linux sys/syscall.h constants for x86.
LINUX_SYS_X86_64linux
Linux sys/syscall.h constants for x86_64.
LINUX_TERMIOS_CFLAGlinux
LinuxTermios control flags.
LINUX_TERMIOS_IFLAGlinux
LinuxTermios input flags.
LINUX_TERMIOS_LFLAGlinux
LinuxTermios local flags.
LINUX_TERMIOS_OFLAGlinux
LinuxTermios output flags.
LazyCell
core A value which is initialized on the first access.
LazyLockstd
std A value which is initialized on the first access.
Lgc16rand
A 16-bit LCG PRNG.
LinkedListalloc
📦 alloc A doubly-linked list with owned nodes.
LinuxSigactionlinux
Represents the sigaction structure from libc. Examine and change a signal action.
LinuxSigsetlinux
A set of signals.
LinuxTerminalunsafe_syscall and linux
Linux terminal manager.
LinuxTerminalSizelinux
The size of the terminal.
LinuxTermioslinux
Represents the termios structure from libc, used to control terminal I/O.
LinuxTimespeclinux
Represents the timespec structure from libc. Time in seconds and nanoseconds.
Logdep_log
🌐 Log-related operations.
LogConfigdep_log
Configuration for a logger.
LogMetadatadep_log
log Metadata about a log message.
LogRecorddep_log
log The “payload” of a log message.
LoggerSetErrordep_log
🚩 log Returned by set_logger if it has already been called.
ManuallyDrop
core A wrapper to inhibit compiler from automatically calling T’s destructor.
Matrix
A static R×C shaped matrix backed by an array.
Maybe
A type-level logical maybe.
Mem
🌐 Memory-related operations.
MemLayoutalloc
alloc Layout of a block of memory.
MemLayoutErroralloc
🚩 alloc The MemLayout parameters violated constraints.
MiniquadPixelsalloc and dep_miniquad
Draws a single fullscreen quad textured by a pixel buffer.
MiniquadServicedep_miniquad
miniquad’s UI Service.
MiniquadWindowdep_miniquad
A wrapper namespace over miniquad::window functions.
Mismatch
⚖️ Represents a mismatch between an expected need and an encountered have.
MismatchedCapacity
🚩 The given capacity did not match the required constraints.
MismatchedDimensions
🚩 The dimensions given did not match the elements provided.
MismatchedIndices
🚩 The given indices does not match the expected order.
Mutexstd
std A mutual exclusion primitive useful for protecting shared data.
MutexGuardstd
std An RAII implementation of a “scoped lock” of a mutex.
NodeEmpty
🚩 The node is empty.
NodeLinkNotSet
🚩 The link is not set.
NodeLinkNotUnique
🚩 The link is not unique.
NonValueI8
A signed integer that is known not to equal some specific value.
NonValueU8
An unsigned integer that is known not to equal some specific value.
NonValueU16
An unsigned integer that is known not to equal some specific value.
NonZero
core A value that is known not to equal zero.
NotEnoughElements
🚩 There are not enough elements for the operation.
NotEnoughSpace
🚩 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.
Oncestd
std A synchronization primitive for one-time global initialization.
OnceCell
core A cell which can nominally be written to only once.
OnceLockstd
std A synchronization primitive which can be written to only once.
OnceStatestd
std State yielded to Once::call_once_force()’s closure parameter.
OptionFmt
The type returned from ExtOption::fmt_or_empty.
OptionFmtOr
The type returned from ExtOption::fmt_or.
OptionFmtOrElse
The type returned from ExtOption::fmt_or_else.
Orientation
A unitless directional vector in D-dimensional space.
OsStrstd
std Borrowed reference to an OS string (See OsString).
OsStringstd
std A type for owned, mutable native strings, interconvertible with Rust strings.
Own
⚖️ A return type encapsulating an owned state S and a value V.
Panic
🌐 Panic-related operations.
PanicAssertUnwindSafe
core A simple wrapper around a type to assert that it is unwind safe.
PanicHookInfostd
std Passed to std::panic::set_hook in std, where panics can have arbitrary payloads.
PanicInfo
core Passed to #[panic_handler] in no_std, where panics always carry a formatted message.
PanicLocation
core A struct containing information about the location of a panic.
ParseFloatError
🚩 core An error which can be returned when parsing an float.
ParseIntError
🚩 core An error which can be returned when parsing an integer.
PartiallyAdded
🚩 The operation could only add a subset of the elements.
Pathstd
std A slice of a path (akin to str).
PathBufstd
std An owned, mutable path (akin to String).
PathDisplaystd
std Helper struct for safely printing paths with format! and {}.
PathPrefixComponentstd
std Wraps a Windows path prefix as well as its unparsed string representation.
PathStripPrefixErrorstd
🚩 std An error returned from Path::strip_prefix if the prefix was not found.
PhantomData
core Zero-sized type used to mark things that “act like” they own a T.
PhantomPinned
core A marker type which does not implement Unpin.
Pin
core A pointer which pins its pointee in place.
Pinnedunsafe_ptr
A wrapper for structurally pinned data.
Pnmimage
🌐 A collection of methods for encoding and decoding PNM bitmap formats.
Pointgeom
A coordinate position in D-space without extent.
Pointsgeom
A static sequence of N D-dimensional Points.
PoisonErrorstd
🚩 std A type of error which can be returned whenever a lock is acquired.
Position
A location in D-dimensional space.
Processstd
std Representation of a running or exited child process.
ProcessCommandstd
std A builder for configuring and spawning new processes.
ProcessCommandArgsstd
std An iterator over the command arguments.
ProcessCommandEnvsstd
std An iterator over the command environment variables.
ProcessExitCodestd
⚖️ std The status code the process returns to its parent on normal termination.
ProcessExitStatusstd
⚖️ std Describes the result of a process after it has terminated.
ProcessOutputstd
std The output of a finished process.
ProcessStderrstd
std A handle to a child process’s stderr.
ProcessStdinstd
std A handle to a child process’s standard input (stdin).
ProcessStdiostd
std Specifies how to handle standard I/O streams in ProcessCommand.
ProcessStdoutstd
std A handle to a child process’s standard output (stdout).
Ptr
🌐 Pointer-related operations.
PtrNonNull
core *mut T but non-zero and covariant.
RandomStatestd
std The default state for HashMapStd.
Range
core A range bounded inclusively below and exclusively above (start..end).
RangeFrom
core A range only bounded inclusively below (start..).
RangeFull
core An unbounded range (..).
RangeInclusive
core A range bounded inclusively below and above (start..=end).
RangeTo
core A range only bounded exclusively above (..end).
RangeToInclusive
core A range only bounded inclusively above (..=end).
Rcalloc
alloc A single-threaded reference-counting pointer.
RcWeakalloc
alloc A version of Rc that holds a non-owning reference to the managed allocation.
Ref
core A wrapper type for an inmutably borrowed value from a RefCell<T>
RefCell
core A mutable memory location with dynamically checked borrow rules.
RefCellBorrowError
🚩 core An error returned by RefCell::try_borrow.
RefCellBorrowMutError
🚩 core An error returned by RefCell::try_borrow_mut.
RefMut
core A wrapper type for a mutably borrowed value from a RefCell<T>
Region
A Positioned Extent.
RegionStrided
A Strided Region defining structured traversal.
Reverse
core A helper struct for reverse ordering.
Rfc4648
The RFC 4648 standard encoding, used in Base16, Base32, and Base64.
Rfc4648Hex
The RFC 4648 hexadecimal-variant encoding, used in Base32.
RwLockstd
std A reader-writer lock
RwLockReadGuardstd
std RAII structure used to release the shared read access of a lock when dropped.
RwLockWriteGuardstd
std RAII structure used to release the exclusive write access of a lock when dropped.
Saturating
core Provides intentionally-saturating arithmetic on T.
ScopeGuard
A guard that executes a callback on drop, using an associated state.
Sixelalloc and term and (io or std) and (dep_hashbrown or std) and image
A configurable sixel string builder from a slice of pixel data bytes.
SleepSpin
Slice
🌐 Slice-related operations, most of them const.
SocketAddrV4
core An IPv4 socket address.
SocketAddrV6
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.
StackIter
🔄 An iterator over Stack elements.
Stderrstd
std A handle to the standard error stream of a process.
StderrLockstd
std A locked reference to the Stderr handle.
Stdinstd
std A handle to the standard input stream of a process.
StdinLockstd
std A locked reference to the Stdin handle.
Stdoutstd
std A handle to the global standard output stream of the current process.
StdoutLockstd
std A locked reference to the Stdout handle.
Strstr
🌐 A string slice namespace.
Stride
A step size for traversing dimensions or repetitions.
Stringalloc
alloc A UTF-8–encoded, growable string.
StringNonul_str_nonul
A UTF-8 string with up to u8::MAX bytes, excluding nul chars
StringU8_str_u8
A UTF-8–encoded string, backed by an array with u8::MAX bytes of capacity.
SystemAllocstd
std The default memory allocator provided by the operating system.
SystemInstantstd
std A measurement of a monotonically nondecreasing clock.
SystemTimestd
std A measurement of the system clock.
SystemTimeErrorstd
🚩 Returned from the duration_since and elapsed methods on SystemTime.
TaskContext
core The context of an asynchronous task.
TaskRawWaker
core Allows the implementor of a task executor to create a TaskWaker.
TaskRawWakerVTable
core A virtual function pointer table that specifies the behavior of a TaskRawWaker.
TaskWaker
core A handle for waking up a task by notifying its executor that it is ready to be run.
TcpIncomingstd
🔄 std An iterator that infinitely accepts connections on a TcpListener.
TcpListenerstd
std A TCP socket server, listening for connections.
TcpStreamstd
std A TCP stream between a local and a remote socket.
Threadstd
std A handle to a thread.
ThreadAccessErrorstd
🚩 std An error returned by ThreadLocalKey::try_with.
ThreadBuilderstd
std Thread factory, which can be used to configure the properties of a new thread.
ThreadIdstd
std A unique identifier for a running thread.
ThreadJoinHandlestd
std An owned permission to join on a thread (block on its termination).
ThreadLocalKeystd
std A thread local storage key which owns its contents.
ThreadScopestd
std A scope to spawn scoped threads in.
ThreadScopedJoinHandlestd
std An owned permission to join on a scoped thread (block on its termination).
TimeDelta
A signed duration of time, stored as an (i64, i32) pair of seconds and nanoseconds.
TimeSplittime
A full time split from years to nanoseconds.
Timecodetime
Timecode splitting and formatting.
Tp
The Triangle of Power
True
A type-level logical true.
TryFromIntError
🚩 core The error type returned when a checked integral type conversion fails.
TupleFmt_tuple
A formatting wrapper for Tuples, implementing Display and Debug.
TupleIter_tuple
🔄 An iterator over elements of a Tuple.
TupleIterMut_tuple
🔄 An iterator over exclusive references to elements of a Tuple.
TupleIterRef_tuple
🔄 An iterator over shared references to elements of a Tuple.
TypeId
core Represents a globally unique identifier for a type.
TypeResource
A newtype-based ID that associates a resource with its inner ID.
UdpSocketstd
std A UDP socket.
UiCap
The capabilities supported by a UiService.
UiCapImage
Image capabilities.
UiCapInput
Input capabilities.
UiCapSound
Sound capabilities.
UiCapSystemalloc
System capabilities.
UiCapWindow
Window capabilities.
UnixTimeI64time
64-bit Unix time, supporting negative values.
UnixTimeU32time
32-bit Unix time, supporting only non-negative values.
UnsafeCell
core The core primitive for interior mutability in Rust.
ValueQuant
⚖️ A value with associated quantification.
Vecalloc
📦 alloc A contiguous growable array.
VecDequealloc
📦 alloc A double-ended growable queue.
VecPointsgeom and alloc
A dynamic sequence of D-dimensional Points.
VecVectoralloc
A dynamic vector, backed by a primitive Vec.
Vector
A static D-dimensional vector, backed by a primitive array.
WaitTimeoutResultstd
⚖️ std Whether a timed wait on a condition variable returned due to a time out or not.
WaveletHaarwave
A Haar wavelet is a simple, piecewise-constant wavelet.
WaveletUnitVecalloc and wave
A single unit of the wavelet decomposition at a specific level and position.
Wrapping
core Provides intentionally-wrapped arithmetic on T.
Xabcrand
X ABC PRNG for 8-bit devices.
XorShift8rand
The XorShift8 PRNG.
XorShift16rand
The XorShift16 PRNG.
XorShift32rand
The XorShift32 PRNG.
XorShift64rand
The XorShift64 PRNG.
XorShift128rand
The XorShift128 PRNG.
XorShift128p
The XorShift128+ PRNG.
Xoroshiro128pprand
The Xoroshiro128++ PRNG.
Xyza8arand
A simple 8-bit PRNG with 32-bit of state, based on the XorShift algorithm.
Xyza8brand
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_bvec2glsl
Equivalent to GLSL bvec2, a vector of 2×g_bools.
g_bvec3glsl
Equivalent to GLSL bvec3, a vector of 3×g_bools.
g_bvec4glsl
Equivalent to GLSL bvec4, a vector of 4×g_bools.
g_dmat2glsl
Equivalent to GLSL dmat2, a column-major 2×2 matrix of g_doubles.
g_dmat3glsl
Equivalent to GLSL dmat3, a column-major 3×3 matrix of g_doubles.
g_dmat4glsl
Equivalent to GLSL dmat4, a column-major 4×4 matrix of g_doubles.
g_dvec2glsl
Equivalent to GLSL dvec2, a vector of 2×g_doubles.
g_dvec3glsl
Equivalent to GLSL dvec3, a vector of 3×g_doubles.
g_dvec4glsl
Equivalent to GLSL dvec4, a vector of 4×g_doubles.
g_ivec2glsl
Equivalent to GLSL ivec2, a vector of 2×g_ints.
g_ivec3glsl
Equivalent to GLSL ivec3, a vector of 3×g_ints.
g_ivec4glsl
Equivalent to GLSL ivec4, a vector of 4×g_ints.
g_mat2glsl
Equivalent to GLSL mat2, a column-major 2×2 matrix of g_floats.
g_mat3glsl
Equivalent to GLSL mat3x3, a column-major 3×3 matrix of g_floats.
g_mat4glsl
Equivalent to GLSL mat4x4, a column-major 4×4 matrix of g_floats.
g_mat2x3glsl
Equivalent to GLSL mat2x3, a column-major 2×3 matrix of g_floats.
g_mat2x4glsl
Equivalent to GLSL mat2x4, a column-major 2×4 matrix of g_floats.
g_mat3x2glsl
Equivalent to GLSL mat3x2, a column-major 3×2 matrix of g_floats.
g_mat3x4glsl
Equivalent to GLSL mat3x4, a column-major 3×4 matrix of g_floats.
g_mat4x2glsl
Equivalent to GLSL mat4x2, a column-major 4×2 matrix of g_floats.
g_mat4x3glsl
Equivalent to GLSL mat4x3, a column-major 4×3 matrix of g_floats.
g_uvec2glsl
Equivalent to GLSL ivec2, a vector of 2×g_uints.
g_uvec3glsl
Equivalent to GLSL ivec3, a vector of 3×g_uints.
g_uvec4glsl
Equivalent to GLSL ivec4, a vector of 4×g_uints.
g_vec2glsl
Equivalent to GLSL vec2, a vector of 2×g_floats.
g_vec3glsl
Equivalent to GLSL vec3, a vector of 3×g_floats.
g_vec4glsl
Equivalent to GLSL vec4, a vector of 4×g_floats.
g_vertex2glsl
A convenient 2D GLSL vertex representation with g_floats (position + UV).
g_vertex3glsl
A convenient 3D GLSL vertex representation with g_floats (position + UV).
m128dep_safe_arch
safe_arch The data for a 128-bit SSE register of four f32 lanes.
m256dep_safe_arch
safe_arch The data for a 256-bit AVX register of eight f32 lanes.
m128ddep_safe_arch
safe_arch The data for a 128-bit SSE register of two f64 values.
m128idep_safe_arch
safe_arch The data for a 128-bit SSE register of integer data.
m256ddep_safe_arch
safe_arch The data for a 256-bit AVX register of four f64 values.
m256idep_safe_arch
safe_arch The data for a 256-bit AVX register of integer data.

Enums§

AllErrorerror
🚩+ The root error type, aggregating all module-specific errors.
AllErrorKinderror
🚩+ The kind of root error type, aggregating all module-specific error kinds.
AngleDirection
The direction of rotation of an angle.
AngleKind
The kind of [Angle], based on its normalized turn.
AsciiCharascii
One of 128 Unicode characters (U+0000 to U+007F), the ASCII subset.
AtomicOrdering
⚛️ core Atomic memory ordering.
AudioErroraudio
🚩+ An audio-related error.
BTreeMapEntryalloc
alloc An ordered map based on a B-Tree.
BacktraceStatusstd
std The current status of a backtrace.
Bound
core An endpoint of a range of keys.
ColorErrorcolor
🚩+ A color-related error.
CompressionMode
The type of compression applied to data.
ControlFlow
core Used to tell an operation whether it should exit early or go on as usual.
Cowalloc
alloc A clone-on-write smart pointer.
DataErrorerror and data··
🚩+ A data-related composite error.
DataNotEnough
🚩+ An error composite of NotEnoughElements + NotEnoughSpace.
DataType64CopyWith_value64
64-bit data type, restricted to Copy variants, with extra T.
DataType64With_value64
64-bit data type, with extra T.
DataValue64CopyWith_value64
64-bit data value, restricted to Copy variants, with extra V.
DataValue64With_value64
64-bit data value, with extra V.
Ditheralloc and term and (io or std) and (dep_hashbrown or std) and image
Dithering methods of error diffusion.
DrawErrordraw
🚩+ A drawing-related error.
EncodingMode
The primary mode for data encoding.
FloatCategory
core A classification of floating point numbers.
FmtAlignment
core Possible alignments returned by Formatter::align.
FontErrorfont
🚩+ A font-related error.
HashMapEntrydep_hashbrown or std
📦 std? A view into a single entry in a map, which may either be vacant or occupied.
ImageErrorimage
🚩+ An image-related error.
Infallible
🚩 core The error type for errors that can never happen.
InvalidText
🚩+ An error composite of InvalidChar + InvalidUtf8 + MismatchedCapacity.
IoErrorKind
🚩+ ?std A list specifying general categories of I/O error.
IpAddr
core An IP address, either IPv4 or IPv6.
JsEventjs
Web API Events
JsPermissionjs
Web API permissions
JsPermissionStatejs
Permission query result state.
LayoutErrorlayout
🚩+ A layout-related error.
LogLeveldep_log
log An enum representing the available verbosity levels of the logger.
LogLevelFilterdep_log
log An enum representing the available verbosity level filters of the logger.
MediaErrormedia··
🚩+ A media-related error.
MidiErrormidi
🚩+ A midi-related error.
MismatchedBounds
🚩+ 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.
ParseIntErrorKind
🚩+ core Kinds of errors that can cause parsing an integer to fail.
PartialSpace
🚩+ An error composite of NotEnoughSpace + PartiallyAdded.
PathComponentstd
std A single component of a path.
PathPrefixstd
std Windows path prefixes, e.g., C: or \\server\share.
PixelFormatalloc and term and (io or std) and (dep_hashbrown or std) and image
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.
SixelErroralloc and term and (io or std) and (dep_hashbrown or std) and image
A sixel-related error.
SixelMeanalloc and term and (io or std) and (dep_hashbrown or std) and image
Method for selecting a representative color from a color space partition (box).
SixelQualityalloc and term and (io or std) and (dep_hashbrown or std) and image
Quality modes.
SixelSplitalloc and term and (io or std) and (dep_hashbrown or std) and image
Method for finding the largest dimension for splitting, and sorting by that component.
SocketAddr
core An internet socket address, either IPv4 or IPv6.
SpinStrategy
StaticMapEntry
Represents an entry in a static map allowing for in-place mutation or insertion.
TaskPoll
core Indicates whether a value is ready or if the current task is still pending.
TcpShutdownstd
std Possible values which can be passed to the TcpStream::shutdown method.
TextErrorerror and text··
🚩+ A text-related composite error.
TimeErrorerror and time
🚩+ A text-related composite error.
TryLockErrorstd
🚩+ std An enumeration of possible errors associated with a TryLockResult.
TupleElement_tuple
An element of a Tuple.
TupleElementMut_tuple
An exclusive reference to an element of a Tuple.
TupleElementRef_tuple
A shared reference to an element of a Tuple.
UiError
A user-interface error.
UnitBiunit
Binary unit prefixes.
UnitSiunit
SI (metric) unit prefixes.
VarErrorstd
🚩 std Returned from Env::var.
VecChunkalloc
📦 A persistent data structure with efficient append and concatenation operations.
WaveletUnitRolewave
Distinguishes the role of a component in wavelet analysis.
Weekday
The days of the week.
c_void
⚙️ core Equivalent to the corresponding C type.
CoroutineStateExperimentalnightly_coro
core The result of a coroutine resumption.

Constants§

FONT_3_3font
A simple 3x3 bitmap font.
FONT_3_5font
A simple 3x5 bitmap font.
FONT_5_6font
A simple 5x6 bitmap font.
UNIX_EPOCHstd
std A SystemTime anchored to “1970-01-01 00:00:00 UTC”.

Statics§

LINUX_TERMINAL_STATEunsafe_syscall and linux and dep_atomic and dep_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.
AppEnvstd
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 &.
BitAndAssign
core The bitwise AND assignment operator &=.
BitOps
Provides bitwise operations on T.
BitOr
core The bitwise OR operator |.
BitOrAssign
core The bitwise OR assignment operator |=.
BitSized
Type size information in bits.
BitXor
core The bitwise XOR operator ^.
BitXorAssign
core The bitwise XOR assignment operator ^=.
Borrow
core A trait for borrowing data.
BorrowMut
core A trait for mutably borrowing data.
ByteSized
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.
ColorBasecolor
Base trait for general color data representation.
ConstBool
Allows to convert compile-time constants into type-level booleans.
ConstDefault
A trait for giving a type a useful default value in compile-time.
ConstLogic
MAYBE?
ConstTrool
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.
DataArray
📦 An abstract array data type.
DataCollection
📦 An abstract collection data type.
DataDeque
📦 An abstract double-ended queue data type.
DataDesta
📦 An abstract double-ended stack data type.
DataQueue
📦 An abstract queue data type.
DataRawunsafe_layout
Common unsafe trait for enumerating raw data values without type metadata.
DataRawCopyunsafe_layout
Common unsafe trait for enumerating Copy-constrained raw data values without type metadata.
DataStack
📦 An abstract stack data type.
DataType
Common trait for enumerating data types.
DataTypeCopy
Common trait for enumerating Copy-constrained data types.
DataValue
Common trait for enumerating data values.
DataValueCopy
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.
DerefMut
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.
DstBufunsafe_layout
📦 Represents the backing buffer for storing dynamically sized types.
Encodable
A type that can be encoded into an I/O writer.
EncodableLen
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.
ExtCellOption
🌐 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.
ExtFloatConst
🌐 Extension trait for floating-point types. Associated constants.
ExtFuture
Extension trait providing additional methods for Futures.
ExtLoggerdep_log
🌐 Extension trait providing additional methods for Loggers.
ExtMem
🌐 Extension trait for type memory information and manipulation.
ExtNumConst
Fundamental numeric constants for both integer and floating-point types.
ExtOptRes
Extension trait providing additional methods for OptRes.
ExtOption
Extension trait providing additional methods for Option.
ExtPathstd
🌐 Extension trait providing additional methods for Path and PathBuf.
ExtProcess
🌐 Extension trait providing additional methods for Processes.
ExtResult
Extension trait providing additional methods for Result.
ExtSlice
🌐 Extension trait providing additional methods for &[T].
ExtSliceMut
🌐 Extension trait providing additional methods for &mut [T].
ExtStrstr
Extension trait providing additional methods for &str.
ExtStringstr and alloc
Extension trait providing additional methods for String.
ExtThread
🌐 Extension trait providing additional methods for Threads.
ExtVecalloc
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 of async.
GlobalAllocalloc
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.
HasherBuild
core A trait for creating instances of Hasher.
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.
IndexMut
core Used for indexing operations (container[index]) in mutable contexts.
Into
core A value-to-value conversion that consumes the input value.
IntoFuture
core Conversion into a Future.
IoBufRead
?std A type of Reader 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.
IteratorDoubleEnded
🔄 core An iterator able to yield elements from both ends.
IteratorExactSize
🔄 core An iterator that knows its exact length.
IteratorExtend
🔄 core Extend a collection with the contents of an iterator.
IteratorFrom
🔄 core Conversion from an Iterator.
IteratorFused
🔄 core An iterator that always continues to yield None when exhausted.
IteratorInto
🔄 core Conversion into an Iterator.
IteratorMultiUnzipdep_itertools
🔄 itertools An iterator that can be unzipped into multiple collections.
IteratorPeekingNextdep_itertools
🔄 itertools An iterator that allows peeking at an element before deciding to accept it.
IteratorProduct
🔄 core Represents types that can be created by multiplying elements of an iterator.
IteratorSum
🔄 core Represents types that can be created by summing up an iterator.
Itertoolsdep_itertools
🔄 itertools An Iterator blanket impl providing extra adaptors and methods.
Loggerdep_log
log A trait encapsulating the operations required of a logger.
LowerExp
core e formatting.
LowerHex
core x formatting.
MemAligned
Marker trait to verify memory alignment between two types.
MemPodunsafe_layout
Indicates a type is Plain Old Data, and meets specific memory layout guarantees.
MiniquadEventHandlerExtdep_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.
NumRefInt
Common auto-trait for referenced integer types.
NumToStrfmt
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.
PanicRefUnwindSafe
core A marker trait which represents a shared reference considered unwind safe.
PanicUnwindSafe
core A marker trait which represents “panic safe” types in Rust.
PartialEq
core Trait for comparisons using the equality operator.
PartialOrd
core Trait for types that form a partial order.
Pointer
core p formatting.
PrimitiveCastcast
Offers methods for casting between primitives.
PrimitiveJoinjoin
Offers methods to construct a primitive from an array or slice of smaller primitives.
PrimitiveSplitsplit
Offers methods to split a primitive into an array of smaller primitives.
ProcessTerminationstd
std A trait for implementing arbitrary return types in the main function.
RangeBounds
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.
TaskWakealloc
⚛️ ?alloc The implementation of waking a task on an executor.
ToOwnedalloc
alloc A generalization of Clone to borrowed data.
ToSocketAddrsstd
std Objects which can be converted or resolved to one or more SocketAddr values.
ToStringalloc
alloc A trait for converting a value to a String.
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.
TypeResourced
Represents an association between a resource and its inner data type.
UiService
Common trait for all UI services.
UnicodeScalar
Common trait for unicode scalar types.
Unitunit
Common trait for unit prefixes.
Unpin
core Types that do not require any pinning guarantees.
UpperExp
core E formatting.
UpperHex
core X formatting.
WaveletCompressionVecalloc and wave
Trait for lossy compression of wavelet coefficients.
WaveletTransformVecalloc and wave
Trait defining essential wavelet transform operations.
CoroutineExperimentalnightly_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 each T is returned from cb from its index.
array_from_mut
core Converts a mutable reference to T into &mut [T; 1] (without copying).
array_from_ref
core Converts a reference to T into &[T; 1] (without copying).
assert_unchecked
core Makes a soundness promise to the compiler that the condition 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_yeartime
Returns true if the provided year is a leap year.
linux_eprintunsafe_syscall and linux
Prints a string slice to standard error.
linux_eprintlnunsafe_syscall and linux
Prints a string slice to standard error, with a newline.
linux_get_byteunsafe_syscall and linux
Gets a single byte from stdin.
linux_get_charunsafe_syscall and linux
Gets a single char from stdin, or None if the bytes are not valid utf-8.
linux_get_dirty_charunsafe_syscall and linux
Gets either a single char from stdin, or the replacement character.
linux_get_lineunsafe_syscall and linux
Gets a string from stdin backed by a buffer, until a newline.
linux_get_strunsafe_syscall and linux
Gets a string from stdin backed by a buffer, until the stop char is received.
linux_get_utf8_bytesunsafe_syscall and linux
Gets a utf-8 encoded byte sequence from stdin representing a char.
linux_getpidunsafe_syscall and linux
Returns the current process number.
linux_pause_until_charunsafe_syscall and linux
Pauses execution until receiving from stdin any char in the list.
linux_printunsafe_syscall and linux
Prints a string slice to standard output.
linux_print_bytesunsafe_syscall and linux
Prints a byte slice to stdout.
linux_printlnunsafe_syscall and linux
Prints a string slice to standard output, with a newline.
linux_promptunsafe_syscall and linux
Prompts the user for a string from stdin, backed by a buffer.
linux_random_bytesunsafe_syscall and linux
Fills the given buffer with random bytes that may not be cryptographically secure.
linux_random_u8unsafe_syscall and linux
Generates a random u8 value that may not be criptographically secure.
linux_random_u16unsafe_syscall and linux
Generates a random u16 value that may not be criptographically secure.
linux_random_u32unsafe_syscall and linux
Generates a random u32 value that may not be criptographically secure.
linux_random_u64unsafe_syscall and linux
Generates a random u64 value that may not be criptographically secure.
linux_random_u128unsafe_syscall and linux
Generates a random u128 value that may not be criptographically secure.
linux_sig_handler_no_returnunsafe_syscall and linux
Registers multiple signals using a handler function that never returns.
linux_sleepunsafe_syscall and linux
Suspends execution of calling thread for duration.
linux_sys_exitunsafe_syscall and linux
Performs an exit syscall.
linux_sys_getpidunsafe_syscall and linux
Performs a getpid syscall.
linux_sys_getrandomunsafe_syscall and linux
Performs a getrandom syscall.
linux_sys_ioctlunsafe_syscall and linux
Performs an ioctl syscall.
linux_sys_nanosleepunsafe_syscall and linux
Performs a nanosleep syscall.
linux_sys_readunsafe_syscall and linux
Performs a read syscall.
linux_sys_rt_sigactionunsafe_syscall and linux
Performs an rt_sigaction syscall.
linux_sys_writeunsafe_syscall and linux
Performs a write syscall.
prime_number_theoremstd or _float_f64
The prime number theorem formula.
serr
Wraps the given OptRes value in a Some(Err(error)).
sok
Wraps the given OptRes value in a Some(Ok(value)).
spin_loop
core Signals the processor that it is running in a busy-wait spin-loop.
transmuteDeprecated
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_coroutineExperimentalnightly_coro
core Creates an iterator where each iteration calls the provided coroutine.

Type Aliases§

AllResulterror
⚖️ The root result type, aggregating all module-specific results.
AudioResultaudio
⚖️ An audio-related result.
Bare
core A zero-sized marker for a Storage type that wraps its data in a BareBox.
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.
Base32Crockford
Base32 Crockford encoding. Case-insensitive, remaps O → 0, I/L → 1.
Base32Hex
Base32Hex uses RFC 4648 hex-encoding (0-9 A-V instead of A-Z 2-7).
Base32Padded
Base32 encoding with padding (=) enabled, using LUT decoding.
Base64Padded
Base64 encoding with padding (=) enabled, using LUT decoding.
ColorResultcolor
⚖️ A color-related result.
DataResulterror and data··
⚖️ A data-related result.
DataType64_value64
64-bit data type
DataType64Copy_value64
64-bit data type, restricted to Copy variants.
DataValue64_value64
64-bit data value.
DataValue64Copy_value64
64-bit data value, restricted to Copy variants.
DestaqueU8_destaque_u8
📦 A Destaque with an 8-bit index size.
DrawResultdraw
⚖️ A drawing-related result.
DstArrayUsizeunsafe_layout
A statically allocated buffer for storing DSTs with pointer alignment.
DstQueueUsizeunsafe_layout
📦 A statically allocated FIFO queue of DSTs with pointer alignment.
DstStackUsizeunsafe_layout
📦 A statically allocated LIFO stack of DSTs with pointer alignment.
DstValueUsizeunsafe_layout
📦 A statically allocated DST value with pointer alignment.
DstVecUsizeunsafe_layout and alloc
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.
FontResultfont
⚖️ A font-related result.
HashMapFxhash and (std, or dep_hashbrown and hash)
A HashMap using a default Fx hasher.
HashMapStdstd
The HashMap in the standard library.
HashSetFxhash and (std, or dep_hashbrown and hash)
A HashSet using a default Fx hasher.
HashSetStdstd
The HashSet in the standard library.
HasherBuildFnvhash and cast
A builder for default Fnv hashers.
HasherBuildFx
A builder for default Fx hashers.
ImageResultimage
⚖️ An image-related result.
IoResult
⚖️ ?std A specialized Result type for I/O operations.
LINUX_SYSlinux
Linux sys/syscall.h constants for the current compilation target.
LayoutResultlayout
⚖️ A layout-related result.
LockResultstd
⚖️ std A type alias for the result of a lock method which can be poisoned.
MediaResultmedia··
⚖️ A media-related result.
MidiResultmidi
⚖️ A midi-related result.
NoData
Represents the absence of some data.
NoNum
Represents the absence of a number.
NoTimetime
Represents the absence of time.
NonExtremeI8
A signed integer that is known not to equal its most extreme value (MIN).
NonExtremeU8
An unsigned integer that is known not to equal its most extreme value (MAX).
NonExtremeU16
An unsigned integer that is known not to equal its most extreme value (MAX).
NonZeroI8
core A signed integer that is known not to equal zero.
NonZeroI16
core A signed integer that is known not to equal zero.
NonZeroI32
core A signed integer that is known not to equal zero.
NonZeroI64
core A signed integer that is known not to equal zero.
NonZeroI128
core A signed integer that is known not to equal zero.
NonZeroIsize
core A signed integer that is known not to equal zero.
NonZeroU8
core An unsigned integer that is known not to equal zero.
NonZeroU16
core An unsigned integer that is known not to equal zero.
NonZeroU32
core An unsigned integer that is known not to equal zero.
NonZeroU64
core An unsigned integer that is known not to equal zero.
NonZeroU128
core An unsigned integer that is known not to equal zero.
NonZeroUsize
core An unsigned integer that is known not to equal zero.
NumResult
⚖️ A numeric-related result.
OptRes
⚖️ An optional result for simple ternary logic.
Point2dgeom
A specific position in 2d-space without a size.
Point3dgeom
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.
TextResulterror and text··
⚖️ A text-related result.
ThreadResultstd
⚖️ std A specialized Result type for threads.
TimeInstant
A measurement of a monotonically nondecreasing clock.
TimeResulterror and time
⚖️ A text-related result.
TimeSplitHourNanotime
A time split from hours to nanoseconds.
TimeSplitHourNanoNormtime
A time split from hours to seconds, normalized (128b size & payload).
TimeSplitHourSectime
A time split from hours to seconds.
TimeSplitHourSecNormtime
A time split from hours to seconds, normalized (128b size, 80b payload).
TimeSplitMilliNanotime
A time split from milliseconds to nanoseconds.
TimeSplitMilliNanoNormtime
A time split from milliseconds to nanoseconds, normalized (48b size & payload).
TimeSplitNormtime
A time split from years to nanoseconds, normalized (192b size, 152b payload).
TimeSplitYearDaytime
A time split from years to days.
TimeSplitYearDayNormtime
A time split from years to days, normalized (128b size, 80b payload).
TimeSplitYearSectime
A time split from years to seconds.
TimeSplitYearSecNormtime
A time split from years to seconds, normalized (128b size, 104b payload).
TryLockResultstd
⚖️ 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_boolglsl
⚙️ A GLSL boolean.
g_doubleglsl
⚙️ A GLSL double-precision floating-point number.
g_floatglsl
⚙️ A GLSL single-precision floating-point number.
g_intglsl
⚙️ A GLSL signed 32-bit integer.
g_uintglsl
⚙️ 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§

DataRaw64Copy_value64 and unsafe_layout
64-bit raw data, restricted to Copy variants.
MaybeUninit
core A wrapper type to construct uninitialized instances of T.

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.
autodiffExperimentalnightly_autodiff
core Automatic Differentiation macro.

Derive Macros§

Clone
core Derive macro generating an impl of the trait Clone.
Copy
core Derive macro generating an impl of the trait Copy.
Debug
core ? formatting.
Default
core Derive macro generating an impl of the trait Default.
Eq
core Derive macro generating an impl of the trait Eq.
Hash
core Derive macro generating an impl of the trait Hash.
Ord
core Derive macro generating an impl of the trait Ord. The behavior of this macro is described in detail here.
PartialEq
core Derive macro generating an impl of the trait PartialEq. The behavior of this macro is described in detail here.
PartialOrd
core Derive macro generating an impl of the trait PartialOrd. The behavior of this macro is described in detail here.