[−][src]Struct pelite::pe64::exception::Exception
Exception Directory.
For more information see the module-level documentation.
Methods
impl<'a, P: Pe<'a>> Exception<'a, P>
[src]
pub fn pe(&self) -> P
[src]
Gets the PE instance.
pub fn image(&self) -> &'a [RUNTIME_FUNCTION]
[src]
Returns the functions slice.
pub fn check_sorted(&self) -> bool
[src]
Checks if the function table is sorted.
The PE specification says that the list of runtime functions should be sorted to allow binary search. This function checks if the runtime functions are actually sorted, if not then lookups may fail unexpectedly.
pub fn functions(
&self
) -> Map<Iter<'a, RUNTIME_FUNCTION>, impl Clone + FnMut(&'a RUNTIME_FUNCTION) -> Function<'a, P>>
[src]
&self
) -> Map<Iter<'a, RUNTIME_FUNCTION>, impl Clone + FnMut(&'a RUNTIME_FUNCTION) -> Function<'a, P>>
Gets an iterator over the function records.
pub fn index_of(&self, pc: Rva) -> Result<usize, usize>
[src]
Finds the index of the function for the given program counter.
pub fn lookup_function_entry(&self, pc: Rva) -> Option<Function<'a, P>>
[src]
Finds the function for the given 'program counter' address.
The function records are sorted by their address allowing binary search for the record.
Trait Implementations
impl<'a, P: Clone> Clone for Exception<'a, P>
[src]
impl<'a, P: Copy> Copy for Exception<'a, P>
[src]
impl<'a, P: Pe<'a>> Debug for Exception<'a, P>
[src]
Auto Trait Implementations
impl<'a, P> Sync for Exception<'a, P> where
P: Sync,
P: Sync,
impl<'a, P> Send for Exception<'a, P> where
P: Send,
P: Send,
impl<'a, P> Unpin for Exception<'a, P> where
P: Unpin,
P: Unpin,
impl<'a, P> UnwindSafe for Exception<'a, P> where
P: UnwindSafe,
P: UnwindSafe,
impl<'a, P> RefUnwindSafe for Exception<'a, P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,