Trait Tag

Source
pub trait Tag: MaybeDynSized {
    type IDType: PartialEq + Eq;

    const ID: Self::IDType;
}
Expand description

Extension of MaybeDynSized for Tags.

Required Associated Constants§

Source

const ID: Self::IDType

The ID of this tag. This should be unique across all implementors.

Although the ID is not yet used in multiboot2-common, it ensures a consistent API in consumer crates.

Required Associated Types§

Source

type IDType: PartialEq + Eq

The ID type that identifies the tag.

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§

Source§

impl Tag for DummyDstTag

Source§

const ID: Self::IDType = {transmute(0x0000002a): <test_utils::DummyDstTag as tag::Tag>::IDType}

Source§

type IDType = u32