pub trait CustomSectionLike<'a> {
type Relocations: RelocationLike;
// Required methods
fn protection(&self) -> CustomSectionProtection;
fn alignment(&self) -> Option<u64>;
fn bytes(&self) -> &[u8] ⓘ;
fn relocations(&'a self) -> &'a [Self::Relocations];
}Available on crate features
core or std only.Expand description
Any struct that acts like a CustomSection.
Required Associated Types§
Required Methods§
fn protection(&self) -> CustomSectionProtection
fn alignment(&self) -> Option<u64>
fn bytes(&self) -> &[u8] ⓘ
fn relocations(&'a self) -> &'a [Self::Relocations]
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".