pub struct StringTable { /* private fields */ }
Expand description

A table of strings that will be stored in a .debug_str section.

Implementations

Add a string to the string table and return its id.

If the string already exists, then return the id of the existing string.

Panics

Panics if bytes contains a null byte.

Return the number of strings in the table.

Get a reference to a string in the table.

Panics

Panics if id is invalid.

Write the string table to the .debug_str section.

Returns the offsets at which the strings are written.

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.