#[non_exhaustive]pub struct Header<'data> {
pub version: GsymVersion,
pub endian: Endian,
pub address_offset_size: u8,
pub base_address: u64,
pub address_count: u32,
pub build_id: &'data [u8],
}Expand description
Borrowed metadata from a parsed GSYM header.
The fields are normalized across versions, so the same struct describes a v1 and a v2 file.
Returned by Gsym::header.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.version: GsymVersionFormat version.
endian: EndianByte order used for fixed-width integers.
address_offset_size: u8Width in bytes of each address-table entry.
base_address: u64Base address added to every address-table entry.
address_count: u32Number of functions in the file.
build_id: &'data [u8]Opaque build identifier borrowed from the input.
Trait Implementations§
impl<'data> Copy for Header<'data>
impl<'data> Eq for Header<'data>
impl<'data> StructuralPartialEq for Header<'data>
Auto Trait Implementations§
impl<'data> Freeze for Header<'data>
impl<'data> RefUnwindSafe for Header<'data>
impl<'data> Send for Header<'data>
impl<'data> Sync for Header<'data>
impl<'data> Unpin for Header<'data>
impl<'data> UnsafeUnpin for Header<'data>
impl<'data> UnwindSafe for Header<'data>
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