Enum dwarf::AttributeData [] [src]

pub enum AttributeData<'a> {
    Address(u64),
    Block(&'a [u8]),
    Data1(u8),
    Data2(u16),
    Data4(u32),
    Data8(u64),
    UData(u64),
    SData(i64),
    Flag(bool),
    String(&'a str),
    StringOffset(u64),
    Ref(u64),
    RefAddress(u64),
    RefSig(u64),
    SecOffset(u64),
    ExprLoc(&'a [u8]),
}

Variants

Address(u64)Block(&'a [u8])Data1(u8)Data2(u16)Data4(u32)Data8(u64)UData(u64)SData(i64)Flag(bool)String(&'a str)StringOffset(u64)Ref(u64)RefAddress(u64)RefSig(u64)SecOffset(u64)ExprLoc(&'a [u8])

Methods

impl<'a, 'b> AttributeData<'a>
[src]

fn read<E: Endian>(r: &mut &'a [u8], unit: &UnitCommon<'b, E>, form: DwForm) -> Result<AttributeData<'a>, ReadError>

impl<'a, 'b> AttributeData<'a>
[src]

fn write<E: Endian>(&self, unit: &mut UnitCommon<'b, E>, form: DwForm, indirect: bool) -> Result<()WriteError>

Trait Implementations

impl<'a> Display for AttributeData<'a>
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> Eq for AttributeData<'a>
[src]

impl<'a> PartialEq for AttributeData<'a>
[src]

fn eq(&self, __arg_0: &AttributeData<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &AttributeData<'a>) -> bool

This method tests for !=.

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.