Trait multiboot2_common::Tag

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

    const ID: Self::IDType;
}
Expand description

Extension of MaybeDynSized for Tags.

Required Associated Types§

source

type IDType: PartialEq + Eq

The ID type that identifies the tag.

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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Tag for DummyDstTag

§

type IDType = u32

source§

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