[][src]Struct pes::pe32::file::PeFile

pub struct PeFile { /* fields omitted */ }

Implementations

impl PeFile[src]

pub fn from_bytes(bytes: Vec<u8>) -> PeFile[src]

pub fn read(path: &str) -> Result<PeFile, Error>[src]

pub fn into_image_view(self) -> Self[src]

将 PeFile.image 从 file view 转为 image view

pub fn into_file_view(self) -> Self[src]

将 image view 转为 file view

pub fn save_to_disk(self, file_path: &str) -> Result<(), Error>[src]

保存到磁盘

impl PeFile[src]

pub fn pe_info(&self)[src]

Trait Implementations

Auto Trait Implementations

impl RefUnwindSafe for PeFile

impl Send for PeFile

impl Sync for PeFile

impl Unpin for PeFile

impl UnwindSafe for PeFile

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.