Skip to main content

TemplateReloadStaged

Trait TemplateReloadStaged 

Source
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§

Source

fn into_any(self: Box<Self>) -> Box<dyn Any>

Convert this boxed trait object into a Box<dyn Any> for downcasting.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§