dtolnay / ref-cast
Safely cast &T to &U where the struct U contains a single field of type T.
☆199Updated 3 weeks ago
Alternatives and similar repositories for ref-cast:
Users that are interested in ref-cast are comparing it to the libraries listed below
- Safe, zero-cost downcasting for limited compile-time specialization.☆156Updated 2 weeks ago
- A scope for async_std and tokio to spawn non-static futures☆127Updated 9 months ago
- A procedure macro to unify SYNC and ASYNC implementation for downstream application/crates☆151Updated last year
- Compile-time string formatting☆233Updated 3 months ago
- Macro to repeat sequentially indexed copies of a fragment of code☆150Updated 2 weeks ago
- Struct fields that are made read-only accessible to other modules☆235Updated 2 weeks ago
- Fork of std::Arc with lots of utilities useful for FFI☆229Updated 2 months ago
- Conditional compilation using boolean expression syntax, rather than any(), all(), not()☆294Updated 2 years ago
- Graph the number of crates that depend on your crate over time☆236Updated this week
- Conditional compilation according to rustc compiler version☆350Updated 2 weeks ago
- A library for to allow multiple return types by automatically generated enum.☆359Updated this week
- Define your own PhantomData☆152Updated 2 weeks ago
- Portable atomic types including support for 128-bit atomics, atomic float, etc.☆177Updated this week
- Extract documentation for the feature flags from comments in Cargo.toml☆177Updated last month
- Safe-to-use proc-macro-free self-referential structs in stable Rust.☆259Updated 3 months ago
- Cross-platform atomic wait and wake (aka futex) functionality for Rust.☆120Updated 9 months ago
- A lightweight version of pin-project written with declarative macros.☆242Updated this week
- "A very small syn"☆201Updated last month
- This crate offers procedural macros designed to facilitate the swift implementation of Rust's built-in traits.☆141Updated 7 months ago
- Better reference counted strings for Rust☆119Updated 8 months ago
- Utilities for working with impl traits in Rust.☆104Updated last month
- Pull in every source file in a directory as a module☆170Updated 3 weeks ago
- Statically-checked alternatives to RefCell and RwLock☆368Updated 9 months ago
- Bisects rustc, either nightlies or CI artifacts☆183Updated this week
- A fast and flexible LRU map.☆177Updated 2 months ago
- A variant of include_bytes!/include_str! with compile-time deflation and runtime lazy inflation☆137Updated 4 months ago
- Const TypeId and non-'static TypeId☆61Updated 2 weeks ago
- Async synchronization primitives☆263Updated 2 months ago
- Serialize and deserialize C-like enum as underlying repr☆237Updated 2 weeks ago
- Cargo extension for running Criterion.rs benchmarks☆194Updated 8 months ago