# dtolnay/ref-cast

<https://repo.masters-masters.com/en/repos/dtolnay/ref-cast>

[Home](https://repo.masters-masters.com/en) › [dtolnay](https://repo.masters-masters.com/en/owners/dtolnay) › [ref-cast](https://repo.masters-masters.com/en/repos/dtolnay/ref-cast)

dtolnay/ref-cast has 229 stars on GitHub. Its RepoMasters card: Prototype tier. Safely cast &T to &U where the struct U contains a single field of type T.

| Field | Value |
| --- | --- |
| Owner | [dtolnay](https://repo.masters-masters.com/en/owners/dtolnay) |
| Stars | 229 |
| Forks | 20 |
| Language | [Rust](https://repo.masters-masters.com/en/languages/rust) |
| License | Apache-2.0 |
| Created | 2017 |
| Tier | [Prototype (100 to 249 ★)](https://repo.masters-masters.com/en/ranks/rush) |
| View on GitHub | [dtolnay/ref-cast](https://github.com/dtolnay/ref-cast) |

## Repository

Safely cast &T to &U where the struct U contains a single field of type T.

The tier for repos with 100 to 249 ★. Published odds per card pulled: 70%. Rarity: Common.

## More repos by dtolnay

- [dtolnay/cxx · ★ 6,858 · Rust · Stable](https://repo.masters-masters.com/en/repos/dtolnay/cxx)
- [dtolnay/anyhow · ★ 6,693 · Rust · Stable](https://repo.masters-masters.com/en/repos/dtolnay/anyhow)
- [dtolnay/thiserror · ★ 5,586 · Rust · Stable](https://repo.masters-masters.com/en/repos/dtolnay/thiserror)
- [dtolnay/proc-macro-workshop · ★ 4,873 · Rust · RC](https://repo.masters-masters.com/en/repos/dtolnay/proc-macro-workshop)
- [dtolnay/syn · ★ 3,438 · Rust · RC](https://repo.masters-masters.com/en/repos/dtolnay/syn)
- [dtolnay/cargo-expand · ★ 3,140 · Rust · RC](https://repo.masters-masters.com/en/repos/dtolnay/cargo-expand)

## Nearby in Rust

- [unhappychoice/splashboard · ★ 229 · Rust · Prototype](https://repo.masters-masters.com/en/repos/unhappychoice/splashboard)
- [RoversX/ThinkTerm · ★ 229 · Rust · Prototype](https://repo.masters-masters.com/en/repos/RoversX/ThinkTerm)
- [ctdoteam1110/ctdozlite · ★ 229 · Rust · Prototype](https://repo.masters-masters.com/en/repos/ctdoteam1110/ctdozlite)
- [kubo/rust-oracle · ★ 229 · Rust · Prototype](https://repo.masters-masters.com/en/repos/kubo/rust-oracle)
- [openethereum/pwasm-tutorial · ★ 229 · Rust · Prototype](https://repo.masters-masters.com/en/repos/openethereum/pwasm-tutorial)
- [atlasr-org/atlasr · ★ 229 · Rust · Prototype](https://repo.masters-masters.com/en/repos/atlasr-org/atlasr)

---
Data: GitHub · Illustration drawn by RepoMasters from the repo’s ID and its language color.
