Trait BlocksRegistrar
pub trait BlocksRegistrar {
// Required methods
fn block_key(&mut self, id: &str) -> BlockKey;
fn attach_block_part(
&mut self,
block: BlockKey,
kind: &'static str,
part: Arc<dyn BlockPart>,
);
fn attach_block_part_tag(
&mut self,
tag: &str,
kind: &'static str,
part: Arc<dyn BlockPart>,
);
}Expand description
Registrar operations for blocks.
Required Methods§
fn block_key(&mut self, id: &str) -> BlockKey
fn block_key(&mut self, id: &str) -> BlockKey
Request a block by canonical registry id. All mods’ declarations are checked at load.
fn attach_block_part(
&mut self,
block: BlockKey,
kind: &'static str,
part: Arc<dyn BlockPart>,
)
fn attach_block_part( &mut self, block: BlockKey, kind: &'static str, part: Arc<dyn BlockPart>, )
Attach part, of kind kind (its type’s name), to block block.
fn attach_block_part_tag(
&mut self,
tag: &str,
kind: &'static str,
part: Arc<dyn BlockPart>,
)
fn attach_block_part_tag( &mut self, tag: &str, kind: &'static str, part: Arc<dyn BlockPart>, )
Attach part, of kind kind, to every block in tag tag.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".