[go: up one dir, main page]

ref-cast 1.0.17

Safely cast &T to &U where the struct U contains a single field of type T.
Documentation
[dependencies.ref-cast-impl]
version = "=1.0.17"
[dev-dependencies.ref-cast-test-suite]
version = "0"

[dev-dependencies.rustversion]
version = "1.0"

[dev-dependencies.trybuild]
features = ["diff"]
version = "1.0.52"

[lib]
doc-scrape-examples = false

[package]
authors = ["David Tolnay <dtolnay@gmail.com>"]
categories = ["rust-patterns", "no-std", "no-std::no-alloc"]
description = "Safely cast &T to &U where the struct U contains a single field of type T."
documentation = "https://docs.rs/ref-cast"
edition = "2018"
license = "MIT OR Apache-2.0"
name = "ref-cast"
readme = "README.md"
repository = "https://github.com/dtolnay/ref-cast"
rust-version = "1.56"
version = "1.0.17"
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]