Closed mdg closed 7 years ago
Is it possible to downcast an owned boxed value instead of a ref?
Something like:
let p: Box<Person> = person_alice; let alice: Option<Box<Alice>> = Mopa.downcast_box::<Alice>(p);
p.downcast::<Alice>() will get you an Result<Box<Alice>, Box<Person>>.
p.downcast::<Alice>()
Result<Box<Alice>, Box<Person>>
Is it possible to downcast an owned boxed value instead of a ref?
Something like: