Struct binaryninja::project::ProjectFile
source · pub struct ProjectFile { /* private fields */ }
Implementations§
source§impl ProjectFile
impl ProjectFile
sourcepub fn path_on_disk(&self) -> BnString
pub fn path_on_disk(&self) -> BnString
Get the path on disk to this file’s contents
sourcepub fn exists_on_disk(&self) -> bool
pub fn exists_on_disk(&self) -> bool
Check if this file’s contents exist on disk
sourcepub fn set_name<S: BnStrCompatible>(&self, value: S) -> bool
pub fn set_name<S: BnStrCompatible>(&self, value: S) -> bool
Set the name of this file
sourcepub fn description(&self) -> BnString
pub fn description(&self) -> BnString
Get the description of this file
sourcepub fn set_description<S: BnStrCompatible>(&self, value: S) -> bool
pub fn set_description<S: BnStrCompatible>(&self, value: S) -> bool
Set the description of this file
sourcepub fn creation_time(&self) -> SystemTime
pub fn creation_time(&self) -> SystemTime
Get the file creation time
sourcepub fn folder(&self) -> Option<ProjectFolder>
pub fn folder(&self) -> Option<ProjectFolder>
Get the folder that contains this file
sourcepub fn set_folder(&self, folder: Option<&ProjectFolder>) -> bool
pub fn set_folder(&self, folder: Option<&ProjectFolder>) -> bool
Set the folder that contains this file
sourcepub fn export<S: BnStrCompatible>(&self, dest: S) -> bool
pub fn export<S: BnStrCompatible>(&self, dest: S) -> bool
Export this file to disk, `true’ if the export succeeded
dest
- Destination path for the exported contents
Trait Implementations§
source§impl Clone for ProjectFile
impl Clone for ProjectFile
source§impl CoreArrayProvider for ProjectFile
impl CoreArrayProvider for ProjectFile
Auto Trait Implementations§
impl RefUnwindSafe for ProjectFile
impl !Send for ProjectFile
impl !Sync for ProjectFile
impl Unpin for ProjectFile
impl UnwindSafe for ProjectFile
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