dtolnay / ref-cast
Safely cast &T to &U where the struct U contains a single field of type T.
☆198Updated this week
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 last month
- Macro to repeat sequentially indexed copies of a fragment of code☆142Updated 3 weeks ago
- Graph the number of crates that depend on your crate over time☆237Updated this week
- A scope for async_std and tokio to spawn non-static futures☆125Updated 8 months ago
- Fork of std::Arc with lots of utilities useful for FFI☆225Updated 3 weeks ago
- Safe-to-use proc-macro-free self-referential structs in stable Rust.☆257Updated 2 months ago
- Conditional compilation using boolean expression syntax, rather than any(), all(), not()☆293Updated 2 years ago
- Conditional compilation according to rustc compiler version☆346Updated 3 weeks ago
- A procedure macro to unify SYNC and ASYNC implementation for downstream application/crates☆150Updated 11 months ago
- A lightweight version of pin-project written with declarative macros.☆237Updated last week
- Utilities for working with impl traits in Rust.☆101Updated 3 weeks ago
- "A very small syn"☆200Updated 2 weeks ago
- Cargo extension for running Criterion.rs benchmarks☆194Updated 7 months ago
- Pull in every source file in a directory as a module☆169Updated last week
- Make trait methods callable without the trait in scope☆135Updated 3 weeks ago
- ☆180Updated 2 months ago
- Cross-platform atomic wait and wake (aka futex) functionality for Rust.☆120Updated 8 months ago
- Compile-time string formatting☆229Updated 2 months ago
- Serialize and deserialize C-like enum as underlying repr☆237Updated this week
- Statically-checked alternatives to RefCell and RwLock☆367Updated 8 months ago
- Better reference counted strings for Rust☆118Updated 7 months ago
- Struct fields that are made read-only accessible to other modules☆232Updated 3 weeks ago
- Portable atomic types including support for 128-bit atomics, atomic float, etc.☆172Updated last week
- A library for to allow multiple return types by automatically generated enum.☆357Updated last week
- Async synchronization primitives☆261Updated last month
- Extract documentation for the feature flags from comments in Cargo.toml☆177Updated this week
- A fast and flexible LRU map.☆174Updated last month
- Bisects rustc, either nightlies or CI artifacts☆180Updated 2 weeks ago
- Lazy formatting utility macro for rust☆127Updated last year
- An experimental linting interface for Rust. Let's make custom lints a reality☆148Updated last year