ArchitectureRelocationEncoding

Trait ArchitectureRelocationEncoding 

Source
pub trait ArchitectureRelocationEncoding:
    Clone
    + Copy
    + Debug {
    // Required method
    fn decode(code: u8) -> Self;
}
Expand description

Trait that just handles the internal decoding of architecture-specific relocation encodings This is useful so the relocation type machinery can be generic over it.

Required Methods§

Source

fn decode(code: u8) -> Self

decodes this custom relocation encoding from the bitfield in the relocation code

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§