dtolnay / ref-castLinks
Safely cast &T to &U where the struct U contains a single field of type T.
☆216Updated 2 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.☆180Updated 5 months ago
- Macro to repeat sequentially indexed copies of a fragment of code☆162Updated last month
- A procedure macro to unify SYNC and ASYNC implementation for downstream application/crates☆173Updated last year
- Fork of std::Arc with lots of utilities useful for FFI☆278Updated 2 weeks ago
- Define your own PhantomData☆158Updated last month
- Graph the number of crates that depend on your crate over time☆256Updated this week
- Make trait methods callable without the trait in scope☆162Updated last month
- Better reference counted strings for Rust☆140Updated last year
- Conditional compilation using boolean expression syntax, rather than any(), all(), not()☆290Updated 3 years ago
- A scope for async_std and tokio to spawn non-static futures☆155Updated last year
- Compile-time string formatting☆262Updated 4 months ago
- Statically-checked alternatives to RefCell and RwLock☆387Updated 4 months ago
- A library for to allow multiple return types by automatically generated enum.☆374Updated 3 weeks ago
- Portable atomic types including support for 128-bit atomics, atomic float, etc.☆221Updated this week
- Safe-to-use proc-macro-free self-referential structs in stable Rust.☆293Updated last month
- This crate offers procedural macros designed to facilitate the swift implementation of Rust's built-in traits.☆152Updated 2 months ago
- Utilities for working with impl traits in Rust.☆121Updated last year
- Utility wrapper to send non send types to other threads safely☆186Updated 10 months ago
- Cross-platform atomic wait and wake (aka futex) functionality for Rust.☆140Updated 8 months ago
- Lazy formatting utility macro for rust☆129Updated 2 years ago
- A lightweight version of pin-project written with declarative macros.☆270Updated 3 weeks ago
- Struct fields that are made read-only accessible to other modules☆263Updated last month
- An experimental linting interface for Rust. Let's make custom lints a reality☆149Updated 2 years ago
- Conditional compilation according to rustc compiler version☆389Updated last month
- Compile-time string operations☆115Updated last week
- Cargo extension for running Criterion.rs benchmarks☆209Updated 8 months ago
- Pull in every source file in a directory as a module☆181Updated 3 weeks ago
- "A very small syn"☆212Updated last year
- Procedural macro to implement Display and FromStr using common settings.☆191Updated last month
- FFI-compatible futures☆171Updated 4 months ago