dtolnay / ref-cast
Safely cast &T to &U where the struct U contains a single field of type T.
☆200Updated 2 months 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.☆160Updated 2 months ago
- Conditional compilation using boolean expression syntax, rather than any(), all(), not()☆294Updated 2 years ago
- Macro to repeat sequentially indexed copies of a fragment of code☆154Updated 2 months ago
- Graph the number of crates that depend on your crate over time☆238Updated this week
- Compile-time string formatting☆235Updated 4 months ago
- A scope for async_std and tokio to spawn non-static futures☆132Updated 11 months ago
- Fork of std::Arc with lots of utilities useful for FFI☆232Updated 3 months ago
- Statically-checked alternatives to RefCell and RwLock☆367Updated 10 months ago
- A lightweight version of pin-project written with declarative macros.☆245Updated this week
- Define your own PhantomData☆152Updated 2 months ago
- ☆206Updated last month
- Serialize and deserialize C-like enum as underlying repr☆242Updated 2 months ago
- Conditional compilation according to rustc compiler version☆351Updated 2 months ago
- This crate offers procedural macros designed to facilitate the swift implementation of Rust's built-in traits.☆142Updated 9 months ago
- Portable atomic types including support for 128-bit atomics, atomic float, etc.☆184Updated 3 weeks ago
- Utilities for working with impl traits in Rust.☆108Updated 3 months ago
- A library for to allow multiple return types by automatically generated enum.☆366Updated last month
- Make trait methods callable without the trait in scope☆136Updated 2 months ago
- A Cargo subcommand to build and test all feature flag combinations.☆154Updated last year
- A fast, concurrent string interner☆150Updated 8 months ago
- Bisects rustc, either nightlies or CI artifacts☆183Updated 3 weeks ago
- Type that deserializes only from one specific value☆231Updated 2 months ago
- Lazy formatting utility macro for rust☆127Updated last year
- Safe-to-use proc-macro-free self-referential structs in stable Rust.☆262Updated 3 weeks ago
- Cross-platform atomic wait and wake (aka futex) functionality for Rust.☆126Updated 10 months ago
- Pull in every source file in a directory as a module☆172Updated 2 months ago
- Better reference counted strings for Rust☆124Updated 9 months ago
- ☆98Updated 2 months ago
- Migrated to Codeberg☆79Updated last year
- Extract documentation for the feature flags from comments in Cargo.toml☆178Updated last month