pub trait StaticTypeInfo: TypeInfo + 'static { }
Expand description

Convenience trait for implementors, combining TypeInfo and 'static bounds.


Currently because of the 'static constraint on std::any::TypeId::of (see MetaType), TypeInfo constraints must also be accompanied by a 'static bound. This trait is useful to implementors so only a single constraint is required.

Object Safety§

This trait is not object safe.



impl<T> StaticTypeInfo for T
where T: TypeInfo + 'static,