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.☆174Updated 2 months ago
- Macro to repeat sequentially indexed copies of a fragment of code☆159Updated last month
- Conditional compilation using boolean expression syntax, rather than any(), all(), not()☆291Updated 2 years ago
- A procedure macro to unify SYNC and ASYNC implementation for downstream application/crates☆166Updated last year
- A scope for async_std and tokio to spawn non-static futures☆148Updated last year
- Fork of std::Arc with lots of utilities useful for FFI☆258Updated 2 weeks ago
- A library for to allow multiple return types by automatically generated enum.☆372Updated last week
- Define your own PhantomData☆158Updated last month
- Graph the number of crates that depend on your crate over time☆253Updated last month
- Better reference counted strings for Rust☆137Updated last year
- Compile-time string formatting☆243Updated 2 weeks ago
- Safe-to-use proc-macro-free self-referential structs in stable Rust.☆278Updated 2 months ago
- A lightweight version of pin-project written with declarative macros.☆257Updated last month
- Struct fields that are made read-only accessible to other modules☆258Updated last month
- Statically-checked alternatives to RefCell and RwLock☆380Updated last month
- Utility wrapper to send non send types to other threads safely☆188Updated 6 months ago
- Utilities for working with impl traits in Rust.☆116Updated 8 months ago
- Make trait methods callable without the trait in scope☆159Updated last month
- Pull in every source file in a directory as a module☆179Updated 3 weeks ago
- Portable atomic types including support for 128-bit atomics, atomic float, etc.☆204Updated 3 weeks ago
- This crate offers procedural macros designed to facilitate the swift implementation of Rust's built-in traits.☆151Updated 2 months ago
- "A very small syn"☆209Updated 8 months ago
- Lazy formatting utility macro for rust☆129Updated last year
- Compatibility adapter between tokio and futures☆184Updated last month
- Cross-platform atomic wait and wake (aka futex) functionality for Rust.☆135Updated 4 months ago
- Conditional compilation according to rustc compiler version☆385Updated last month
- Const equivalents of std functions, compile-time comparison, and parsing.☆106Updated last month
- An experimental linting interface for Rust. Let's make custom lints a reality☆148Updated last year
- ☆226Updated 2 months ago
- Bisects rustc, either nightlies or CI artifacts☆192Updated last week