pub struct Index<'a> {
    pub size: usize,
    pub symbol_indexes: Vec<u32>,
    pub strtab: Vec<&'a str>,
}
Expand description

The special index member signified by the name '/'. The data element contains a list of symbol indexes and symbol names, giving their offsets into the archive for a given name.

Fields

size: usize

Big Endian number of symbol_indexes and strings

symbol_indexes: Vec<u32>

Big Endian u32 index into the archive for this symbol (index in array is the index into the string table)

strtab: Vec<&'a str>

Set of zero-terminated strings indexed by above. Number of strings = self.size

Implementations

Parses the given byte buffer into an Index. NB: the buffer must be the start of the index

Parses the given byte buffer into an Index, in BSD style archives

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.