Is an iterator for all Components contained within this Component
(&self)
| 187 | |
| 188 | /// Is an iterator for all Components contained within this Component |
| 189 | pub fn components(&self) -> Array<Component> { |
| 190 | let mut count = 0; |
| 191 | let result = unsafe { BNComponentGetContainedComponents(self.handle.as_ptr(), &mut count) }; |
| 192 | assert!(!result.is_null()); |
| 193 | unsafe { Array::new(result, count, ()) } |
| 194 | } |
| 195 | |
| 196 | /// List of all Functions contained within this Component |
| 197 | pub fn functions(&self) -> Array<Function> { |