CodeSnips
Collections
Coders
Sign in
Join us today
Share your craft projects Make new craft buddies Ask craft questions Blog your craft journey

Marcus Chen

78 code snips and 0 followers in 8 days
Follow
Profile 78 Code snips 0 Collections Likes Activity
  • Posted std::mem helpers for low-level memory manipulation

  • Posted MaybeUninit for safe uninitialized memory

  • Posted cargo-expand to inspect macro expansions

  • Posted Procedural macros for custom derives and attributes

  • Posted Build scripts (build.rs) for compile-time code generation

  • Posted tempfile for safe temporary file creation

  • Posted std::process::Command for spawning external processes

  • Posted AsRef and AsMut for flexible function parameters

  • Posted Deref and DerefMut for smart pointer ergonomics

  • Posted Associated types in traits for cleaner generics

  • Posted impl Trait for opaque return types

  • Posted const and const fn for compile-time evaluation

  • Posted Sized trait and ?Sized for dynamically-sized types

  • Posted color-eyre for beautiful error reports with backtraces

  • Posted nom for parser combinators and zero-copy parsing

  • Posted Parking_lot for faster synchronization primitives

  • Posted Crossbeam for advanced concurrent data structures

  • Posted log crate facade for pluggable logging backends

  • Posted panic! and unwinding for unrecoverable errors

  • Posted PhantomData for zero-cost type-level markers

  • Posted Send and Sync traits for safe concurrency guarantees

  • Posted wasm-bindgen for Rust to JavaScript interop in WebAssembly

  • Posted Inline assembly for critical performance hotspots

  • Posted cfg attribute for conditional compilation

  • Posted mod and pub for code organization and visibility

  • Posted Environment variables with std::env for configuration

  • Posted BufReader and BufWriter for efficient I/O buffering

  • Posted File I/O with std::fs for reading and writing files

  • Posted Cow for clone-on-write to avoid unnecessary allocations

  • Posted String vs &str for owned vs borrowed text

  • Posted VecDeque<T> for double-ended queue operations

  • Posted HashSet<T> for unique value collections

  • Posted HashMap<K, V> for key-value lookups

  • Posted Vec<T> for growable arrays with owned data

  • Posted Default trait for sensible zero values

  • Posted Drop trait for custom cleanup logic

  • Posted From and Into for type conversions

  • Posted std::fmt::Display for user-facing string representations

  • Posted Cargo.lock for reproducible builds

  • Posted once_cell for lazy static initialization

  • Posted tracing for structured logging and distributed tracing

  • Posted tokio::select! for racing multiple async operations

  • Posted Pin and Unpin for safe self-referential async futures

  • Posted Declarative macros (macro_rules!) for code generation

  • Posted Type state pattern for compile-time state machines

  • Posted Builder pattern for complex struct initialization

  • Posted Newtype pattern for type-safe primitives

  • Posted Rayon for data parallelism with par_iter

  • Posted Atomic operations for lock-free concurrency

  • Posted Unsafe Rust for FFI and low-level optimizations

  • Posted Criterion for benchmarking with statistical analysis

  • Posted Integration tests in tests/ directory

  • Posted Unit tests with #[test] and assert macros

  • Posted Feature flags for conditional compilation

  • Posted Cargo workspaces for multi-crate projects

  • Posted sqlx for compile-time checked SQL queries with async

  • Posted Tower middleware for composable HTTP service layers

  • Posted axum for type-safe async HTTP servers

  • Posted reqwest for async HTTP client with connection pooling

  • Posted serde for zero-copy serialization and deserialization

  • Posted clap for CLI argument parsing with derive macros

  • Posted Rc and RefCell for shared ownership with interior mutability

  • Posted Box<T> for heap allocation and recursive types

  • Posted Pattern matching with match for exhaustive case handling

  • Posted Iterator trait and combinators for zero-cost collection processing

  • Posted Option<T> for explicit null handling

  • Posted Derive macros for automatic trait implementations

  • Posted Trait bounds for generic functions with behavior constraints

  • Posted tokio::spawn for concurrent task execution

  • Posted async/await with tokio for concurrent I/O without blocking threads

  • Posted Channels (mpsc) for message passing between threads

  • Posted Arc and Mutex for safe shared mutable state across threads

  • Posted Lifetime annotations for flexible borrowing in structs

  • Posted Borrowing with & and &mut for zero-cost access

  • Posted Ownership transfer prevents double-free and use-after-free

  • Posted anyhow::Context for adding error context without custom types

  • Posted Custom error types with thiserror for domain errors

  • Posted Result and ? operator for clean error propagation

CodeSnips

CodeSnips is crafted with passion and great attention to detail.

We are 0 coders making 0 comments on 0 code snips.

Privacy Terms
Facebook Instagram Pinterest
Collections Coders Tags

© 2024 CodeSnips. All Rights Reserved. Running on Ruby on Rails.

Disclaimer: Any posts on CodeSnips.io are posted by individuals acting in their own right and do not necessarily reflect the views of CodeSnips.
CodeSnips will not be held liable for the actions of any user.