Trait yaxpeax_arch::ReaderBuilder
source · [−]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.