dtolnay / ref-cast
Safely cast &T to &U where the struct U contains a single field of type T.
☆199Updated last week
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.☆156Updated last week
- Conditional compilation using boolean expression syntax, rather than any(), all(), not()☆294Updated 2 years ago
- Graph the number of crates that depend on your crate over time☆237Updated last week
- Macro to repeat sequentially indexed copies of a fragment of code☆148Updated last week
- Safe-to-use proc-macro-free self-referential structs in stable Rust.☆258Updated 3 months ago
- A scope for async_std and tokio to spawn non-static futures☆126Updated 9 months ago
- Define your own PhantomData☆151Updated last week
- Fork of std::Arc with lots of utilities useful for FFI☆228Updated last month
- Cross-platform atomic wait and wake (aka futex) functionality for Rust.☆120Updated 8 months ago
- A procedure macro to unify SYNC and ASYNC implementation for downstream application/crates☆150Updated last year
- Compile-time string formatting☆232Updated 3 months ago
- A lightweight version of pin-project written with declarative macros.☆239Updated this week
- Portable atomic types including support for 128-bit atomics, atomic float, etc.☆176Updated this week
- Extract documentation for the feature flags from comments in Cargo.toml☆177Updated 3 weeks ago
- Better reference counted strings for Rust☆118Updated 7 months ago
- A library for to allow multiple return types by automatically generated enum.☆358Updated this week
- "A very small syn"☆201Updated last month
- Conditional compilation according to rustc compiler version☆349Updated last week
- Utilities for working with impl traits in Rust.☆103Updated last month
- Struct fields that are made read-only accessible to other modules☆234Updated last week
- Statically-checked alternatives to RefCell and RwLock☆368Updated 8 months ago
- Async synchronization primitives☆261Updated last month
- An experimental linting interface for Rust. Let's make custom lints a reality☆149Updated last year
- Type that deserializes only from one specific value☆231Updated last week
- Make trait methods callable without the trait in scope☆135Updated last week
- Serialize and deserialize C-like enum as underlying repr☆237Updated last week
- Compile-time string operations☆90Updated 3 weeks ago
- ☆180Updated last week
- Determine whether characters have the XID_Start or XID_Continue properties☆89Updated last week
- Minimal asynchronous runtime for Rust☆127Updated 7 months ago