dtolnay / ref-castLinks
Safely cast &T to &U where the struct U contains a single field of type T.
☆214Updated 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.☆172Updated last month
- Macro to repeat sequentially indexed copies of a fragment of code☆159Updated last week
- A scope for async_std and tokio to spawn non-static futures☆146Updated last year
- Fork of std::Arc with lots of utilities useful for FFI☆256Updated 2 weeks ago
- Conditional compilation using boolean expression syntax, rather than any(), all(), not()☆292Updated 2 years ago
- Better reference counted strings for Rust☆136Updated last year
- A procedure macro to unify SYNC and ASYNC implementation for downstream application/crates☆165Updated last year
- Safe-to-use proc-macro-free self-referential structs in stable Rust.☆274Updated last month
- Graph the number of crates that depend on your crate over time☆252Updated 2 weeks ago
- Make trait methods callable without the trait in scope☆157Updated last week
- A library for to allow multiple return types by automatically generated enum.☆373Updated last month
- Compile-time string formatting☆243Updated 9 months ago
- Define your own PhantomData☆158Updated last week
- Cross-platform atomic wait and wake (aka futex) functionality for Rust.☆129Updated 3 months ago
- Statically-checked alternatives to RefCell and RwLock☆373Updated 2 weeks ago
- Utility wrapper to send non send types to other threads safely☆188Updated 6 months ago
- Portable atomic types including support for 128-bit atomics, atomic float, etc.☆201Updated 2 weeks ago
- Struct fields that are made read-only accessible to other modules☆258Updated last week
- A lightweight version of pin-project written with declarative macros.☆255Updated last month
- Lazy formatting utility macro for rust☆129Updated last year
- Manual segmented stacks for Rust☆319Updated 5 months ago
- This crate offers procedural macros designed to facilitate the swift implementation of Rust's built-in traits.☆150Updated last month
- "A very small syn"☆209Updated 8 months ago
- Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.☆112Updated 4 months ago
- Pull in every source file in a directory as a module☆177Updated 2 weeks ago
- assert!() and check!() macros for Rust, inspired by Catch2, now with diffs!☆110Updated last month
- Utilities for working with impl traits in Rust.☆115Updated 8 months ago
- ☆223Updated last month
- Compile-time string operations☆104Updated last week
- Append-only collections for Rust where borrows to entries can outlive insertions☆259Updated 2 months ago