goblin::pe::import

Trait Bitfield

Source
pub trait Bitfield<'a>:
    Into<u64>
    + PartialEq
    + Eq
    + LowerHex
    + Debug
    + TryFromCtx<'a, Endian, Error = Error> {
    // Required methods
    fn is_ordinal(&self) -> bool;
    fn to_ordinal(&self) -> u16;
    fn to_rva(&self) -> u32;
    fn size_of() -> usize;
    fn is_zero(&self) -> bool;
}

Required Methods§

Source

fn is_ordinal(&self) -> bool

Source

fn to_ordinal(&self) -> u16

Source

fn to_rva(&self) -> u32

Source

fn size_of() -> usize

Source

fn is_zero(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a> Bitfield<'a> for u32

Source§

impl<'a> Bitfield<'a> for u64

Implementors§