Trait gear_core::ids::prelude::CodeIdExt

source ·
pub trait CodeIdExt: Sealed {
    // Required method
    fn generate(code: &[u8]) -> Self;
}
Expand description

Code identifier extension.

Required Methods§

source

fn generate(code: &[u8]) -> Self

Generates CodeId from given code.

Object Safety§

This trait is not object safe.

Implementors§