dtolnay / ref-castLinks
Safely cast &T to &U where the struct U contains a single field of type T.
☆215Updated 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
Sorting:
- Safe, zero-cost downcasting for limited compile-time specialization.☆178Updated 5 months ago
- Macro to repeat sequentially indexed copies of a fragment of code☆160Updated 3 weeks ago
- Fork of std::Arc with lots of utilities useful for FFI☆274Updated last week
- A procedure macro to unify SYNC and ASYNC implementation for downstream application/crates☆171Updated last year
- A scope for async_std and tokio to spawn non-static futures☆155Updated last year
- Graph the number of crates that depend on your crate over time☆256Updated 3 weeks ago
- Conditional compilation using boolean expression syntax, rather than any(), all(), not()☆291Updated 3 years ago
- Compile-time string formatting☆258Updated 3 months ago
- A library for to allow multiple return types by automatically generated enum.☆373Updated last month
- Better reference counted strings for Rust☆139Updated last year
- Define your own PhantomData☆158Updated 3 weeks ago
- Make trait methods callable without the trait in scope☆161Updated 3 weeks ago
- Statically-checked alternatives to RefCell and RwLock☆385Updated 3 months ago
- Safe-to-use proc-macro-free self-referential structs in stable Rust.☆291Updated last week
- Struct fields that are made read-only accessible to other modules☆262Updated 3 weeks ago
- Utilities for working with impl traits in Rust.☆118Updated 11 months ago
- This crate offers procedural macros designed to facilitate the swift implementation of Rust's built-in traits.☆152Updated last month
- Cross-platform atomic wait and wake (aka futex) functionality for Rust.☆139Updated 7 months ago
- Portable atomic types including support for 128-bit atomics, atomic float, etc.☆215Updated this week
- Compile-time string operations☆114Updated last week
- A lightweight version of pin-project written with declarative macros.☆263Updated 3 weeks ago
- "A very small syn"☆212Updated 11 months ago
- Utility wrapper to send non send types to other threads safely☆185Updated 9 months ago
- Easy function multiversioning for Rust☆251Updated last year
- Conditional compilation according to rustc compiler version☆390Updated 3 weeks ago
- Lazy formatting utility macro for rust☆129Updated 2 years ago
- Delegation of trait implementations via procedural macros☆279Updated 3 weeks ago
- Procedural macro to implement Display and FromStr using common settings.☆191Updated 3 weeks ago
- Manual segmented stacks for Rust☆330Updated last week
- A fast, concurrent string interner☆162Updated last year