dtolnay / ref-cast
Safely cast &T to &U where the struct U contains a single field of type T.
☆200Updated last month
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.☆158Updated last month
- Graph the number of crates that depend on your crate over time☆237Updated this week
- Macro to repeat sequentially indexed copies of a fragment of code☆154Updated last month
- Conditional compilation using boolean expression syntax, rather than any(), all(), not()☆294Updated 2 years ago
- Better reference counted strings for Rust☆120Updated 8 months ago
- A lightweight version of pin-project written with declarative macros.☆244Updated 3 weeks ago
- Conditional compilation according to rustc compiler version☆351Updated last month
- Fork of std::Arc with lots of utilities useful for FFI☆231Updated 2 months ago
- A library for to allow multiple return types by automatically generated enum.☆364Updated 3 weeks ago
- A procedure macro to unify SYNC and ASYNC implementation for downstream application/crates☆151Updated last year
- Compile-time string formatting☆236Updated 4 months ago
- "A very small syn"☆202Updated 2 months ago
- A scope for async_std and tokio to spawn non-static futures☆131Updated 10 months ago
- ☆197Updated 3 months ago
- Utilities for working with impl traits in Rust.☆107Updated 2 months ago
- Define your own PhantomData☆152Updated last month
- Struct fields that are made read-only accessible to other modules☆241Updated last month
- Async synchronization primitives☆263Updated last week
- Statically-checked alternatives to RefCell and RwLock☆368Updated 9 months ago
- Serialize and deserialize C-like enum as underlying repr☆239Updated last month
- A fast and flexible LRU map.☆181Updated 3 months ago
- Pull in every source file in a directory as a module☆171Updated last month
- Cross-platform atomic wait and wake (aka futex) functionality for Rust.☆125Updated 9 months ago
- A tiny utility to help save you a lot of effort with long winded `#[cfg()]` checks in Rust.☆78Updated 2 months ago
- Compile-time string operations☆90Updated last month
- Utility wrapper to send non send types to other threads safely☆179Updated 2 weeks ago
- Make trait methods callable without the trait in scope☆136Updated last month
- Allocation-free data structures that make do with the memory they're given☆145Updated 3 years ago
- This crate offers procedural macros designed to facilitate the swift implementation of Rust's built-in traits.☆141Updated 8 months ago
- Procedural macro to implement Display and FromStr using common settings.☆184Updated last month