{"id":59316,"library":"mopa","title":"mopa","description":"My Own Personal Any: provides a custom Any trait with additional functionality like downcasting.","status":"active","version":"0.2.2","language":"rust","source_language":null,"source_url":"https://github.com/chris-morgan/mopa","tags":["any","downcast","type-erasure"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nmopa = \"0.2.2\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add mopa","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Any","correct":"use mopa::Any;"}],"quickstart":{"code":"use mopa::Any;\n\nfn main() {\n    let value: Box<dyn Any> = Box::new(42u32);\n    if let Some(num) = value.downcast_ref::<u32>() {\n        println!(\"Number: {}\", num);\n    }\n}","lang":"rust","description":"Downcasts a boxed trait object to a concrete type."},"warnings":[{"fix":"Consider using std::any::Any directly unless you need extra features.","message":"This crate is largely superseded by std::any::Any in modern Rust.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'addit':12 'custom':8 'downcast':15,17 'erasur':20 'function':13 'like':14 'mopa':1 'person':4 'provid':6 'trait':10 'type':19 'type-erasur':18","created_at":"2026-06-16T16:58:41.333927+00:00","updated_at":"2026-06-16T16:58:41.333927+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/chris-morgan/mopa","github":"https://github.com/chris-morgan/mopa","docs":"https://docs.rs/mopa/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}