Struct gimli::write::EndianVec[][src]

pub struct EndianVec<Endian> where
    Endian: Endianity
{ /* fields omitted */ }

A Vec<u8> with endianity metadata.

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

Implementations

impl<Endian> EndianVec<Endian> where
    Endian: Endianity
[src]

pub fn new(endian: Endian) -> EndianVec<Endian>[src]

Construct an empty EndianVec with the given endianity.

pub fn slice(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Return a reference to the raw slice.

pub fn into_vec(self) -> Vec<u8>[src]

Convert into a Vec<u8>.

pub fn take(&mut self) -> Vec<u8>[src]

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

Trait Implementations

impl<Endian: Clone> Clone for EndianVec<Endian> where
    Endian: Endianity
[src]

impl<Endian: Debug> Debug for EndianVec<Endian> where
    Endian: Endianity
[src]

impl<Endian> Writer for EndianVec<Endian> where
    Endian: Endianity
[src]

type Endian = Endian

The endianity of bytes that are written.

Auto Trait Implementations

impl<Endian> RefUnwindSafe for EndianVec<Endian> where
    Endian: RefUnwindSafe

impl<Endian> Send for EndianVec<Endian> where
    Endian: Send

impl<Endian> Sync for EndianVec<Endian> where
    Endian: Sync

impl<Endian> Unpin for EndianVec<Endian> where
    Endian: Unpin

impl<Endian> UnwindSafe for EndianVec<Endian> where
    Endian: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.