dtolnay / ref-castLinks
Safely cast &T to &U where the struct U contains a single field of type T.
☆212Updated last week
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.☆167Updated last week
- Fork of std::Arc with lots of utilities useful for FFI☆248Updated 2 months ago
- Macro to repeat sequentially indexed copies of a fragment of code☆157Updated last week
- Conditional compilation using boolean expression syntax, rather than any(), all(), not()☆292Updated 2 years ago
- A procedure macro to unify SYNC and ASYNC implementation for downstream application/crates☆160Updated last year
- Better reference counted strings for Rust☆134Updated last year
- A scope for async_std and tokio to spawn non-static futures☆143Updated last year
- Compile-time string formatting☆240Updated 8 months ago
- A library for to allow multiple return types by automatically generated enum.☆373Updated this week
- Statically-checked alternatives to RefCell and RwLock☆370Updated last year
- Graph the number of crates that depend on your crate over time☆251Updated last week
- Define your own PhantomData☆156Updated last week
- Portable atomic types including support for 128-bit atomics, atomic float, etc.☆199Updated last month
- Struct fields that are made read-only accessible to other modules☆253Updated last week
- Safe-to-use proc-macro-free self-referential structs in stable Rust.☆269Updated 4 months ago
- Cross-platform atomic wait and wake (aka futex) functionality for Rust.☆129Updated 2 months ago
- Utility wrapper to send non send types to other threads safely☆184Updated 4 months ago
- A lightweight version of pin-project written with declarative macros.☆252Updated 2 weeks ago
- Lazy formatting utility macro for rust☆128Updated last year
- Utilities for working with impl traits in Rust.☆112Updated 6 months ago
- Make trait methods callable without the trait in scope☆152Updated last week
- Conditional compilation according to rustc compiler version☆375Updated last week
- Manual segmented stacks for Rust☆318Updated 3 months ago
- Delegation of trait implementations via procedural macros☆271Updated last year
- This crate offers procedural macros designed to facilitate the swift implementation of Rust's built-in traits.☆149Updated last week
- "A very small syn"☆209Updated 6 months ago
- Cargo extension for running Criterion.rs benchmarks☆202Updated 3 months ago
- ☆216Updated last week
- Serialize and deserialize C-like enum as underlying repr☆249Updated last week
- Append-only collections for Rust where borrows to entries can outlive insertions☆255Updated last month