# rust.help > Interactive visual Rust tutorials, rustc-verified `no_std` systems guides, PathScale EKOPathRS CPU compiler documentation, ENZO direct-to-hardware GPGPU/accelerator documentation, and safe systems language subset guides (`sc++`, `Ro`, `Rython`, `Rortran`). `rust.help` is a client-rendered SolidJS single-page application. AI agents, crawlers, and CLI tools that do not execute JavaScript should fetch the structured JSON payloads below directly instead of scraping HTML routes. - Full single-file compiler & language reference: https://rust.help/llms-full.txt - Sitemap: https://rust.help/sitemap.xml ## Machine-Readable JSON Indexes - [Tutorials Catalog Index (90 visual Rust lessons)](https://rust.help/data/tutorials-index.json): Metadata for every interactive lesson; fetch individual payloads at `https://rust.help/data/tutorials/.json`. - [no_std Guides Index (182 rustc-verified Rust articles)](https://rust.help/data/guides-index.json): Metadata, tags, and summaries for every `no_std` systems guide; fetch individual articles at `https://rust.help/data/guides/.json`. ## Compilers & Safe Language Subsets (Structured JSON + Web Routes) - [EKOPathRS (PURE-RUST CPU COMPILER)](https://rust.help/data/specs/ekopathrs.json): A pure-Rust resident CPU compiler server (`ekod`) and instant socket client (`ekors`): zero LLVM, millisecond function-level rebuilds, native ARM64 and x86-64 SIMD/matrix codegen, and plain-English loop reports. (Web UI: https://rust.help/ekopathrs) - [ENZO GPGPU (DIRECT-TO-HARDWARE GPGPU & AI ACCELERATORS)](https://rust.help/data/specs/enzo.json): Add attributes to plain loops and compile straight to native GPU and AI accelerator machine code (NVIDIA SASS, Apple Native GPU, AMD CDNA, Intel Gaudi, AWS Trainium2) with zero bytecode and zero middleware. (Web UI: https://rust.help/enzo) - [sc++ (STRICT ISO C++23)](https://rust.help/data/specs/scpp.json): Rust `no_std` safety on ARM64 and x86-64 plus direct-to-hardware `[[enzo::kernel]]` GPU/accelerator codegen (`NVIDIA SASS`, `Apple9` AGX, `AMD CDNA`, `Gaudi`) inside valid ISO C++23. (Web UI: https://rust.help/scpp) - [Ro (ZERO-GC GO 1.22)](https://rust.help/data/specs/ro.json): Write clean Go 1.22 syntax and compile straight to zero-GC `no_std` ARM64/x86-64 code and direct-to-hardware `//enzo:` accelerators (`NVIDIA SASS`, Apple Native GPU, `AMD CDNA`, `Gaudi`). (Web UI: https://rust.help/ro) - [Rython (NATIVE NO_STD PYTHON 3.12)](https://rust.help/data/specs/rython.json): Write strict Python 3.12 and compile straight to zero-GC, zero-GIL ARM64/x86-64 code and direct-to-hardware `@enzo.kernel` accelerators (`NVIDIA SASS`, Apple Native GPU, `AMD CDNA`, `Gaudi`). (Web UI: https://rust.help/rython) - [Rortran (SAFE FORTRAN 2018)](https://rust.help/data/specs/rortran.json): Free-form Fortran 2018 with compile-time `intent` alias proofs on ARM64/x86-64 and direct-to-hardware `!$enzo` accelerators (`NVIDIA SASS`, Apple Native GPU, `AMD CDNA`, `Gaudi`). (Web UI: https://rust.help/rortran) ## Verified no_std Rust Systems Guides (182) - [Reading and Writing Unaligned or Packed Fields via addr_of_mut](https://rust.help/data/guides/addr-of-mut-packed-and-unaligned-fields.json): [Memory & Ownership | Intermediate] Access packed fields through raw pointers and unaligned operations without creating misaligned references. - [DTLS / WireGuard-Style 64-Bit Sliding Anti-Replay Sequence Window](https://rust.help/data/guides/anti-replay-sliding-64-packet-window.json): [Crypto & Wire Hygiene | Intermediate] Track the highest authenticated sequence number and a 64-bit bitmap to reject duplicates and packets outside a sliding window. - [Write-Ahead Log Record Framing and Torn-Write Detection](https://rust.help/data/guides/append-only-wal-record-framer-crc32.json): [Systems & Alloc | Intermediate] Frame records in caller-provided buffers and stop scanning at the first incomplete or checksum-invalid record. - [Flattening Recursive ASTs into Typed u32 Index Arenas](https://rust.help/data/guides/arena-ast-flattening-with-typed-node-ids.json): [Systems & Alloc | Intermediate] Store expression nodes contiguously and connect them with typed 32-bit indices instead of recursive pointers. - [Fixed Wire Frame Encoding Driven by Associated Constants](https://rust.help/data/guides/associated-const-protocol-wire-sizes.json): [Type System & Zero-Heap | Intermediate] Use an associated constant to publish a fixed frame length and encode directly into a caller-owned slice. - [Lock-Free 64-Channel Readiness Multiplexing with fetch_or and swap](https://rust.help/data/guides/atomic-bitmask-event-multiplexer.json): [Hardware, SIMD & Atomics | Intermediate] Coalesce readiness notifications into a 64-bit atomic mask and drain them in one operation. - [Hardware atomic::fence vs compiler_fence for Signal Handlers and DMA](https://rust.help/data/guides/atomic-fence-vs-compiler-fence-signal-dma.json): [Hardware, SIMD & Atomics | Advanced] Choose a compiler fence for supported same-thread asynchronous contexts and an atomic fence for inter-thread synchronization through an atomic publication. - [Acquire and Release Happens-Before Edges vs Broken Relaxed Flag Polling](https://rust.help/data/guides/atomic-relaxed-vs-acquire-release-message-passing.json): [Hardware, SIMD & Atomics | Intermediate] Publish an atomic payload through a release flag and observe it after an acquire load. - [When Acquire/Release Is Not Enough: Store-Buffering and SeqCst Total Order](https://rust.help/data/guides/atomic-seqcst-dekker-store-buffering-litmus.json): [Hardware, SIMD & Atomics | Advanced] Understand why release stores followed by acquire loads can both observe old values, and how SeqCst rules out that outcome in the two-flag litmus test. - [Bipartite Ring Buffer for Contiguous Zero-Copy DMA Slices](https://rust.help/data/guides/bip-buffer-contiguous-dma-ring.json): [Systems & Alloc | Advanced] Split a borrowed byte buffer into an active region and an optional wrapped region, exposing contiguous producer and consumer slices. - [Packing Fixed Bit-Width Integers Tightly into u64 Words](https://rust.help/data/guides/bit-packed-uint-array-arbitrary-bitwidth.json): [Hardware, SIMD & Atomics | Intermediate] Store unsigned values of a fixed width in caller-provided u64 words and retrieve them across word boundaries. - [Portable Bit Rotation, Byte Swapping, and Bit Reversal Primitives](https://rust.help/data/guides/bit-reversal-byte-swap-and-rotate-intrinsics.json): [Hardware, SIMD & Atomics | Foundational] Use integer methods to express rotations, byte order changes, bit reversal, and leading-zero counts portably. - [Iterating Set Bits in Hardware Cycles with trailing_zeros and x & (x - 1)](https://rust.help/data/guides/bitboard-set-iteration-kernighan-tzcnt.json): [Hardware, SIMD & Atomics | Foundational] Iterate the indices of set bits in a u64 mask, from lowest to highest. - [Enforcing Reserved-Must-Be-Zero Bits for Forward-Compatible Wire Headers](https://rust.help/data/guides/bitfield-reserved-must-be-zero-wire-validation.json): [Crypto & Wire Hygiene | Foundational] Reject incoming headers that set flag bits this protocol version does not understand. - [Zero-Allocation Map Lookups with Borrow and Equivalent Keys](https://rust.help/data/guides/borrow-and-asref-ergonomic-lookup-keys.json): [Memory & Ownership | Intermediate] Look up owned string keys in a BTreeMap with borrowed str values without allocating a query key. - [Implementing All Three IntoIterator Forms for Custom Collections](https://rust.help/data/guides/borrowing-iterators-intoiterator-three-forms.json): [Memory & Ownership | Foundational] Delegate owned, shared, and mutable iteration to the underlying collection's iterator types. - [Bounded SPSC Async Channel with Producer Backpressure and Dual Wakers](https://rust.help/data/guides/bounded-async-ring-backpressure-two-wakers.json): [Reactive Poll & Wakers | Advanced] Use a fixed array and separate sender and receiver wakers to apply bounded backpressure. - [Bounding Field Counts and Cumulative Header Bytes in Streaming Parsers](https://rust.help/data/guides/bounded-header-count-slowloris-frame-budget.json): [Crypto & Wire Hygiene | Foundational] Apply independent limits to the number of header fields and their cumulative wire size while parsing. - [Min-Heap Deadline Scheduling with BinaryHeap and core::cmp::Reverse](https://rust.help/data/guides/bounded-priority-min-heap-binaryheap-reverse.json): [Systems & Alloc | Foundational] Use an allocation-backed heap to select the earliest deadline with deterministic sequence-based ties. - [Branchless Arithmetic and Conditional Move Patterns Without Mispredicts](https://rust.help/data/guides/branchless-clamp-select-and-cmov-codegen.json): [Hardware, SIMD & Atomics | Intermediate] Express cheap selections and clamps clearly, then inspect generated code and benchmark on the target processor. - [Aligned Bump Arena Over a Caller-Owned Byte Slice](https://rust.help/data/guides/bump-arena-aligned-slice-allocator.json): [Systems & Alloc | Intermediate] Split a caller-owned uninitialized byte slab into disjoint, aligned allocations with checked bounds. - [Eliminating Multi-Core False Sharing with repr(align(64)) Cache Padding](https://rust.help/data/guides/cache-line-padding-preventing-false-sharing.json): [Hardware, SIMD & Atomics | Intermediate] Separate frequently written atomic counters and cache remote snapshots to reduce coherence traffic in a single-producer, single-consumer design. - [Cancellation-Safe Buffering Across Poll::Pending Boundaries](https://rust.help/data/guides/cancellation-safety-drop-mid-poll-invariants.json): [Reactive Poll & Wakers | Intermediate] Keep partial frame bytes in the connection so dropping a pending read future does not discard consumed input. - [Enforcing Canonical Wire Representations to Prevent Signature Malleability](https://rust.help/data/guides/canonical-encoding-rejecting-non-minimal-integers.json): [Crypto & Wire Hygiene | Intermediate] Validate a complete canonical message before accepting its signed representation. - [Zero-Sized Capability Tokens Proving Lock or Interrupt State](https://rust.help/data/guides/capability-tokens-zero-sized-proof-arguments.json): [Type System & Zero-Heap | Intermediate] Use a private, zero-sized token as evidence that code entered a controlled critical-section API. - [Interior Mutability Over Slices with Cell::from_mut and as_slice_of_cells](https://rust.help/data/guides/cell-as-slice-of-cells-zero-copy-mutation.json): [Memory & Ownership | Intermediate] Use a slice of cells to update potentially overlapping indices through shared references without copying the slice. - [Checked arithmetic and wrapping](https://rust.help/data/guides/checked-arithmetic-and-wrapping.json): [Compiler Diagnostics | Foundational] Choose checked or wrapping arithmetic according to the meaning of a calculation. - [Fixing the Classic offset + len Integer Overflow Bypass in Bounds Checks](https://rust.help/data/guides/checked-offset-plus-len-overflow-trap.json): [Crypto & Wire Hygiene | Foundational] Use checked arithmetic and safe slice access before accepting an offset and length from untrusted input. - [Eliminating Per-Element Bounds Checks with chunks_exact and Array Windows](https://rust.help/data/guides/chunks-exact-bounds-check-elimination.json): [Hardware, SIMD & Atomics | Foundational] Express fixed-size work with slice chunks and handle the tail explicitly, giving the optimizer clear bounds information. - [Zero-Allocation COBS Frame Encoding and Decoding over UART](https://rust.help/data/guides/cobs-consistent-overhead-byte-stuffing.json): [Systems & Alloc | Intermediate] Encode packet bytes into caller-owned buffers and use zero as the UART frame delimiter. - [Keeping Instruction Caches Dense with #[cold] and Outlined Slow Paths](https://rust.help/data/guides/cold-and-inline-never-error-path-outlining.json): [Hardware, SIMD & Atomics | Intermediate] Move uncommon fallback work into a separate helper while keeping a common operation small. - [Compressed Sparse Row (CSR) Graphs for Cache-Dense Traversals](https://rust.help/data/guides/compact-csr-graph-adjacency-storage.json): [Systems & Alloc | Intermediate] Flatten adjacency lists into offsets and edges for compact, contiguous neighbor traversal. - [Lock-Free State Updates: compare_exchange_weak vs compare_exchange](https://rust.help/data/guides/compare-exchange-weak-cas-retry-loops.json): [Hardware, SIMD & Atomics | Intermediate] Use weak compare-and-exchange when a retry loop can tolerate spurious failure, and strong compare-and-exchange for a single attempt. - [Enforcing Layout and Capacity Invariants inside Associated const Blocks](https://rust.help/data/guides/compile-time-invariants-with-const-blocks.json): [Type System & Zero-Heap | Intermediate] Check a ring buffer's power-of-two capacity during monomorphization so indexing can use a mask. - [Total Enum Transition Functions Verified by Exhaustive Match](https://rust.help/data/guides/compile-time-state-transition-tables.json): [Type System & Zero-Heap | Foundational] Express every state and event pair explicitly so enum changes trigger compiler review. - [Compiler-Driven Refactoring: Exhaustive Destructuring Over Wildcard Field Ignores](https://rust.help/data/guides/compiler-driven-type-holes-and-exhaustiveness-refactoring.json): [Compiler Diagnostics | Foundational] List every configuration field in a validator so adding a field forces a review of that validator. - [Defending Decompressors and RLE Decoders Against Zip-Bomb Amplification](https://rust.help/data/guides/compression-bomb-output-budget-limiter.json): [Crypto & Wire Hygiene | Foundational] Check each expansion against an output budget before writing. - [Building Zero-Runtime-Cost Lookup Tables in const fn](https://rust.help/data/guides/const-eval-lookup-tables-and-static-asserts.json): [Type System & Zero-Heap | Intermediate] Generate a CRC32C lookup table during constant evaluation and check representative entries at compile time. - [Compile-Time Matrix Dimension Checking with Const Generics](https://rust.help/data/guides/const-generic-matrix-dimension-checked-mul.json): [Type System & Zero-Heap | Intermediate] Use const parameters to match the shared dimension of two fixed-size matrices without heap allocation. - [Table-Free Constant-Time Hex Encoding and Decoding for Key Material](https://rust.help/data/guides/constant-time-hex-and-base64url-codec.json): [Crypto & Wire Hygiene | Intermediate] Encode and decode hexadecimal key material with arithmetic instead of secret-indexed lookup tables. - [Validating Block Padding Without Padding-Oracle Early Returns](https://rust.help/data/guides/constant-time-pkcs7-padding-validation.json): [Crypto & Wire Hygiene | Advanced] Inspect every byte of a final block using masks, while treating compiler behavior and externally visible errors as part of the security boundary. - [Cooperative Poll Budgets Preventing Single-Stream Starvation](https://rust.help/data/guides/cooperative-budget-yield-now-future.json): [Reactive Poll & Wakers | Intermediate] Limit immediately ready work in each poll and reschedule the task when the budget expires. - [Lifetime Variance: Covariance, Invariance, and Contravariance](https://rust.help/data/guides/covariance-invariance-contravariance-lifetimes.json): [Memory & Ownership | Advanced] Use lifetime subtyping to understand shared references, mutable references, and function pointers. - [Clone-on-Write Byte Normalization with alloc::borrow::Cow](https://rust.help/data/guides/cow-slice-borrowed-fast-path-mutation.json): [Memory & Ownership | Foundational] Return the original byte slice when it needs no normalization, and allocate only after finding the first escape byte. - [Safe Views Over Dynamically Sized Variable-Length Packet Tails](https://rust.help/data/guides/custom-dst-slice-tail-header-view.json): [Type System & Zero-Heap | Advanced] Decode a fixed header and borrow a checked variable-length payload without casting packet bytes to an unsized struct. - [Zero-Alloc Structured Error Types Implementing core::error::Error](https://rust.help/data/guides/custom-error-enum-core-error-trait.json): [Systems & Alloc | Foundational] Use a small error enum to retain byte offsets and expose errors through core traits without allocating. - [Defunctionalizing Closures into Inspectable Copy Commands](https://rust.help/data/guides/defunctionalization-closures-to-data-enums.json): [Type System & Zero-Heap | Intermediate] Represent a fixed set of work items as copyable enum values and execute them through a bounded queue. - [Delta-of-Delta Varint Compression for Monotonic Timestamp Streams](https://rust.help/data/guides/delta-compressed-monotonic-timestamps.json): [Hardware, SIMD & Atomics | Intermediate] Encode monotonic u64 timestamps using an initial timestamp, an initial delta, and zigzag-encoded changes in delta. - [Descriptor Readiness Table Mapping Token IDs to Waker Slots](https://rust.help/data/guides/descriptor-interest-table-epoll-kqueue-state.json): [Reactive Poll & Wakers | Intermediate] Use generational tokens to map readiness notifications to separate read and write waker slots. - [Deterministic BuildHasher for Reproducible no_std Hash Containers](https://rust.help/data/guides/deterministic-fnv-and-wyhash-no-std-hasher.json): [Systems & Alloc | Intermediate] Build a fixed-seed FNV-1a hasher with core traits for environments without OS randomness. - [Resolving E0015: Replacing Trait Calls and Iterators Inside const fn](https://rust.help/data/guides/diagnostic-e0015-const-fn-non-const-calls.json): [Compiler Diagnostics | Intermediate] Replace calls unavailable in const evaluation with indexing, while loops, and explicit matches. - [Resolving E0038: Fixing dyn-Incompatible Trait Signatures](https://rust.help/data/guides/diagnostic-e0038-trait-cannot-be-made-into-an-object.json): [Compiler Diagnostics | Intermediate] Separate dynamically dispatched methods from constructors, generic methods, and associated constants that prevent dyn compatibility. - [Resolving E0106: Lifetime Elision Rules and Multi-Input Ambiguity](https://rust.help/data/guides/diagnostic-e0106-missing-lifetime-specifier.json): [Compiler Diagnostics | Foundational] Use explicit lifetimes when a signature does not identify which input owns a returned borrow. - [Resolving E0117: Coherence and the Orphan Rule Across Crates](https://rust.help/data/guides/diagnostic-e0117-orphan-rule-coherence-errors.json): [Compiler Diagnostics | Foundational] Use a local newtype to implement an external trait for behavior associated with an external type. - [Resolving E0119: Conflicting Blanket Implementations Without Specialization](https://rust.help/data/guides/diagnostic-e0119-conflicting-blanket-trait-implementations.json): [Compiler Diagnostics | Intermediate] Replace overlapping blanket implementations with distinct wrapper types that make dispatch explicit. - [Resolving E0277: Diagnosing Unsatisfied Send, Sync, and Trait Bounds](https://rust.help/data/guides/diagnostic-e0277-trait-bound-not-satisfied-send-sync.json): [Compiler Diagnostics | Intermediate] Trace nested trait obligations to the field or generic bound that prevents a type from satisfying Send or Sync. - [Resolving E0308: Distinct Opaque Types and Match-Arm Type Mismatches](https://rust.help/data/guides/diagnostic-e0308-opaque-impl-trait-arm-mismatch.json): [Compiler Diagnostics | Foundational] Use a stack-allocated enum to give iterator branches one concrete return type. - [Resolving E0382: Use of Moved Value Without Reflexive .clone() Sprawl](https://rust.help/data/guides/diagnostic-e0382-use-of-moved-value.json): [Compiler Diagnostics | Foundational] Trace the move identified by E0382 and borrow or return ownership when the value is still needed. - [Resolving E0477 and 'static Bounds on Spawned or Stored Handlers](https://rust.help/data/guides/diagnostic-e0477-type-does-not-fulfill-lifetime-bound.json): [Compiler Diagnostics | Intermediate] Satisfy long-lived handler bounds by owning captured data, while using scoped lifetimes when a handler may borrow. - [Resolving E0499: Cannot Borrow as Mutable More Than Once at a Time](https://rust.help/data/guides/diagnostic-e0499-multiple-mutable-borrows-loop.json): [Compiler Diagnostics | Intermediate] Keep mutable borrows short in loops by retaining indices instead of mutable references. - [Resolving E0502: Simultaneous Immutable and Mutable Borrow on Self](https://rust.help/data/guides/diagnostic-e0502-immutable-and-mutable-borrow-conflict.json): [Compiler Diagnostics | Foundational] End an immutable borrow before mutating self, or separate independent fields so the compiler can see they do not overlap. - [Resolving E0503: Reading a Variable While an Exclusive &mut Borrow Is Still Live](https://rust.help/data/guides/diagnostic-e0503-use-while-mutably-borrowed.json): [Compiler Diagnostics | Foundational] Resolve E0503 by accessing a value through its active mutable reference or by waiting until that borrow ends. - [Resolving E0505: Cannot Move Out of Value Because It Is Borrowed](https://rust.help/data/guides/diagnostic-e0505-move-out-while-borrowed.json): [Compiler Diagnostics | Intermediate] End a packet view's borrow before moving its backing buffer, or store offsets instead of references. - [Resolving E0507: Cannot Move Out of Shared or Mutable Reference](https://rust.help/data/guides/diagnostic-e0507-cannot-move-out-of-shared-reference.json): [Compiler Diagnostics | Foundational] Borrow fields for inspection, or replace a field before taking ownership through a mutable reference. - [Resolving E0515: Returning Data Owned by the Current Function](https://rust.help/data/guides/diagnostic-e0515-cannot-return-reference-to-local.json): [Compiler Diagnostics | Foundational] Return a borrow into caller-owned storage or return an owned inline value instead of a reference to a local buffer. - [Resolving E0521: Borrowed Data Escapes Outside of Closure or Method](https://rust.help/data/guides/diagnostic-e0521-borrowed-data-escapes-outside-closure.json): [Compiler Diagnostics | Advanced] Give a closure input the lifetime required by captured storage when the closure must retain a borrowed slice. - [Resolving E0597: Borrowed Value Does Not Live Long Enough](https://rust.help/data/guides/diagnostic-e0597-borrowed-value-does-not-live-long-enough.json): [Compiler Diagnostics | Foundational] Keep scratch storage alive through every use of its borrowed view, or return an owned inline value. - [Resolving E0621: Tying Input Struct Lifetimes to Returned Views](https://rust.help/data/guides/diagnostic-e0621-explicit-lifetime-required-in-parameter.json): [Compiler Diagnostics | Intermediate] Return the packet's lifetime from a borrowed wrapper when the view comes directly from the packet. - [Resolving E0716: Temporary Value Dropped While Borrowed](https://rust.help/data/guides/diagnostic-e0716-temporary-value-dropped-while-borrowed.json): [Compiler Diagnostics | Foundational] Bind a temporary owner before borrowing from it so the borrow remains valid for later statements. - [Working Around NLL Conditional-Return Map Lookup Limitations Safely](https://rust.help/data/guides/diagnostic-polonius-conditional-return-borrow-limitation.json): [Compiler Diagnostics | Advanced] Avoid a conditional mutable borrow that must be returned by finding an index first, then borrowing the selected entry once. - [Splitting Structs for Disjoint Mutable Field Borrows](https://rust.help/data/guides/disjoint-field-borrows-split-structs.json): [Memory & Ownership | Foundational] Borrow independent fields directly so a state engine can update them at the same time. - [Bounding Backward Pointer Jumps When Parsing Compressed Wire Names](https://rust.help/data/guides/dns-pointer-compression-cycle-and-jump-cap.json): [Crypto & Wire Hygiene | Intermediate] Validate compressed DNS names with backward pointer checks and a jump budget. - [Preventing Cross-Protocol Replay and Ambiguous Concatenation in Transcripts](https://rust.help/data/guides/domain-separated-transcript-hashing.json): [Crypto & Wire Hygiene | Intermediate] Encode a protocol label and explicit field lengths before hashing a transcript, so different field boundaries cannot produce the same encoded bytes. - [Implementing DoubleEndedIterator and ExactSizeIterator on Slice Views](https://rust.help/data/guides/double-ended-iterator-split-and-rev-borrows.json): [Memory & Ownership | Intermediate] Implement a slice-view iterator whose front and back indices describe its remaining elements. - [Edge-Triggered I/O Loops: Draining Until WouldBlock Before Returning Pending](https://rust.help/data/guides/edge-triggered-drain-until-wouldblock-loop.json): [Reactive Poll & Wakers | Intermediate] Drain available work until WouldBlock, or schedule another poll when a cooperative budget runs out. - [Zero-Overhead Endian-Explicit Integer Wrappers in repr(C) Headers](https://rust.help/data/guides/endianness-typed-wire-integers-le-be.json): [Crypto & Wire Hygiene | Foundational] Store wire integers as byte arrays with explicit big-endian or little-endian conversions. - [Closed-Set Enum Dispatch for Branch-Predictor Friendly Hot Loops](https://rust.help/data/guides/enum-dispatch-vs-dyn-trait-closed-sets.json): [Type System & Zero-Heap | Foundational] Use an enum to represent a fixed set of filters and dispatch with a match, while retaining trait objects for open sets of implementations. - [Zero-Alloc Iterator Pipelines via Return-Position impl Trait](https://rust.help/data/guides/existential-impl-trait-in-return-position.json): [Type System & Zero-Heap | Foundational] Return an opaque concrete iterator that borrows packet storage and builds headers lazily without a boxed iterator. - [Explicit Reborrowing Across Mutable Helper Calls](https://rust.help/data/guides/explicit-reborrowing-across-helper-calls.json): [Memory & Ownership | Foundational] Create short-lived mutable reborrows when passing a mutable slice through generic helpers. - [Domain Slice Operations with Local Extension Traits](https://rust.help/data/guides/extension-traits-adding-methods-to-slices.json): [Type System & Zero-Heap | Foundational] Add domain-specific, allocation-free methods to byte slices through a sealed local extension trait. - [Eytzinger (1-Indexed BFS) Array Layout for Branchless Cache-Hot Search](https://rust.help/data/guides/eytzinger-cache-oblivious-binary-search-layout.json): [Hardware, SIMD & Atomics | Advanced] Build a breadth-first binary search tree in an array and traverse it with arithmetic child indices. - [Fallible Heap Growth with Vec::try_reserve in Bounded Services](https://rust.help/data/guides/fallible-vec-try-reserve-oom-resilience.json): [Systems & Alloc | Foundational] Validate frame sizes and reserve capacity fallibly before extending a no_std vector. - [Division-Free Bounded Index Mapping with 128-Bit Multiply-Shift](https://rust.help/data/guides/fast-modulo-reduction-lemire-fastrange.json): [Hardware, SIMD & Atomics | Intermediate] Map a 64-bit hash into a bounded range using the high half of a wide product. - [Inline Fixed-Capacity UTF-8 String Without Heap Allocation](https://rust.help/data/guides/fixed-capacity-inline-string-utf8-invariant.json): [Systems & Alloc | Intermediate] Store UTF-8 bytes inline and expose them as a string while preserving the UTF-8 invariant. - [Fixed-Capacity ArrayVec on the Stack with MaybeUninit](https://rust.help/data/guides/fixed-capacity-stack-vec-const-generic.json): [Systems & Alloc | Intermediate] Maintain an initialized prefix inside a fixed array and drop exactly the values still owned by the vector. - [Exact Fixed-Point Quantities Without Floating-Point Drift](https://rust.help/data/guides/fixed-point-decimal-financial-quantities.json): [Systems & Alloc | Intermediate] Store six decimal places in signed micro-units and multiply with explicit rounding. - [Generational Arena Slab with ABA-Safe Slot Handles](https://rust.help/data/guides/freelist-slab-generational-handles.json): [Systems & Alloc | Intermediate] Use a fixed array of slots, an intrusive free list, and nonwrapping generations to reject stale handles. - [Fused Futures: Handling Accidental Re-Polls After Poll::Ready](https://rust.help/data/guides/fused-future-preventing-post-completion-panics.json): [Reactive Poll & Wakers | Intermediate] Use an explicit terminal state and a termination query to make repeated polls predictable. - [Abstracting Over Container Families with GAT Type Constructors](https://rust.help/data/guides/gat-collection-family-type-constructors.json): [Type System & Zero-Heap | Advanced] Use a generic associated type to select a container family while keeping an algorithm independent of its element type. - [Generic Associated Types (GATs) for Zero-Copy Lending Iterators](https://rust.help/data/guides/gat-lending-iterator-streaming-windows.json): [Type System & Zero-Heap | Advanced] Use a generic associated type to return a view tied to each mutable borrow of a reusable decode buffer. - [Minimal Sealed Integer Traits in Pure core Without num-traits](https://rust.help/data/guides/generic-numeric-traits-without-external-crates.json): [Type System & Zero-Heap | Intermediate] Define a small sealed trait for primitive unsigned integers using only core and a declarative macro. - [Zero-Dependency Shutdown Latch Broadcasting to N Registered Tasks](https://rust.help/data/guides/graceful-drain-shutdown-latch-waker-broadcast.json): [Reactive Poll & Wakers | Intermediate] A monotonic shutdown latch stores one waker per worker and broadcasts when draining begins. - [Writing Explicit Poll State-Machine Enums Instead of Opaque async Blocks](https://rust.help/data/guides/hand-written-future-state-machine-enum.json): [Reactive Poll & Wakers | Intermediate] Implement a small Future as an enum whose states and size can be inspected directly. - [Fixed-Slot Hashed Timer Wheel for Deterministic Timeout Expiry](https://rust.help/data/guides/hashed-hierarchical-timer-wheel-no-alloc.json): [Systems & Alloc | Advanced] Schedule fixed-capacity timers on wheel spokes using round counters and intrusive indices, with no allocation. - [Higher-Ranked Trait Bounds (for<'a>) for Ephemeral Buffer Decoders](https://rust.help/data/guides/higher-ranked-trait-bounds-zero-copy-decoders.json): [Type System & Zero-Heap | Advanced] Accept a decoder that can borrow each transient input frame for any lifetime while returning a result independent of that frame. - [Deterministic Floating-Point Bit Manipulation and NaN Canonicalization](https://rust.help/data/guides/ieee754-nan-canonicalization-and-bit-casts.json): [Hardware, SIMD & Atomics | Intermediate] Normalize all binary64 NaN encodings to one quiet NaN before producing deterministic bit representations. - [Fixed-Size Stack Closure Wrapper Without Heap Box](https://rust.help/data/guides/inline-closure-storage-stack-callable.json): [Type System & Zero-Heap | Advanced] Store a small owned FnOnce inline with type-erased invoke and drop functions. - [Manual Function-Pointer VTables for Copyable Lightweight Handles](https://rust.help/data/guides/inline-vtable-fat-pointer-erasure.json): [Type System & Zero-Heap | Advanced] Pair a small copyable context with a static table of function pointers to make an explicitly designed erased handle. - [Contiguous Append-Only String Interner with 32-Bit Symbol IDs](https://rust.help/data/guides/interned-string-pool-contiguous-backing.json): [Systems & Alloc | Intermediate] Store string bytes in one append-only buffer and represent each distinct string by a compact symbol. - [Safe Intrusive Doubly-Linked List Over Preallocated Slot Arrays](https://rust.help/data/guides/intrusive-doubly-linked-index-list.json): [Systems & Alloc | Intermediate] Keep doubly linked list metadata in preallocated nodes and use indices for constant-time insertion and removal. - [Intrusive Singly-Linked Free-Page List with NonNull Nodes](https://rust.help/data/guides/intrusive-singly-linked-lifo-pointer-stack.json): [Systems & Alloc | Advanced] Use the storage of free, aligned blocks for a singly linked stack without allocating separate list nodes. - [Why Intrusive Async Waiter Nodes Require Pinning and Drop Unlinking](https://rust.help/data/guides/intrusive-waiter-queue-zero-heap-mutex.json): [Reactive Poll & Wakers | Advanced] An intrusive queue stores pointers to waiter nodes owned by futures. Each linked node must stay at a stable address and unlink before its storage disappears. - [Index-Backed Cursors Instead of Self-Referential Structs](https://rust.help/data/guides/lending-cursor-without-self-referential-structs.json): [Memory & Ownership | Intermediate] Store byte offsets alongside an owned buffer and create a borrowed view only when requested. - [Validating Length-Prefixed Wire Frames Before Allocating Memory](https://rust.help/data/guides/length-prefixed-frame-max-cap-before-alloc.json): [Crypto & Wire Hygiene | Foundational] Check a big-endian length prefix against a fixed cap before reserving storage for a frame. - [Approximating Linear Obligations with Explicit Consumption Receipts](https://rust.help/data/guides/linear-must-consume-tokens-without-silent-drop.json): [Type System & Zero-Heap | Advanced] Use a private receipt constructor and consuming methods to require explicit resolution at an API boundary. - [Building a Zero-Allocation Waker from a Static RawWakerVTable](https://rust.help/data/guides/manual-rawwaker-static-vtable-no-alloc.json): [Reactive Poll & Wakers | Advanced] Build a waker that sets a static atomic flag without allocating or reference counting. - [Ownership Transfers Through Mutable References with mem::take and replace](https://rust.help/data/guides/mem-take-and-replace-enum-state-transitions.json): [Memory & Ownership | Foundational] Move an owned state out through a mutable reference by temporarily installing a valid placeholder. - [Preventing Second-Preimage Attacks in Merkle Trees with 0x00 / 0x01 Prefixes](https://rust.help/data/guides/merkle-leaf-vs-internal-node-domain-prefix.json): [Crypto & Wire Hygiene | Intermediate] Give leaf and branch hash inputs distinct prefixes so a leaf cannot be interpreted as a pair of child hashes. - [Safe MMIO Register Access Using read_volatile and write_volatile](https://rust.help/data/guides/mmio-volatile-register-block-abstraction.json): [Systems & Alloc | Advanced] Represent an MMIO peripheral by its raw base address and perform each register access with volatile pointer operations. - [Rejecting Split-Brain Stale Writers with Monotonic Fencing Tokens](https://rust.help/data/guides/monotonic-epoch-fencing-tokens-stale-writers.json): [Crypto & Wire Hygiene | Intermediate] Have storage reject writes carrying an epoch older than the highest fencing token it has accepted. - [Morton Z-Order Curve Bit Interleaving for 2D Spatial Locality](https://rust.help/data/guides/morton-z-order-bit-interleaving-2d-locality.json): [Hardware, SIMD & Atomics | Intermediate] Interleave two 16-bit coordinates into a 32-bit Morton key and recover them with shifts and masks. - [Overflow-Safe Pro-Rata Share Calculation with Exact Remainder Distribution](https://rust.help/data/guides/mul-div-overflow-safe-pro-rata-allocation.json): [Crypto & Wire Hygiene | Intermediate] Widen products and carry fractional remainders across recipients to allocate every unit. - [Enum Niche Optimization with NonZero and Custom Sentinel Types](https://rust.help/data/guides/niche-layout-optimization-enums-and-nonmax.json): [Memory & Ownership | Intermediate] Reserve zero as the None sentinel by storing a shifted index in a transparent NonZeroU32 wrapper. - [Borrowing slices without std](https://rust.help/data/guides/no-std-slice-borrowing.json): [Memory & Ownership | Foundational] Split a mutable slice into disjoint regions without allocating or copying. - [Enforcing Unique AEAD Nonces by Consuming or Incrementing Nonce State](https://rust.help/data/guides/nonce-misuse-monotonic-counter-seal-guard.json): [Crypto & Wire Hygiene | Intermediate] Reserve each sequence number once and require key rotation before the counter can wrap. - [Probing Ready Futures Synchronously Using a Zero-Cost Noop Waker](https://rust.help/data/guides/noop-waker-synchronous-fast-path-probing.json): [Reactive Poll & Wakers | Foundational] Poll a future once with a no-op waker to detect immediate readiness, then arrange a real wakeup path if it remains pending. - [Bounded Scratch-Buffer Pool Clearing Capacity Without Reallocation](https://rust.help/data/guides/object-pool-reusable-scratch-buffers.json): [Systems & Alloc | Foundational] Lease scratch vectors from a bounded pool and return suitably sized buffers automatically when their guards drop. - [Keeping Traits dyn-Compatible with Where Self: Sized Splits](https://rust.help/data/guides/object-safety-splitting-generic-methods.json): [Type System & Zero-Heap | Intermediate] Keep a byte-slice operation available through a trait object while restricting a generic convenience method to sized implementors. - [Single-Producer Single-Consumer Oneshot Future Over Shared Slot State](https://rust.help/data/guides/oneshot-completion-slot-no-std-waker.json): [Reactive Poll & Wakers | Intermediate] Build a single-threaded oneshot future with an atomic state marker and safely borrowed value and waker storage. - [Fixed-Capacity Linear-Probing Hash Table with Robin Hood Displacement](https://rust.help/data/guides/open-addressing-linear-probe-fixed-table.json): [Systems & Alloc | Advanced] Build a fixed-capacity map with deterministic FNV-1a hashing, Robin Hood insertion, and backward-shift deletion. - [Packing Generation, Flags, and Reference Count into One AtomicU64](https://rust.help/data/guides/packed-atomic-u64-state-and-refcount.json): [Hardware, SIMD & Atomics | Advanced] Update a 32-bit epoch, four flag bits, and a 28-bit reference count as one atomic state, with checked reference-count increments. - [Hardware Descriptor Ring Ownership Bits and Wrap Indexing](https://rust.help/data/guides/page-aligned-dma-descriptor-ring.json): [Systems & Alloc | Advanced] Model fixed-size submission and completion rings with ownership phase bits that toggle on wrap. - [Zero-Cost Physical and Time Units Preventing Millisecond-Microsecond Bugs](https://rust.help/data/guides/phantom-unit-dimensional-analysis-types.json): [Type System & Zero-Heap | Foundational] Tag timestamps with clock-domain marker types so subtraction requires matching domains and units. - [PhantomData Ownership and Variance Markers for Raw Handles](https://rust.help/data/guides/phantomdata-variance-and-ownership-markers.json): [Memory & Ownership | Advanced] Compare ownership, variance, and auto-trait effects of PhantomData markers on NonNull wrappers. - [Pin and intrusive wakers](https://rust.help/data/guides/pin-and-intrusive-wakers.json): [Reactive Poll & Wakers | Advanced] Understand stable addresses and wake registration before designing intrusive asynchronous queues. - [Zero-Alloc Stack Pinning with core::pin::pin!](https://rust.help/data/guides/pin-stack-pinning-with-core-pin-macro.json): [Memory & Ownership | Intermediate] Pin a state machine in local storage with core::pin::pin! and access it without allocation or unsafe code. - [Pin Projection Without Proc Macros: Structural vs Unpinned Fields](https://rust.help/data/guides/pin-structural-vs-non-structural-projection.json): [Memory & Ownership | Advanced] Project a pinned struct into a structurally pinned field and an ordinary mutable field, with explicit invariants. - [Zero-Boilerplate Readiness Adapters with core::future::poll_fn](https://rust.help/data/guides/poll-fn-bridging-closure-readiness-checks.json): [Reactive Poll & Wakers | Foundational] Wrap a poll-based readiness method in an async function with core::future::poll_fn. - [Succinct Bitvector Rank Queries with Precomputed count_ones Blocks](https://rust.help/data/guides/popcount-rank-select-succinct-bitvector.json): [Hardware, SIMD & Atomics | Intermediate] Count set bits before a position using cumulative counts at 512-bit block boundaries. - [Overflow-Safe Address and Size Alignment Rounding](https://rust.help/data/guides/power-of-two-alignment-round-up-overflow-safe.json): [Hardware, SIMD & Atomics | Foundational] Round an address or size up to a power-of-two boundary while detecting invalid alignment and overflow. - [Cache-Line Sized Flat Node Keys for High-Fanout Search Trees](https://rust.help/data/guides/prefetch-friendly-b-tree-flat-node-search.json): [Hardware, SIMD & Atomics | Intermediate] Keep sixteen sorted keys in one aligned array and compute a lower-bound child index. - [Raw Pointer Copy Contracts: copy vs copy_nonoverlapping](https://rust.help/data/guides/ptr-read-write-copy-nonoverlapping-contracts.json): [Memory & Ownership | Intermediate] Choose the raw copy operation that matches whether source and destination ranges can overlap. - [Two-Level Hierarchical Bitmap Allocator Using trailing_zeros](https://rust.help/data/guides/radix-page-bitmap-free-frame-allocator.json): [Systems & Alloc | Intermediate] Track 4,096 free frames with 64 leaf words and a summary word, using trailing_zeros to select a free frame without a scan. - [Breaking Single-Threaded Reference Cycles with Rc and Weak](https://rust.help/data/guides/rc-weak-acyclic-parent-pointers-single-thread.json): [Memory & Ownership | Intermediate] Own children with Rc and store non-owning parent links with Weak in a single-threaded tree. - [Preventing Stack-Overflow DoS with Explicit Nesting Depth Budgets](https://rust.help/data/guides/recursion-depth-capped-wire-decoder.json): [Crypto & Wire Hygiene | Foundational] Limit nested container entry with a caller-supplied depth budget. - [Type-Level Secret Redaction Preventing Accidental Debug or Wire Logging](https://rust.help/data/guides/redactable-secret-wrapper-preventing-accidental-serialize.json): [Crypto & Wire Hygiene | Foundational] Make debug output safe by default and require an explicit method call to access a wrapped secret. - [Borrowing Newtype Slices Without Allocation: When Wrapper Slices Need Care](https://rust.help/data/guides/ref-cast-single-field-borrows-safe-patterns.json): [Type System & Zero-Heap | Intermediate] Borrow a primitive slice as transparent wrappers only when layout and value validity make every element a valid wrapper. - [Minimizing Struct Padding in repr(C) and repr(Rust) Layouts](https://rust.help/data/guides/repr-c-struct-field-reordering-memory-footprint.json): [Hardware, SIMD & Atomics | Foundational] Understand how field order and alignment affect struct size, and verify layouts for the target in use. - [ABI-Identical Newtypes with repr(transparent)](https://rust.help/data/guides/repr-transparent-ffi-and-abi-wrappers.json): [Memory & Ownership | Foundational] Wrap a raw handle in a distinct Rust type while retaining the representation and ABI of its single field. - [Correlation-ID In-Flight Request Table Over a Single Multiplexed Pipe](https://rust.help/data/guides/request-multiplex-correlation-slab-inflight.json): [Reactive Poll & Wakers | Intermediate] Use a fixed request table with generational tags to route out-of-order responses to the right waiting caller. - [Why Financial Ledgers Must Use Checked Math While Telemetry Uses Saturating](https://rust.help/data/guides/saturating-vs-checked-fee-and-balance-ledgers.json): [Crypto & Wire Hygiene | Foundational] Reject transfers that cannot be represented, while allowing telemetry counters to saturate. - [Reading Across Discontiguous Scatter-Gather Slice Chains](https://rust.help/data/guides/scatter-gather-iovec-slice-chain-reader.json): [Systems & Alloc | Intermediate] Read a logical byte stream from borrowed slices without first joining them into a contiguous buffer. - [RAII Scope Guards for Early-Return Rollback in no_std](https://rust.help/data/guides/scoped-drop-guard-unwind-and-early-return.json): [Memory & Ownership | Foundational] Use an armed drop guard to undo an append when a fallible operation returns early. - [Sealed Traits for Exhaustive Downstream-Proof Type Hierarchies](https://rust.help/data/guides/sealed-traits-closed-protocol-invariants.json): [Type System & Zero-Heap | Intermediate] Use an inaccessible supertrait to reserve implementation of a public protocol trait for its defining crate. - [Torn-Read Prevention in Odd/Even Sequence Locks Using Volatile/Atomic Loads](https://rust.help/data/guides/seqlock-odd-even-writer-torn-read-prevention.json): [Hardware, SIMD & Atomics | Advanced] Publish atomic payload words between odd and even sequence updates and retry inconsistent snapshots. - [Breaking Loop-Carried Dependency Chains with 4-Way Accumulators](https://rust.help/data/guides/simd-friendly-horizontal-reduction-multi-accumulator.json): [Hardware, SIMD & Atomics | Intermediate] Use four independent partial sums to expose instruction-level parallelism in dot products and checksums. - [64-Task Cooperative Executor Driven by a Ready Bitmask](https://rust.help/data/guides/single-thread-bitset-mini-executor.json): [Reactive Poll & Wakers | Advanced] Poll up to 64 pinned futures using a shared atomic ready bitmask and allocation-free RawWakers. - [Hash-Flooding DoS Defense with Per-Table Keyed SipRound Mixing](https://rust.help/data/guides/siphash-style-keyed-short-input-prf.json): [Crypto & Wire Hygiene | Intermediate] Use a secret per-table key with SipHash-2-4 to make collision sets harder to predict. - [Avoiding the Null Pointer Trap in slice::from_raw_parts](https://rust.help/data/guides/slice-from-raw-parts-empty-null-trap.json): [Memory & Ownership | Intermediate] Normalize a null empty FFI buffer before constructing a Rust slice, while preserving the raw pointer safety contract. - [Safe Non-Overlapping Mutable Slices with split_at_mut](https://rust.help/data/guides/slice-split-at-mut-non-overlapping-views.json): [Memory & Ownership | Foundational] Partition a mutable packet buffer into disjoint header and payload slices. - [Zero-Alloc Rolling Time-Bucket Telemetry Counter](https://rust.help/data/guides/sliding-window-histogram-ring-buckets.json): [Systems & Alloc | Foundational] Count requests and errors in the current second and up to 63 preceding seconds using fixed storage. - [Inline-First Buffer Spilling to alloc::vec::Vec Only on Overflow](https://rust.help/data/guides/smallvec-inline-to-heap-spill-buffer.json): [Systems & Alloc | Intermediate] Keep a small collection in an initialized array of optional values, then move it into a vector when capacity is exceeded. - [Struct-of-Arrays (SoA) vs Array-of-Structs (AoS) for Auto-Vectorization](https://rust.help/data/guides/soa-vs-aos-simd-autovectorization-layout.json): [Hardware, SIMD & Atomics | Intermediate] Keep hot numeric fields in contiguous slices and process them in fixed-size chunks so the compiler can more easily vectorize the loop. - [Power-of-Two Ring Masking and Wrapping Sequence Distance](https://rust.help/data/guides/spsc-index-queue-power-of-two-masking.json): [Systems & Alloc | Intermediate] Use wrapping sequence counters and a power-of-two mask to use every slot in a bounded index queue. - [Trait Objects Without Heap Allocation: &dyn and &mut dyn Dispatch](https://rust.help/data/guides/stack-borrowed-dyn-trait-without-box.json): [Type System & Zero-Heap | Foundational] Choose a concrete sink at runtime and borrow it through a trait object without allocating on the heap. - [Avoiding Stacked and Tree Borrows Aliasing Violations in Unsafe Code](https://rust.help/data/guides/stacked-borrows-retag-hazards-raw-mut.json): [Memory & Ownership | Advanced] Keep raw accesses derived from a single pointer and avoid creating exclusive references that conflict with live raw pointers. - [Pointer Provenance and Alignment-Tagged Handles](https://rust.help/data/guides/strict-provenance-addr-expose-and-tagged-ptrs.json): [Memory & Ownership | Advanced] Store a two-bit state in the low bits of an aligned pointer while retaining its provenance. - [UTF-8 Boundary Verification and Safe Substring Slicing](https://rust.help/data/guides/string-utf8-unchecked-vs-checked-boundary-slicing.json): [Memory & Ownership | Foundational] Check byte offsets and use checked string APIs to avoid panics when slicing UTF-8. - [SWAR: Scanning 8 Bytes at Once in a Plain u64 Register](https://rust.help/data/guides/swar-simd-within-a-register-byte-scanning.json): [Hardware, SIMD & Atomics | Advanced] Find the first delimiter by testing eight bytes at a time with portable u64 arithmetic. - [Fair Ticket Spinlocks and core::hint::spin_loop Backoff in Bare-Metal](https://rust.help/data/guides/ticket-lock-and-exponential-spin-loop-hint.json): [Hardware, SIMD & Atomics | Advanced] Use monotonically assigned tickets to give waiting callers FIFO access to shared data. - [Nested TLV Decoding with Sub-Slice Isolation to Prevent Over-Reads](https://rust.help/data/guides/tlv-nested-bounds-subslice-isolation.json): [Crypto & Wire Hygiene | Intermediate] Give each nested TLV parser an exact slice of its container value so it cannot consume bytes from sibling records. - [Supertrait Delegation and Explicit Read-Only Trait Down-Views](https://rust.help/data/guides/trait-upcasting-and-supertrait-borrows.json): [Type System & Zero-Heap | Intermediate] Expose a borrowed read-only trait-object view of a mutable store through an explicit bridge. - [Eliminating mem::transmute with Checked Safe Casts and Byte Arrays](https://rust.help/data/guides/transmute-alternatives-safe-type-conversions.json): [Memory & Ownership | Intermediate] Use explicit bit, byte, and pointer conversions instead of relying on transmute and implicit layout assumptions. - [Preventing the ABA Problem in Lock-Free Stacks with Tagged Array Indices](https://rust.help/data/guides/treiber-stack-aba-hazard-and-tagged-index.json): [Hardware, SIMD & Atomics | Advanced] Attach a generation stamp to an atomic slab index so a stale head comparison detects intervening stack updates. - [Cryptographic Doom Principle: Verify Frame Authenticity Before Complex Parsing](https://rust.help/data/guides/two-phase-verify-then-parse-envelope.json): [Crypto & Wire Hygiene | Foundational] Use a type boundary to keep payload parsing behind frame authentication. - [Compile-Time Mandatory Builder Fields Without Runtime Option Unwraps](https://rust.help/data/guides/typestate-builder-mandatory-fields-zero-option.json): [Type System & Zero-Heap | Intermediate] Store required values in builder state types and expose build only after both values are present. - [Typestate protocol handles](https://rust.help/data/guides/typestate-protocol-handles.json): [Type System & Zero-Heap | Intermediate] Make invalid state transitions unrepresentable using ownership and marker types. - [Enforcing Read-Only vs Read-Write Storage Transactions via Typestate](https://rust.help/data/guides/typestate-transaction-read-write-commit.json): [Type System & Zero-Heap | Intermediate] Use marker types to expose queries for every transaction while allowing writes and commits only in read-write mode. - [Safe Wrappers Around repr(C) Unions and Valid Bit Patterns](https://rust.help/data/guides/union-field-access-and-initialized-bit-patterns.json): [Memory & Ownership | Advanced] Use a private tag to track the active field of a C-compatible union and expose only checked reads. - [UnsafeCell Soundness: Why Shared References Must Never Coexist with &mut T](https://rust.help/data/guides/unsafecell-exclusive-aliasing-rules.json): [Memory & Ownership | Advanced] Use a one-shot slot whose state prevents access to a value while a mutable reference to it exists. - [Rejecting Control Characters, BiDi Overrides, and Null Bytes in Wire Identifiers](https://rust.help/data/guides/utf8-overlong-and-control-char-wire-sanitization.json): [Crypto & Wire Hygiene | Foundational] Validate UTF-8 wire identifiers and reject control characters and bidirectional formatting controls. - [Bounded LEB128 Varint Encoding and Overlong Rejection](https://rust.help/data/guides/varint-leb128-bounded-loop-decoder.json): [Systems & Alloc | Intermediate] Encode and decode canonical 64-bit unsigned and zigzag-signed LEB128 values with a ten-byte bound. - [Advancing Partial Writes Across Header and Payload Buffers](https://rust.help/data/guides/vectored-write-cursor-advancing-partial-writes.json): [Reactive Poll & Wakers | Intermediate] Keep one cumulative byte cursor over a header and body so every partial write resumes at the exact unsent byte. - [Streaming Pull Events vs Typed Visitor Traits for Zero-Heap Parsing](https://rust.help/data/guides/visitors-vs-pull-parsers-zero-heap-ast.json): [Type System & Zero-Heap | Intermediate] Stream borrowed S-expression events or dispatch them to a typed visitor without allocating an AST. - [Bounded Lock-Free MPMC Ring Queue with Per-Slot Sequence Atomics](https://rust.help/data/guides/vyukov-bounded-mpmc-atomic-ring-queue.json): [Hardware, SIMD & Atomics | Advanced] Use a sequence counter per slot to coordinate multiple producers and consumers in a bounded ring. - [Multi-Word 256-Bit Unsigned Arithmetic Using u64::widening-Style Carries](https://rust.help/data/guides/wide-carrying-mul-add-u128-limb-arithmetic.json): [Hardware, SIMD & Atomics | Intermediate] Implement fixed-width addition, subtraction, and truncated schoolbook multiplication over four little-endian limbs. - [Witness Types: Proving Preconditions Once at the Boundary](https://rust.help/data/guides/witness-types-parse-dont-validate.json): [Type System & Zero-Heap | Foundational] Wrap borrowed slices in types whose private fields preserve sortedness and nonemptiness after a single check. - [Zero-Allocation Key-Value Config Iterator Over Static or Mapped Bytes](https://rust.help/data/guides/zero-alloc-line-and-kv-config-parser.json): [Systems & Alloc | Foundational] Validate UTF-8 once, then iterate over borrowed key-value pairs with line-numbered syntax errors and no allocation. - [Zero-allocation ring buffers](https://rust.help/data/guides/zero-alloc-ring-buffers.json): [Systems & Alloc | Intermediate] Build a bounded byte queue using a fixed-size array and explicit full and empty states. - [Zero-Copy Wire Cursor Borrowing Sub-Slices Tied to Input Lifetime](https://rust.help/data/guides/zero-copy-binary-cursor-reader.json): [Systems & Alloc | Foundational] Read byte and UTF-8 slices from a wire buffer without copying, while returning references tied to the input lifetime. - [Designing APIs That Turn Logic Bugs into Hard Compile Errors Under -D warnings](https://rust.help/data/guides/zero-warning-discipline-must-use-and-lint-gates.json): [Compiler Diagnostics | Foundational] Mark returned state and guards as must-use, return explicit errors, and promote unhandled-result warnings to errors. - [Scrubbing Ephemeral Secret Keys on Drop Without Dead-Store Elimination](https://rust.help/data/guides/zeroize-on-drop-volatile-secret-scrubbing.json): [Crypto & Wire Hygiene | Intermediate] Overwrite a secret's owned bytes with volatile writes when its owner is dropped, and keep its debug output redacted. ## Interactive Visual Rust Tutorials (90) - [How Unsafe Rust Works](https://rust.help/data/tutorials/unsafe-five-superpowers.json): [Memory & Ownership] unsafe does not turn off the borrow checker. It opens 5 guarded hatches where you become the safety net. - [Binary Search = A Zoom Lens](https://rust.help/data/tutorials/binary-search-zoom-lens.json): [Binary Search] Inspect the middle element, discard the impossible half, and halve the search window every step. - [Lower & Upper Bound on Duplicates](https://rust.help/data/tutorials/binary-search-lower-upper-bound.json): [Binary Search] When duplicates exist, never return early on mid. Keep zooming left for lower_bound and right for upper_bound. - [Cow<'a, str>: Clone Only When You Must](https://rust.help/data/tutorials/cow-clone-on-first-write.json): [Memory & Ownership] Borrow caller bytes for zero-allocation reads, allocate once on the first mutation, and reuse the owned buffer thereafter. - [Ownership, Borrowing, and Exclusive &mut](https://rust.help/data/tutorials/ownership-move-borrow-mut.json): [Memory & Ownership] One owner on the stack, arbitrarily many shared &T readers, or one exclusive &mut T writer. - [Quick Sort: Pick a Pivot, Split Around It](https://rust.help/data/tutorials/quicksort-pivot-partition.json): [Sorting] Partition smaller items left of the pivot, lock the pivot in its final home, and recurse on both sides. - [Heap Sort: The Biggest Rises to the Top](https://rust.help/data/tutorials/heapsort-sift-down-tree.json): [Sorting] View one flat slice as a binary max-heap, swap root max into the shrinking tail, and sift down in O(1) space. - [Token Bucket & GCRA Rate Limiting](https://rust.help/data/tutorials/gcra-token-bucket-rate-limiter.json): [Systems & Async] Encode an entire bursty token bucket inside a single 8-byte u64 nanosecond timestamp with zero background timers. - [How rustc Incremental Compilation Works](https://rust.help/data/tutorials/rustc-red-green-incremental.json): [Compiler & Hardware] Break compilation into fingerprinted queries so comment or body-local edits short-circuit downstream rebuilds. - [Foreign Function Interface (FFI): How Rust Talks to C](https://rust.help/data/tutorials/ffi-rustonomicon-c-bridge.json): [Memory & Ownership] Rust can call C and C can call Rust back, provided ABI layout, pointers, and unwinding never cross unguarded. - [How to Read Rust Smart Pointers (Box, Rc, Arc, RefCell)](https://rust.help/data/tutorials/smart-pointers-box-rc-arc-refcell.json): [Memory & Ownership] Stack handles that own heap data and clean up deterministically via Drop. - [Stack vs Heap: Where Your Rust Values Actually Live](https://rust.help/data/tutorials/stack-vs-heap-memory-model.json): [Memory & Ownership] LIFO stack frames move in one SP instruction; heap allocations live behind owned fat pointers. - [How Rust Ownership Works: Move, Clone, Borrow & Drop](https://rust.help/data/tutorials/how-rust-ownership-drop-works.json): [Memory & Ownership] Deterministic destruction without a garbage collector: move transfers, borrow lends, scope exit drops. - [Borrowed Views (&str, &[T]): Zero-Allocation Slicing](https://rust.help/data/tutorials/borrowed-views-zero-alloc-slicing.json): [Memory & Ownership] Prefer &str and &[T] parameters so callers can pass String, literals, Vec, or arrays with zero heap copies. - [Error Handling in Rust: Result & ? Propagation](https://rust.help/data/tutorials/error-handling-result-question-mark.json): [Rust Core] Errors are explicit enum values that short-circuit upward via ? and From conversions. - [Generic Types, Trait Bounds & Lifetimes](https://rust.help/data/tutorials/generics-traits-lifetimes-trio.json): [Rust Core] One Rust function signature: generic type T, behavior bound T: Ord, and borrow lifetime 'a. - [Rust Traits: impl Trait (Static) vs dyn Trait (Dynamic)](https://rust.help/data/tutorials/rust-traits-impl-vs-dyn-dispatch.json): [Rust Core] One trait, two ways to call it: compile-time monomorphized impl Trait vs fat-pointer &dyn Trait. - [Is Rust Object-Oriented? The 4 Pillars Put to the Test](https://rust.help/data/tutorials/is-rust-object-oriented.json): [Rust Core] Structs + pub privacy give encapsulation, traits give polymorphism, and composition replaces class inheritance. - [Rust's Advanced Features: The 5 Power Tools](https://rust.help/data/tutorials/rust-advanced-features-five-tools.json): [Rust Core] Associated types, newtypes/DSTs, function pointers & closures, declarative/proc macros, and unsafe hatches. - [Rust Design Patterns: 6 Type-Level Bug Killers](https://rust.help/data/tutorials/rust-design-patterns-six-bug-killers.json): [Rust Core] Typestate, Newtype, Builder, RAII Guard, Visitor, and Borrowed Slice views make invalid states unrepresentable. - [Insertion Sort: Sorting a Hand of Cards](https://rust.help/data/tutorials/insertion-sort-hand-of-cards.json): [Sorting] Pick the next key, shift larger sorted elements right, and drop key into its sorted gap. - [Selection Sort: Find the Minimum, Make One Swap](https://rust.help/data/tutorials/selection-sort-min-swap.json): [Sorting] Scan the unsorted suffix for its minimum index, then swap once onto the sorted frontier. - [Counting Sort: Tally, Prefix Sum, Place](https://rust.help/data/tutorials/counting-sort-tally-prefix-place.json): [Sorting] Skip pairwise comparisons entirely: count frequencies, accumulate offsets, and place stably right-to-left. - [Radix Sort (LSD): One Digit Pass at a Time](https://rust.help/data/tutorials/radix-sort-one-digit-at-a-time.json): [Sorting] Run stable counting sort from least-significant byte/digit to most-significant. - [Stable vs Unstable Sort: Who Was First?](https://rust.help/data/tutorials/stable-vs-unstable-sort-rust.json): [Sorting] v.sort_by_key() preserves original tie order using scratch RAM; v.sort_unstable_by_key() sorts in-place with zero allocs. - [Shell Sort: Big Jumps First, Small Steps Last](https://rust.help/data/tutorials/shell-sort-shrinking-gaps.json): [Sorting] Insertion-sort elements spaced gap apart so turtles leap across the slice early, finishing with gap = 1. - [Bucket Sort: Split by Range, Sort Small Piles](https://rust.help/data/tutorials/bucket-sort-range-piles.json): [Sorting] Scatter uniform values into range buckets, insertion-sort each tiny pile, and concatenate. - [Rust's Sorting Toolbox: 7 Slice Methods to Know](https://rust.help/data/tutorials/rust-sorting-toolbox-seven-methods.json): [Sorting] sort, sort_unstable, sort_by, sort_by_key, sort_by_cached_key, select_nth_unstable, and binary_search. - [Lomuto vs Hoare: Partition Showdown](https://rust.help/data/tutorials/lomuto-vs-hoare-partition-showdown.json): [Sorting] Lomuto scans from the left with one boundary; Hoare walks two pointers inward for 3x fewer swaps. - [Comparison vs Counting: The O(n log n) Wall](https://rust.help/data/tutorials/comparison-vs-counting-nlogn-wall.json): [Sorting] Any yes/no comparison tree needs log2(n!) = Theta(n log n) height; radix/counting sort branches k ways by key bits. - [Hybrid Sorts: Production Sorts Are Recipes](https://rust.help/data/tutorials/hybrid-sorts-real-recipes.json): [Sorting] Rust's std sorts combine run detection, insertion sort on <= 20 items, pdqsort/merge, and heapsort fallback. - [Which Sort Should You Use? Decision Flow in Rust](https://rust.help/data/tutorials/which-sort-should-you-use-rust.json): [Sorting] Top-k only -> select_nth_unstable; ties matter -> sort_by_key; primitive slice -> sort_unstable; integer keys -> radix. - [Sorting Cheat Sheet, as a Periodic Table](https://rust.help/data/tutorials/sorting-periodic-table-cheatsheet.json): [Sorting] Best, average, worst, space, stability, and in-place properties across all 10 classic algorithms. - [10 Sorting Algorithms, One 16-Element Race](https://rust.help/data/tutorials/ten-sorting-algorithms-one-race.json): [Sorting] Same input array across all 10 algorithms: watch quadratic comparison counts lose to O(n log n) and linear passes. - [Binary Search: 7 Variants, 1 Zoom Lens](https://rust.help/data/tutorials/binary-search-whole-family.json): [Binary Search] Exact match, lower_bound, upper_bound, rotated array, peak element, 2D matrix, and search-on-answer all share partition_point. - [Binary Search on a 2D Matrix: Flatten Virtually](https://rust.help/data/tutorials/binary-search-2d-matrix.json): [Binary Search] When each row starts after the previous row ends, index k maps to (k / cols, k % cols) with zero flattening copy. - [Binary Search on the Answer (Monotonic Feasibility)](https://rust.help/data/tutorials/binary-search-on-answer.json): [Binary Search] When can_finish(speed) flips monotonically from false to true, binary-search the answer space [1..=max_pile]. - [Binary Search: Find a Peak Element (Walk Uphill)](https://rust.help/data/tutorials/binary-search-peak-element.json): [Binary Search] Compare a[mid] with a[mid + 1]: an uphill slope guarantees a peak lies to the right; downhill guarantees one on the left. - [Binary Search in a Rotated Sorted Array](https://rust.help/data/tutorials/binary-search-rotated-sorted-array.json): [Binary Search] Two sorted runs glued at a pivot: at every midpoint, at least one half [lo..=mid] or [mid..=hi] is strictly sorted! - [Tree Traversal Algorithms: 3 Euler Walks + 1 Queue](https://rust.help/data/tutorials/tree-traversal-algorithms-overview.json): [Trees] One recursive walk around the tree yields Preorder, Inorder, and Postorder; one VecDeque yields Level-Order BFS. - [Preorder Traversal: Root -> Left -> Right](https://rust.help/data/tutorials/preorder-traversal-root-left-right.json): [Trees] Visit a node the very first time you touch it, or drive an explicit Vec<&Node> stack pushing right then left. - [Inorder Traversal: Left -> Root -> Right](https://rust.help/data/tutorials/inorder-traversal-sorted-bst.json): [Trees] Plunge left onto a stack, pop and emit, then step right: streams any BST in sorted ascending order. - [Postorder Traversal: Left -> Right -> Root](https://rust.help/data/tutorials/postorder-traversal-children-first.json): [Trees] Process both children before their parent: safe order for freeing nodes, directory sizes, and AST evaluation. - [Level-Order Traversal: BFS with VecDeque](https://rust.help/data/tutorials/level-order-bfs-vecdeque.json): [Trees] Snapshot queue.len() at the start of each wave to group nodes cleanly by depth level. - [Tree Traversal & 10 Classic Tree Lenses](https://rust.help/data/tutorials/tree-traversal-ten-lenses.json): [Trees] Preorder, Inorder, Postorder, BFS, Height, Diameter, BST Check, Path Sum, LCA, and Codec on one tree. - [DFS on a Binary Tree in Rust (Option>)](https://rust.help/data/tutorials/dfs-on-binary-tree-in-rust.json): [Trees] Use Option::as_deref() to recurse on &Node without fighting Box ownership or cloning subtrees. - [Serialize & Deserialize a Binary Tree (Preorder + #)](https://rust.help/data/tutorials/serialize-deserialize-binary-tree.json): [Trees] Plain preorder is ambiguous without null markers; emitting '#' for None reconstructs the exact tree in one iterator pass. - [Validate a BST: Propagate (lo, hi) Bounds](https://rust.help/data/tutorials/validate-bst-interval-bounds.json): [Trees] Checking parent < child locally is a classic bug: every node must sit strictly inside its ancestor interval (lo, hi). - [Root-to-Leaf Path Sum (DFS Shrinking Target)](https://rust.help/data/tutorials/root-to-leaf-path-sum-dfs.json): [Trees] Subtract node.val as you descend and test remaining == node.val at leaves. - [Lowest Common Ancestor (LCA) in a BST](https://rust.help/data/tutorials/lowest-common-ancestor-bst.json): [Trees] Walk down from the root until p and q split onto opposite sides: that split node is the LCA in O(h) time and O(1) space! - [Diameter of a Binary Tree: Best (Left + Right) Height](https://rust.help/data/tutorials/diameter-of-binary-tree.json): [Trees] The longest path between any two leaves doesn't have to pass through the root; track max(left_h + right_h) at every node. - [Height of a Binary Tree: 1 + max(left, right)](https://rust.help/data/tutorials/height-of-binary-tree.json): [Trees] Empty subtree has height 0; every non-empty node has height 1 + max(height(left), height(right)). - [The Periodic Table of Graph Algorithms](https://rust.help/data/tutorials/periodic-table-of-graph-algorithms.json): [Graphs & Backtracking] Unweighted -> BFS; DAG order -> TopoSort; non-negative weights -> Dijkstra; negative edges -> Bellman-Ford; connectivity -> Union-Find; MST -> Kruskal/Prim. - [Backtracking: Choose, Explore, Un-Choose](https://rust.help/data/tutorials/backtracking-maze-template.json): [Graphs & Backtracking] Mutate one shared path buffer in-place, recurse deeper, and pop/unmark on return so zero intermediate Vecs allocate. - [Word Search: 4-Neighbor DFS + In-Place Unmarking](https://rust.help/data/tutorials/word-search-grid-dfs.json): [Graphs & Backtracking] Match b"CRAB" byte-by-byte across 4 neighbors, temporarily poisoning board[r][c] = 0 so a cell cannot be reused. - [N-Queens: O(1) Column & Diagonal Bitmask Guards](https://rust.help/data/tutorials/n-queens-bitmask-guards.json): [Graphs & Backtracking] Place one Queen per row, guarding columns (c), main diagonals (r + c), and anti-diagonals (r + n - 1 - c) in u32 bitmasks. - [Permutations: Order Matters (n! Decision Tree)](https://rust.help/data/tutorials/permutations-slot-used-mask.json): [Graphs & Backtracking] Fill slots left-to-right; any unused element can take the next slot, yielding n! = 6 permutations of [1, 2, 3]. - [Subsets (2^n): Take It or Skip It](https://rust.help/data/tutorials/subsets-power-set-decision-tree.json): [Graphs & Backtracking] At each element i, branch into two worlds (include nums[i] vs skip nums[i]) to generate all 2^n subsets. - [Combinations C(n, k): Never Look Back](https://rust.help/data/tutorials/combinations-monotonic-start.json): [Graphs & Backtracking] Order does not matter ({1,2} == {2,1}), so only pick indices >= start and prune when remaining elements < needed. - [Greedy Patterns in Rust: Pick the Best Local Move](https://rust.help/data/tutorials/greedy-patterns-in-rust.json): [Graphs & Backtracking] Activity selection (sort by earliest end), Jump Game (furthest reach), Huffman min-heap, and Gas Station. - [Matrix & Grid Patterns: 7 Ways Traversal Spreads](https://rust.help/data/tutorials/matrix-grid-seven-patterns.json): [Graphs & Backtracking] Spiral bounds, diagonals, transpose + reverse = rotate 90, BFS flood fill, island count, and 2D prefix sums. - [Number Theory in Rust: Sieve, GCD & Modular Pow](https://rust.help/data/tutorials/number-theory-primes-gcd-modpow.json): [Graphs & Backtracking] Euclidean GCD in O(log b), binary exponentiation mod m in O(log exp), and Sieve of Eratosthenes. - [Data Structures in Rust: Which Collection to Reach For](https://rust.help/data/tutorials/rust-collections-guide.json): [Data Structures] Default to Vec; use VecDeque for queues, HashMap/HashSet for O(1) lookup, BTreeMap for sorted ranges, BinaryHeap for priorities. - [Advanced Data Structures: Segment Tree, Fenwick, Trie & DSU](https://rust.help/data/tutorials/advanced-data-structures-rust.json): [Data Structures] In Rust, advanced trees and graphs store nodes in flat Vec arenas indexed by u32/usize rather than pointer soup! - [10 Must-Know Array Patterns (Two Pointers & Sliding Window)](https://rust.help/data/tutorials/ten-must-know-array-patterns.json): [Data Structures] Two pointers inward, sliding window [l..=r], prefix sums, Kadane max subarray, monotonic stack, and Dutch flag. - [String Patterns in Rust: UTF-8 Bytes, KMP, Z & Trie](https://rust.help/data/tutorials/string-patterns-kmp-z-rabin-karp.json): [Data Structures] Rust strings are UTF-8 byte buffers: use .as_bytes() for O(1) indexed KMP prefix tables, rolling hashes, and ASCII frequency arrays. - [Heap & Priority Queue Patterns (BinaryHeap)](https://rust.help/data/tutorials/heap-priority-queue-patterns.json): [Data Structures] BinaryHeap is a max-heap in Vec; wrap core::cmp::Reverse(x) for a min-heap (top-k largest, k-way merge, median two-heaps). - [10 Time Complexities in Rust: O(1) to O(2^n)](https://rust.help/data/tutorials/ten-time-complexities-in-rust.json): [Data Structures] How operation counts explode as n grows from 10 to 1,000,000 across O(1), O(log n), O(n), O(n log n), O(n^2), and O(2^n). - [Big-O Cheat Sheet: Contiguous Memory vs Pointer Hops](https://rust.help/data/tutorials/big-o-data-structure-cheatsheet.json): [Data Structures] Big-O counts asymptotic hops, while CPU L1/L2 cache lines reward contiguous arrays (Vec, VecDeque, BTreeMap) over linked nodes. - [Fearless Concurrency: Data Races Become Compile Errors](https://rust.help/data/tutorials/fearless-concurrency-send-sync.json): [Systems & Async] Send marks safe ownership transfer across threads; Sync marks safe shared &T across threads; Mutex wraps the data itself! - [How Rust's Tower Works: Service + Layer Middleware](https://rust.help/data/tutorials/how-rust-tower-service-works.json): [Systems & Async] One async fn call(Request) -> Result trait wrapped in composable Timeout, RateLimit, and Trace Layers. - [How Axum Works: TcpListener -> hyper -> Router -> Extractors](https://rust.help/data/tutorials/how-axum-works-request-lifecycle.json): [Systems & Async] Tokio accepts TCP sockets, hyper parses HTTP/1.1 & HTTP/2 frames, Router matches paths, and FromRequestParts extracts typed args. - [How Rust Tokio Works: Poll State Machines & Work Stealing](https://rust.help/data/tutorials/how-rust-tokio-works-work-stealing.json): [Systems & Async] async fn compiles to a stackless enum state machine; Tokio parks idle futures on OS I/O readiness and steals tasks across worker queues. - [How PyO3 Works: Python on the Outside, Rust on the Inside](https://rust.help/data/tutorials/how-pyo3-bridges-rust-and-python.json): [Systems & Async] maturin compiles cdylib native extensions; PyO3 converts Python objects, releases the GIL with py.detach, and maps Err to Python exceptions. - [Cryptography in Rust: Nine Audited Building Blocks](https://rust.help/data/tutorials/cryptography-in-rust-nine-blocks.json): [Systems & Async] CSPRNG -> SHA-256/BLAKE3 -> HKDF/Argon2 -> ChaCha20-Poly1305 AEAD -> X25519 + Ed25519 -> rustls. - [How Cloudflare Saved 100 TB of RAM with Consistent Hashing](https://rust.help/data/tutorials/cloudflare-consistent-hashing-ring.json): [Systems & Async] Hash both servers (with virtual nodes) and request keys onto one sorted u32 ring; binary-search clockwise for O(log V) routing. - [How Rust Macros Work: AST Expansion Before Type-Check](https://rust.help/data/tutorials/how-rust-macros-work.json): [Compiler & Hardware] TokenStreams match fragment specifiers ($x:expr, $t:ty) and expand hygienically into AST nodes before type checking runs. - [How Rust Optimizes Its Request Loop: Compiler, Runtime & Memory](https://rust.help/data/tutorials/how-rust-optimizes-request-loop.json): [Compiler & Hardware] Monomorphization + LLVM inlining + stack enums + arena/slab buffers + non-blocking reactor = predictable p999 latency. - [Cargo Command Mastery Guide](https://rust.help/data/tutorials/cargo-command-mastery-guide.json): [Compiler & Hardware] cargo check for fast type feedback, clippy for lints, tree -d for duplicate deps, bench/flamegraph for profiling, and doc --open. - [The Rust GPU Ecosystem, Mapped (wgpu, rust-gpu, cubecl)](https://rust.help/data/tutorials/rust-gpu-ecosystem-mapped.json): [Compiler & Hardware] wgpu unifies Vulkan, Metal, DX12, and WebGPU; rust-gpu compiles Rust to SPIR-V; cubecl & burn target multi-backend tensor kernels. - [Is Your Kernel Memory-Bound? The Roofline Model](https://rust.help/data/tutorials/is-your-kernel-memory-bound-roofline.json): [Compiler & Hardware] Ceiling = min(Bandwidth * OperationalIntensity, PeakCompute): fused/tiled kernels climb out of the bandwidth slope onto the compute roof! - [How GPU & CUDA Kernels Compile in Rust](https://rust.help/data/tutorials/how-cuda-gpu-rust-compiles.json): [Compiler & Hardware] Split compilation: host Rust compiles to native CPU code via LLVM while #[kernel] device functions lower to PTX / SPIR-V / MSL. - [Rust in Motion: 16 Core Idioms in One Tour](https://rust.help/data/tutorials/rust-in-motion-16-idioms.json): [Rust Core] Move, &T, &mut T, lifetimes, pattern matching, iterators, closures, traits, Result ?, and channels in one cohesive mental model. - [Composable Middleware Layers Without Heap Boxing](https://rust.help/data/tutorials/rust-tower-vs-raw-service-layers.json): [Systems & Async] Generic wrapper structs Timeout> inline across layer boundaries without Box per request. - [Structured Concurrency in Tokio: JoinSet & Cancellation Safety](https://rust.help/data/tutorials/tokio-spawn-joinset-cancellation.json): [Systems & Async] Dropping a Future cancels it at its current .await point: use JoinSet for task groups and watch channels for clean shutdown. - [Quick Sort: Defeating Sorted-Input Traps with Median-of-Three](https://rust.help/data/tutorials/quicksort-median-of-three-pivot.json): [Sorting] Picking v[last] degrades to O(n^2) on already-sorted slices; median-of-three (first, mid, last) keeps partitions balanced. - [Square Root Algorithms: The Poor Man's Logarithm](https://rust.help/data/tutorials/square-root-decomposition.json): [Data Structures] Split n items into sqrt(n) blocks: range queries touch at most 2 partial blocks plus sqrt(n) block sums, updates cost O(1). - [Directed Graphs in Rust: 4 Things One-Way Edges Let You Do](https://rust.help/data/tutorials/directed-graphs-four-tools.json): [Graphs & Backtracking] Topological sorting, dynamic programming on a DAG, successor jumps and Floyd's cycle detection all fall out of edges that point one way. - [print! vs println! vs dbg!](https://rust.help/data/tutorials/print-println-dbg.json): [Rust Core] print! waits in a buffer, println! prints bare values, dbg! prints file, line, expression and value to stderr and hands the value back. - [Compiler-Driven Development](https://rust.help/data/tutorials/compiler-driven-development.json): [Rust Core] Write the types, run cargo check, and let each error tell you what to fix next: model, check, read, fix, repeat.