Trait gclient::ext::sp_runtime::scale_info::StaticTypeInfo

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

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

§Note

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.

Implementors§

§

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