pub struct ElfBuildId(pub Vec<u8>);Expand description
The build ID for an ELF file (also called “GNU build ID”).
The build ID can be used to find debug files on the local file system or to download
binaries or debug files from a debuginfod symbol server. it does not have to be
paired with the binary name.
Tuple Fields§
§0: Vec<u8>Implementations§
Source§impl ElfBuildId
impl ElfBuildId
Sourcepub fn from_bytes(bytes: &[u8]) -> Self
pub fn from_bytes(bytes: &[u8]) -> Self
Create a new ElfBuildId from a slice of bytes (commonly a sha1 hash
generated by the linker, i.e. 20 bytes).
Trait Implementations§
Source§impl Clone for ElfBuildId
impl Clone for ElfBuildId
Source§fn clone(&self) -> ElfBuildId
fn clone(&self) -> ElfBuildId
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElfBuildId
impl Debug for ElfBuildId
Source§impl Display for ElfBuildId
impl Display for ElfBuildId
Source§impl FromStr for ElfBuildId
impl FromStr for ElfBuildId
Source§impl Hash for ElfBuildId
impl Hash for ElfBuildId
Source§impl Ord for ElfBuildId
impl Ord for ElfBuildId
Source§fn cmp(&self, other: &ElfBuildId) -> Ordering
fn cmp(&self, other: &ElfBuildId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ElfBuildId
impl PartialEq for ElfBuildId
Source§impl PartialOrd for ElfBuildId
impl PartialOrd for ElfBuildId
impl Eq for ElfBuildId
impl StructuralPartialEq for ElfBuildId
Auto Trait Implementations§
impl Freeze for ElfBuildId
impl RefUnwindSafe for ElfBuildId
impl Send for ElfBuildId
impl Sync for ElfBuildId
impl Unpin for ElfBuildId
impl UnwindSafe for ElfBuildId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more