[−][src]Trait walrus::CustomSectionId
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
.
Implementors
impl CustomSectionId for UntypedCustomSectionId
[src]
type CustomSection = dyn CustomSection
fn into_inner_id(self) -> Id<Option<Box<dyn CustomSection>>>
[src]
fn section(s: &dyn CustomSection) -> Option<&dyn CustomSection>
[src]
fn section_mut(s: &mut dyn CustomSection) -> Option<&mut dyn CustomSection>
[src]
fn section_box(s: Box<dyn CustomSection>) -> Option<Box<dyn CustomSection>>
[src]
impl<T> CustomSectionId for TypedCustomSectionId<T> where
T: CustomSection,
[src]
T: CustomSection,