Trait yaxpeax_arch::ReaderBuilder[][src]

pub trait ReaderBuilder<Address: AddressBase, Item> where
    Self: Sized
{ type Result: Reader<Address, Item>; fn read_at(data: Self, addr: Address) -> Self::Result; fn read_from(data: Self) -> Self::Result { ... } }
Expand description

a trait defining how to build a Reader<Address, Item> from some data source (Self). definitions of ReaderBuilder are provided for U8Reader on Address and Word types that yaxpeax_arch provides - external decoder implementations should also provide ReaderBuilder impls if they use custom Reader types.

Associated Types

Required methods

construct a reader from data beginning at addr from its beginning.

Provided methods

construct a reader from data beginning at the start of data.

Implementations on Foreign Types

Implementors