gear_core::ids::prelude

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§