Struct symbolic_debuginfo::FatObject
source · pub struct FatObject<'bytes> { /* private fields */ }
Expand description
Represents a potentially fat object containing one or more objects.
Implementations
sourceimpl<'bytes> FatObject<'bytes>
impl<'bytes> FatObject<'bytes>
sourcepub fn peek<B>(bytes: B) -> Result<Option<ObjectKind>, ObjectError>where
B: AsRef<[u8]>,
pub fn peek<B>(bytes: B) -> Result<Option<ObjectKind>, ObjectError>where
B: AsRef<[u8]>,
Returns the type of the FatObject.
sourcepub fn parse(
byteview: ByteView<'bytes>
) -> Result<FatObject<'bytes>, ObjectError>
pub fn parse(
byteview: ByteView<'bytes>
) -> Result<FatObject<'bytes>, ObjectError>
Provides a view to an object file from a ByteView
.
sourcepub fn kind(&self) -> ObjectKind
pub fn kind(&self) -> ObjectKind
Returns the kind of this FatObject
.
sourcepub fn object_count(&self) -> usize
pub fn object_count(&self) -> usize
Returns the number of contained objects.
sourcepub fn get_object(
&'bytes self,
index: usize
) -> Result<Option<Object<'bytes>>, ObjectError>
pub fn get_object(
&'bytes self,
index: usize
) -> Result<Option<Object<'bytes>>, ObjectError>
Returns the n-th object.
Trait Implementations
sourceimpl<'data> BreakpadData for FatObject<'data>
impl<'data> BreakpadData for FatObject<'data>
sourcefn has_breakpad_data(&self) -> bool
fn has_breakpad_data(&self) -> bool
Determines whether this
Object
contains Breakpad debugging information.sourcefn breakpad_records(&self) -> BreakpadRecords<'_>ⓘ
fn breakpad_records(&self) -> BreakpadRecords<'_>ⓘ
Returns an iterator over all records of the Breakpad symbol file.
Auto Trait Implementations
impl<'bytes> RefUnwindSafe for FatObject<'bytes>
impl<'bytes> Send for FatObject<'bytes>
impl<'bytes> Sync for FatObject<'bytes>
impl<'bytes> Unpin for FatObject<'bytes>
impl<'bytes> UnwindSafe for FatObject<'bytes>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more