referrerpolicy=no-referrer-when-downgrade

Trait sc_chain_spec::GetExtension

source ·
pub trait GetExtension {
    // Required methods
    fn get_any(&self, t: TypeId) -> &dyn Any;
    fn get_any_mut(&mut self, t: TypeId) -> &mut dyn Any;
}
Expand description

A subset of the Extension trait that only allows for querying extensions.

Required Methods§

source

fn get_any(&self, t: TypeId) -> &dyn Any

Get an extension of specific type.

source

fn get_any_mut(&mut self, t: TypeId) -> &mut dyn Any

Get an extension of specific type with mutable access.

Implementors§