[][src]Struct metagoblin::elf::note::Note

pub struct Note<'a> {
    pub n_type: u32,
    pub name: &'a str,
    pub desc: &'a [u8],
}

A 32/64 bit Note struct, with the name and desc pre-parsed

Fields

n_type: u32

The type of this note

name: &'a str

NUL terminated string, where namesz includes the terminator

desc: &'a [u8]

arbitrary data of length descsz

Implementations

impl<'a> Note<'a>[src]

pub fn type_to_str(&self) -> &'static str[src]

Trait Implementations

impl<'a> Debug for Note<'a>[src]

impl<'a> TryFromCtx<'a, (usize, Ctx), [u8]> for Note<'a>[src]

type Error = Error

Auto Trait Implementations

impl<'a> RefUnwindSafe for Note<'a>

impl<'a> Send for Note<'a>

impl<'a> Sync for Note<'a>

impl<'a> Unpin for Note<'a>

impl<'a> UnwindSafe for Note<'a>

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, 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.