Registry / utility / pi-any

pi-any

JSON →
library0.1.1rscratesunverified

Attempt to downcast a trait object to a concrete type using Any-like functionality.

# Cargo.toml [dependencies] pi_any = "0.1.1"
INSTALL
IMPORT
SIG · PI-ANY
P
pi-any
utilityrustv0.1.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Any
use pi_any::Any;

Downcast a trait object to a concrete type

use pi_any::Any; fn main() { let value: Box<dyn Any> = Box::new(42u32); if let Some(num) = value.downcast_ref::<u32>() { println!("Downcasted: {}", num); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
pi-any — cargo add pi-any · libregistry