List of RepoPlugin objects contained within this repository
(&self)
| 46 | |
| 47 | /// List of RepoPlugin objects contained within this repository |
| 48 | pub fn plugins(&self) -> Array<RepositoryPlugin> { |
| 49 | let mut count = 0; |
| 50 | let result = unsafe { BNRepositoryGetPlugins(self.handle.as_ptr(), &mut count) }; |
| 51 | assert!(!result.is_null()); |
| 52 | unsafe { Array::new(result, count, ()) } |
| 53 | } |
| 54 | |
| 55 | pub fn plugin_by_path<S: BnStrCompatible>(&self, path: S) -> Option<Ref<RepositoryPlugin>> { |
| 56 | let path = path.into_bytes_with_nul(); |