pub struct VersionTable<'data, Elf: FileHeader> { /* private fields */ }
Expand description

A table of version definitions and requirements.

It allows looking up the version information for a given symbol index.

This is derived from entries in the SHT_GNU_versym, SHT_GNU_verdef and SHT_GNU_verneed sections.

Implementations

Parse the version sections.

Return true if the version table is empty.

Return version index for a given symbol index.

Return version information for a given symbol version index.

Returns Ok(None) for local and global versions. Returns Err(_) if index is invalid.

Return true if the given symbol index satisifies the requirements of need.

Returns false for any error.

Note: this function hasn’t been fully tested and is likely to be incomplete.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

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.