MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / folder

Method folder

rust/src/project/file.rs:93–96  ·  view source on GitHub ↗

Get the folder that contains this file

(&self)

Source from the content-addressed store, hash-verified

91
92 /// Get the folder that contains this file
93 pub fn folder(&self) -> Option<Ref<ProjectFolder>> {
94 let result = unsafe { BNProjectFileGetFolder(self.handle.as_ptr()) };
95 NonNull::new(result).map(|handle| unsafe { ProjectFolder::ref_from_raw(handle) })
96 }
97
98 /// Set the folder that contains this file
99 pub fn set_folder(&self, folder: Option<&ProjectFolder>) -> bool {

Callers 1

fmtMethod · 0.45

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected