pub struct EndianVec<Endian> where
    Endian: Endianity
{ /* private fields */ }
Expand description

A Vec<u8> with endianity metadata.

This implements the Writer trait, which is used for all writing of DWARF sections.

Implementations

Construct an empty EndianVec with the given endianity.

Return a reference to the raw slice.

Convert into a Vec<u8>.

Take any written data out of the EndianVec, leaving an empty Vec in its place.

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

The endianity of bytes that are written.

Return the endianity of bytes that are written.

Return the current section length. Read more

Write a slice.

Write a slice at a given offset. Read more

Write an address. Read more

Write an address with a .eh_frame pointer encoding. Read more

Write a value with a .eh_frame pointer format. Read more

Write an offset that is relative to the start of the given section. Read more

Write an offset that is relative to the start of the given section. Read more

Write a reference to a symbol. Read more

Write a u8.

Write a u16.

Write a u32.

Write a u64.

Write a u8 at the given offset.

Write a u16 at the given offset.

Write a u32 at the given offset.

Write a u64 at the given offset.

Write unsigned data of the given size. Read more

Write signed data of the given size. Read more

Write a word of the given size at the given offset. Read more

Write an unsigned LEB128 encoded integer.

Read an unsigned LEB128 encoded integer.

Write an initial length according to the given DWARF format. Read more

Write an initial length at the given offset according to the given DWARF format. 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.