pub struct MmapBinaryProvider { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BinaryProvider for MmapBinaryProvider
impl BinaryProvider for MmapBinaryProvider
fn format(&self) -> BinaryFormat
fn architecture(&self) -> Architecture
Source§fn section_data(&self, name: &str) -> Option<(&[u8], u64, SectionKind)>
fn section_data(&self, name: &str) -> Option<(&[u8], u64, SectionKind)>
Returns (data, base_address, kind) for a named section.
Source§fn visit_sections(
&self,
visitor: &mut dyn FnMut(&str, SectionKind, u64, &[u8]) -> Result<()>,
) -> Result<()>
fn visit_sections( &self, visitor: &mut dyn FnMut(&str, SectionKind, u64, &[u8]) -> Result<()>, ) -> Result<()>
Iterate over all sections yielding (name, kind, address, data).
fn symbol_table(&self) -> &SymbolTable
fn path(&self) -> &Path
fn sections(&self) -> &[SectionInfo]
Auto Trait Implementations§
impl Freeze for MmapBinaryProvider
impl RefUnwindSafe for MmapBinaryProvider
impl Send for MmapBinaryProvider
impl Sync for MmapBinaryProvider
impl Unpin for MmapBinaryProvider
impl UnsafeUnpin for MmapBinaryProvider
impl UnwindSafe for MmapBinaryProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more