Enum object::read::archive::SymbolIteratorInternal

source ·
enum SymbolIteratorInternal<'data> {
    None,
    Gnu {
        offsets: Iter<'data, U32Bytes<BigEndian>>,
        names: Bytes<'data>,
    },
    Gnu64 {
        offsets: Iter<'data, U64Bytes<BigEndian>>,
        names: Bytes<'data>,
    },
    Bsd {
        offsets: Iter<'data, [U32Bytes<LittleEndian>; 2]>,
        names: Bytes<'data>,
    },
    Bsd64 {
        offsets: Iter<'data, [U64Bytes<LittleEndian>; 2]>,
        names: Bytes<'data>,
    },
    Coff {
        members: &'data [U32Bytes<LittleEndian>],
        indices: Iter<'data, U16Bytes<LittleEndian>>,
        names: Bytes<'data>,
    },
}

Variants§

§

None

There is no symbol table.

§

Gnu

A GNU symbol table.

Contains:

  • the number of symbols as a 32-bit big-endian integer
  • the offsets of the member headers as 32-bit big-endian integers
  • the symbol names as null-terminated strings

Fields

§offsets: Iter<'data, U32Bytes<BigEndian>>
§names: Bytes<'data>
§

Gnu64

A GNU 64-bit symbol table

Contains:

  • the number of symbols as a 64-bit big-endian integer
  • the offsets of the member headers as 64-bit big-endian integers
  • the symbol names as null-terminated strings

Fields

§offsets: Iter<'data, U64Bytes<BigEndian>>
§names: Bytes<'data>
§

Bsd

A BSD symbol table.

Contains:

  • the size in bytes of the offsets array as a 32-bit little-endian integer
  • the offsets array, for which each entry is a pair of 32-bit little-endian integers for the offset of the member header and the offset of the symbol name
  • the size in bytes of the symbol names as a 32-bit little-endian integer
  • the symbol names as null-terminated strings

Fields

§offsets: Iter<'data, [U32Bytes<LittleEndian>; 2]>
§names: Bytes<'data>
§

Bsd64

A BSD 64-bit symbol table.

Contains:

  • the size in bytes of the offsets array as a 64-bit little-endian integer
  • the offsets array, for which each entry is a pair of 64-bit little-endian integers for the offset of the member header and the offset of the symbol name
  • the size in bytes of the symbol names as a 64-bit little-endian integer
  • the symbol names as null-terminated strings

Fields

§offsets: Iter<'data, [U64Bytes<LittleEndian>; 2]>
§names: Bytes<'data>
§

Coff

A Windows COFF symbol table.

Contains:

  • the number of members as a 32-bit little-endian integer
  • the offsets of the member headers as 32-bit little-endian integers
  • the number of symbols as a 32-bit little-endian integer
  • the member index for each symbol as a 16-bit little-endian integer
  • the symbol names as null-terminated strings in lexical order

Fields

§members: &'data [U32Bytes<LittleEndian>]
§indices: Iter<'data, U16Bytes<LittleEndian>>
§names: Bytes<'data>

Trait Implementations§

source§

impl<'data> Clone for SymbolIteratorInternal<'data>

source§

fn clone(&self) -> SymbolIteratorInternal<'data>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'data> Debug for SymbolIteratorInternal<'data>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'data> Freeze for SymbolIteratorInternal<'data>

§

impl<'data> RefUnwindSafe for SymbolIteratorInternal<'data>

§

impl<'data> Send for SymbolIteratorInternal<'data>

§

impl<'data> Sync for SymbolIteratorInternal<'data>

§

impl<'data> Unpin for SymbolIteratorInternal<'data>

§

impl<'data> UnwindSafe for SymbolIteratorInternal<'data>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.