Gets the default [`Repository`]
(&self)
| 90 | |
| 91 | /// Gets the default [`Repository`] |
| 92 | pub fn default_repository(&self) -> Ref<Repository> { |
| 93 | let result = unsafe { BNRepositoryManagerGetDefaultRepository(self.handle.as_ptr()) }; |
| 94 | assert!(!result.is_null()); |
| 95 | unsafe { Repository::ref_from_raw(NonNull::new(result).unwrap()) } |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | impl Debug for RepositoryManager { |