pub trait DebugIdExt {
// Required methods
fn from_identifier(identifier: &[u8], little_endian: bool) -> Self;
fn from_text_first_page(text_first_page: &[u8], little_endian: bool) -> Self;
}Required Methods§
Sourcefn from_identifier(identifier: &[u8], little_endian: bool) -> Self
fn from_identifier(identifier: &[u8], little_endian: bool) -> Self
Creates a DebugId from some identifier. The identifier could be
an ELF build ID, or a hash derived from the text section.
The little_endian argument specifies whether the object file
is targeting a little endian architecture.
Sourcefn from_text_first_page(text_first_page: &[u8], little_endian: bool) -> Self
fn from_text_first_page(text_first_page: &[u8], little_endian: bool) -> Self
Creates a DebugId from a hash of the first 4096 bytes of the .text section.
The little_endian argument specifies whether the object file
is targeting a little endian architecture.
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.