pub trait CustomSectionId {
    type CustomSection: ?Sized;
}
Expand description

A common trait for custom section identifiers.

Used in the ModuleCustomSections::get family of methods to perform type conversions from dyn CustomSection trait objects into the concrete Self::CustomSection type instance.

You shouldn’t implement this yourself. Instead use TypedCustomSectionId<T> or UntypedCustomSectionId.

Required Associated Types§

source

type CustomSection: ?Sized

The concrete custom section type that this id gets out of a ModuleCustomSections.

Object Safety§

This trait is not object safe.

Implementors§