pub trait TemplateReloadStaged: Send {
// Required method
fn into_any(self: Box<Self>) -> Box<dyn Any>;
}Expand description
Erased staged-set marker with an owned-downcast accessor.
Box<dyn TemplateReloadStaged> has no inherent downcast; into_any
returns Box<dyn Any>, which does. This is the standard object-downcast
idiom: a concrete staged type T impls into_any by returning self
(Box<T> coerces to Box<dyn Any> when T: 'static). Consumers then call
staged.into_any().downcast::<T>().
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".