Trait perseus::state::AnyFreeze

source ·
pub trait AnyFreeze: Freeze + Any {
    // Required method
    fn as_any(&self) -> &dyn Any;
}
Expand description

A convenience super-trait for Freezeable things that can be downcast to concrete types.

Required Methods§

source

fn as_any(&self) -> &dyn Any

Gives &dyn Any to enable downcasting.

Trait Implementations§

source§

impl Debug for dyn AnyFreeze + 'static

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§

source§

impl<T: Any + Freeze> AnyFreeze for T