as_any_min
This is a very minimal crate that makes it easier to work
with traits that implement Any
by allowing you to easily
upcast to it.
Example
use Any;
use AsAny;
;
/* Note that AsAny is automatically implemented for all
structs that implement Any, so there is no need to
implement it manually (in fact it won't compile if
you try to) */
Without Using AsAny
Since rust doesn't (currently) have any built in way to
upcast from a trait object to another trait (such as Any
),
this won't compile.
use Any;
;
License: MIT