Struct symbolic_debuginfo::FatObject [−][src]
pub struct FatObject<'bytes> { /* fields omitted */ }
Represents a potentially fat object containing one or more objects.
Methods
impl<'bytes> FatObject<'bytes>
[src]
impl<'bytes> FatObject<'bytes>
pub fn peek<B>(bytes: B) -> Result<Option<ObjectKind>, ObjectError> where
B: AsRef<[u8]>,
[src]
pub fn peek<B>(bytes: B) -> Result<Option<ObjectKind>, ObjectError> where
B: AsRef<[u8]>,
Returns the type of the FatObject.
pub fn parse(
byteview: ByteView<'bytes>
) -> Result<FatObject<'bytes>, ObjectError>
[src]
pub fn parse(
byteview: ByteView<'bytes>
) -> Result<FatObject<'bytes>, ObjectError>
Provides a view to an object file from a ByteView
.
pub fn kind(&self) -> ObjectKind
[src]
pub fn kind(&self) -> ObjectKind
Returns the kind of this FatObject
.
pub fn as_bytes(&self) -> &[u8]
[src]
pub fn as_bytes(&self) -> &[u8]
Returns the contents as bytes.
pub fn object_count(&self) -> usize
[src]
pub fn object_count(&self) -> usize
Returns the number of contained objects.
pub fn get_object(
&'bytes self,
index: usize
) -> Result<Option<Object<'bytes>>, ObjectError>
[src]
pub fn get_object(
&'bytes self,
index: usize
) -> Result<Option<Object<'bytes>>, ObjectError>
Returns the n-th object.
ⓘImportant traits for Objects<'fat>pub fn objects(&'bytes self) -> Objects<'bytes>
[src]
ⓘImportant traits for Objects<'fat>
pub fn objects(&'bytes self) -> Objects<'bytes>
Returns a iterator over object variants in this fat object.
Trait Implementations
impl<'data> BreakpadData for FatObject<'data>
[src]
impl<'data> BreakpadData for FatObject<'data>
fn has_breakpad_data(&self) -> bool
[src]
fn has_breakpad_data(&self) -> bool
Determines whether this Object
contains Breakpad debugging information.
ⓘImportant traits for BreakpadRecords<'data>fn breakpad_records(&self) -> BreakpadRecords
[src]
ⓘImportant traits for BreakpadRecords<'data>
fn breakpad_records(&self) -> BreakpadRecords
Returns an iterator over all records of the Breakpad symbol file.
impl<'bytes> Debug for FatObject<'bytes>
[src]
impl<'bytes> Debug for FatObject<'bytes>