#[non_exhaustive]pub struct GsymSegment {
pub first_address: u64,
pub end_address: u64,
pub function_count: usize,
/* private fields */
}Expand description
One independently readable shard of a segmented GSYM image.
Each segment is a complete GSYM file that Gsym::parse
accepts on its own, holding a contiguous span of the source file’s functions
and only the source files those functions reference. The address fields let
a consumer pick the right shard for an address without opening it.
Produced by DecodedGsym::segments.
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.first_address: u64Lowest function start address in this segment.
end_address: u64Exclusive end of this segment’s span, equal to the next segment’s
first_address.
function_count: usizeNumber of top-level functions in this segment.
Implementations§
Trait Implementations§
Source§impl Debug for GsymSegment
impl Debug for GsymSegment
impl Eq for GsymSegment
Source§impl PartialEq for GsymSegment
impl PartialEq for GsymSegment
impl StructuralPartialEq for GsymSegment
Auto Trait Implementations§
impl Freeze for GsymSegment
impl RefUnwindSafe for GsymSegment
impl Send for GsymSegment
impl Sync for GsymSegment
impl Unpin for GsymSegment
impl UnsafeUnpin for GsymSegment
impl UnwindSafe for GsymSegment
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