[][src]Trait walrus::CustomSectionId

pub trait CustomSectionId {
    type CustomSection: ?Sized;
}

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.

Associated Types

type CustomSection: ?Sized

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

Loading content...

Implementors

Loading content...